Login Page - Create Account

Support Board


Date/Time: Wed, 05 Feb 2025 17:04:45 +0000



Isolated Horizontal Line at Time

View Count: 177

[2024-12-02 21:59:07]
User688525 - Posts: 276
Hello Sierra,
Can you please advise which study supports drawing an isolated horizontal line (or ray) at a specific time that extends to the edge? Refer to the attached image for what I am trying to achieve. Note, the lines aren't joined or continuous and extend to the edge of the chart.

I have tested the following studies without luck:
- High/Low for Time Period
- High/Low for Time Period - Extended
- Horizontal Line at Time

Thank you
imagesierra-horizontal-line.png / V - Attached On 2024-12-02 21:52:32 UTC - Size: 25.32 KB - 36 views
[2024-12-03 15:33:10]
John - SC Support - Posts: 37753
From your image, the lines are associated with a particular bar value. Therefore the "Horizontal Line at Time" should do what you want. What about it is not working as you want it to?

Also, using the Horizontal Ray drawing tool will give you what you want, unless there is some reason you want to use a study. Refer to the following:
Chart Drawing Tools: Horizontal Line | Horizontal Ray | Horizonal Line Non-Extended | Vertical Line
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-03 18:01:36]
User688525 - Posts: 276
Hi John,
I'd like to add a date variable so that the lines will be drawn at a specific time on a specific date, not just drawn from the same time every session. If this requires customizing an existing study, I'll look into this. If so, would the "Horizontal Line at Time" be the best study to customize?

And, the line drawn should be a Horizontal Ray drawn automatically by the study, not manually.

I see my original post didn't include the data variable. Sorry for this.
Date Time Of Last Edit: 2024-12-03 18:04:16
[2024-12-03 18:54:28]
John - SC Support - Posts: 37753
If you want to create a Horizontal Ray drawing starting at a specific date and time through a custom study, then there is not a good example that already exists. The closest is the study named "scsf_HorizontalLine()" in the file named "ExampleCustomStudies.cpp" located in the "ACS_Source" folder under your main Sierra Chart installation folder.

Also refer to the following:
Using Drawing Tools From an Advanced Custom Study
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-03 22:22:48]
User688525 - Posts: 276
Thanks John, I'll take a look at the "scsf_HorizontalLine()" study.

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

Login

Login Page - Create Account