Login Page - Create Account

Support Board


Date/Time: Wed, 07 May 2025 01:15:49 +0000



Attach Period OHLC Line to Previous High

View Count: 168

[2024-11-27 03:01:28]
Amped - Posts: 2
Good evening,

Is there a draw-style or a workaround (I've tried all I can, so asking for help) for attaching the Period OHLC-Variable study to the actual previous high then extending to edge?
Currently Line Extend to Edge and Line at Last Bar Left and Right does not achieve what I'd like.

Also, is there a way to automatically change line-style once price has reached said price?

Thank you!
Date Time Of Last Edit: 2024-11-27 03:02:59
[2024-11-27 15:52:27]
John - SC Support - Posts: 39675
We are not quite understanding what you are trying to do. The "Period OHLC - Variable Period" will give you the High for each period you have defined. Do you only want to see a single line for the most recent period and then have that extend to the right? Or are you wanting the High from the previous period and have that show across the current day and to the right edge? Or is it something else?

There is not a built-in way to have the line style change for a subgraph when a particular price has been reached. You could create a custom study to do this. Refer to the following:
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].LineStyle

https://www.sierrachart.com/index.php?page=doc/SierraChartStudyAndSystemProgrammers.php

Another option would be to use one of the drawing tools (such as the Horizontal Line) and setup an alert with it. You can have the line change to a different style when the alert condition is met by applying a different configuration. Refer to the following:
Chart Drawing Tools: Chart Drawing Alerts
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-11-27 15:59:50]
Amped - Posts: 2
Hey John, thanks for getting back to me. I appreciate your reply, and I realize I didn’t phrase my question as clearly as I should have—my apologies for that.

What I’m trying to do is draw lines for the previous week’s high or the previous day’s high, but have them start at the actual high (the swing point) and extend to the right.

Essentially, I’d like Point A (the start of the line) to be anchored at the swing high itself, and Point B (the end of the line) to either extend to the end of the chart or project forward by about 30 bars.

Right now, the settings I’m using either draw the line across the entire chart from left to right or from the start of the current session to the right. I’d like it to originate from the swing high instead, if that’s possible.
[2024-11-27 18:50:48]
John - SC Support - Posts: 39675
Take a look at the following and see if it will do what you are wanting:
Color Bar Based on Alert Condition: Creating Extension Lines for Another Study
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