Support Board
Date/Time: Tue, 22 Apr 2025 23:22:03 +0000
Position line simulation without switching to sim mode
View Count: 170
[2024-12-20 16:29:32] |
User925540 - Posts: 62 |
Not sure if that would be a new feature request, or if there is an existing way to do this. It's a very basic request, I would like to place a horizontal line on a chart at a price and on that line it would show currency difference, tick difference, point difference, etc. from last price. Basically, as if it's a position line where you can configure what to show on it. Something that is doable without having to switch to sim mode. Thank you. |
[2024-12-20 16:45:04] |
John - SC Support - Posts: 39428 |
It's fairly easy to do this and have the information displayed somewhere on the chart. It is not possible, with the built-in tools, to have the values displayed with the line and actually follow it (i.e. move up/down with the line). If you want to be able to move the line and have the information update with the movement, then start with the "Horizontal Line" tool and set that line where you want it. Then add a Spreadsheet Formula study to the chart and enter the formula you want for one of the items you want to display. For instance, to get the tick difference you would enter the following formula: =(L - UDID[1].A1) / TICKSIZE where the [1] is the ID of the line you established. Refer to the following for this: Study/Chart Alerts And Scanning: Reference by Anchor You would then use the "Text Display for Study" referencing the Spreadsheet Study to get that information displayed on the chart somewhere. You would need additional copies of the Spreadsheet Formula and the Text Display for Study to get all the item you want. Keep in mind, the Spreadsheet Formula study, despite its name, uses the Alert syntax. Refer to the following: Spreadsheet Formula Text Display For Study Study/Chart Alerts And Scanning For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2024-12-20 16:48:25
|
[2024-12-21 02:30:54] |
User925540 - Posts: 62 |
Thanks John. I'm going to test that, but I can foresee an issue with the drawing ID, every time I place a drawing (maybe in this case it would be a horizontal line) on the chart, the ID would be different, how would the spreadsheet formula work in this case? Am I missing something? |
[2024-12-21 17:02:04] |
emmanuel - Posts: 62 |
Try this custom study: https://github.com/emmanuelrosa/foss-sierrachart-studies/blob/master/src/HorizontalChartCalculator.cpp The study draws a horizontal line within the chart's current visible area, at the given price. And it also shows the currency value and the price and tick differences from the last price. 1. Download the study's source code form the link above. 2. Compile the study. See How to Build an Advanced Custom Study from Source Code: Step-By-Step Instructions 3. Add the study to your chart. See How to Use an Advanced Custom Study or a Study Collection: How to Use an Advanced Custom Study Provided To You When you add the study, make sure to go into its input settings to set the price, which by default is 0. |
[2024-12-21 17:51:24] |
User925540 - Posts: 62 |
Thanks, @emmanuel. Appreciate your help. That would definitely be something that many folks would want to use. Hopefully we can have it built in the software sometime, maybe part of the tools, where the user can place a horizontal line and it acts as a dynamic chart calculator. |
To post a message in this thread, you need to log in with your Sierra Chart account: