Login Page - Create Account

Support Board


Date/Time: Tue, 06 May 2025 22:27:45 +0000



Bar High/Low + distance

View Count: 182

[2024-12-09 20:38:46]
User969241 - Posts: 138
Is there a way to display a price line/price number a certain amount of ticks away from the high/low of the current bar? Similar to the range bar predictor but a way to show a set number of ticks from the high/low of a bar?
[2024-12-09 21:25:36]
John - SC Support - Posts: 39675
There are a number of ways to do this depending on what exactly you want to see and where you want to see it.

Please give us more information on exactly what you are wanting and we can then point you in the proper direction. For instance, some of the things we do not understand:
- Do you want a line or a number?
- If you want a line, where do you want the line to display? Is this only from the most recent bar? Do you want the line to project forward? Do you want the line to project backward?
- If you want a number, do you want this for all bars?
- What is the number that you want to use as the reference? Where does this come from?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-10 00:09:57]
User969241 - Posts: 138
Sure. I usually need to know if my target is a certain distance from the current bar high/low while it is being made. I want to be able to see it very quickly with a horizontal line and ideally the price in the right hand price column. The line should be displayed at the set target distance I am watching and stay that same distance from the high/low until the bar is completed. There would be a horizontal line 40ticks above the high of the bar and 40 ticks below the low of the bar to give me quick reference to my potential target. This is only for the bar being created.
[2024-12-10 14:49:39]
John - SC Support - Posts: 39675
Probably the easiest way to do this would be with the Spreadsheet Study, as this will allow you to Show/Hide the study quickly so both lines can be shown/hidden with just hiding the one study.

To do this, add the "Spreadsheet Study" to the chart and enter the following formula in cell K3:
=ID0.SG4@$3 + 40 * $J$21

Where ID0 is the Main Price Graph identifier, SG4 is the Last subgraph of the Main Price Graph, J21 contains the tick size for the chart.

We leave it to you to put in the appropriate formula for the line below the low in cell L3.

You will then need to set the study to be in Region 1, set the subgraphs for columns K and L to have a Draw Style of "Line at Last Bar Left to Right", enable the Value Label and set it to display in the Right Side Values Scale.

Refer to the following:
Spreadsheet Systems, Alerts and Automated Trading

Working with Spreadsheets: References to Study Subgraph Columns when using the Spreadsheet Study

Chart Studies: Line at Last Bar Left to Right (ACSIL: DRAWSTYLE_LINE_AT_LAST_BAR_LEFT_TO_RIGHT)

Chart Studies: Subgraphs Tab >> Name and Value Labels
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account