Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 16:38:04 +0000



Horizontal lines above and below cursor

View Count: 374

[2024-02-23 15:18:42]
ssangha84 - Posts: 122
Hello, is there any way to have a horizontal line above and below where the crosshair is with the chart values tool? I wanted to have my crosshair with a line 20 ticks below and 20 ticks above to see where my potential stop would be if I entered where my cursor is. Thanks
Date Time Of Last Edit: 2024-02-23 16:05:35
[2024-02-23 17:02:59]
John - SC Support - Posts: 36249
There is not a built-in way to do this.

You could develop a custom study to do this. Refer to the following:
Advanced Custom Study Interaction With Menus, Control Bar Buttons, Pointer Events

List of Third Party Sierra Chart Study and System Programmers
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-02-23 17:18:54]
ssangha84 - Posts: 122
Ok. What about an option to just have parallel lines drawn 20 ticks above and below another horizontal line in the middle?
[2024-02-23 17:33:25]
John - SC Support - Posts: 36249
Yes, you can do this. For instance, if you have a drawn Horizontal Line, then you can have two lines associated with that above and below, and they will move as you adjust the horizontal line.

There are several ways to accomplish this, but we feel the easiest is to use two copies of the "Spreadsheet Formula" study.

To do this, draw a horizontal line using the Drawing Tools. Then open the properties for that line and select the "Anchor" tab. Find the ID of that line and note it. Close the properties window.

Then add a Spreadsheet Formula study to the chart and enter the following for the formula:
=UDID[1].A1 + 20 * TICKSIZE

Where the 1 in the square brackets is the ID of the drawing without the negative sign (i.e. ignore the sign, it's the absolute value, if that is an easier way to think of it).

Repeat to put a line below by 20 ticks (changing the + to a -).
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-02-23 17:42:21]
ssangha84 - Posts: 122
Ok great, that seemed to work. But is there a way to have a button for a permanent ID for the horizontal line so I wouldn't have to type in that formula every time?
[2024-02-23 19:19:24]
John - SC Support - Posts: 36249
There is not a way to have a "permanent ID", but that is why we suggested the drawing, as you can move it around to where you want, or even hide it.

You could use the "Horizontal Lines" study to put a line and then reference the subgraph from that for the Spreadsheet Study. Depending on how you are using this, it might be an option. Refer to the following:
Horizontal Lines

Study/Chart Alerts And Scanning: Referencing Other Studies on the Chart
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