Login Page - Create Account

Support Board


Date/Time: Tue, 30 Jun 2026 02:00:43 +0000



OHLC Variable period to until future intersection

View Count: 158

[2026-05-14 12:39:25]
tokauo - Posts: 56
Hi,
I'm using OHLC Variable period to plot dash line of specific time candle open.
Is there way to keep these lines to "until future intersection"? Or is there better study for this?

Thanks you
Tom
[2026-05-14 15:31:12]
John - SC Support - Posts: 46952
Refer to the following:
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
[2026-05-14 17:31:03]
tokauo - Posts: 56
Thanks you, it looks like "until future intersection" function is waiting for another OHLC "Time Period Length" has began and than it is crossed.
What I need is line to be extended until any bar cross it.
For example: I want at every 15min range, on 15sec chart plot line of first bar open, and extend it until any another bar cross it.

Is it possible?
Thanks you
[2026-05-14 18:18:46]
John - SC Support - Posts: 46952
The instructions given at the link we gave are specifically to do what you want - where a bar is crossing. Note the first step for "Based On".

Did you change "Based On" to the OHLC study?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-05-14 18:37:54]
tokauo - Posts: 56
Yes I did. I have attached screen shots.
Thanks you
imageSnímek obrazovky 2026-05-14 203549.png / V - Attached On 2026-05-14 18:37:05 UTC - Size: 37.73 KB - 27 views
imageSnímek obrazovky 2026-05-14 203559.png / V - Attached On 2026-05-14 18:37:11 UTC - Size: 28.54 KB - 32 views
[2026-05-14 19:44:12]
John - SC Support - Posts: 46952
We need to see the entire settings window for the "Color Bar Based On Alert Condition". Not just the Inputs section. Please get us another image that shows the whole window.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-05-14 20:11:13]
tokauo - Posts: 56
Here it is. Thanks you
imageSnímek obrazovky 2026-05-14 220922.png / V - Attached On 2026-05-14 20:11:05 UTC - Size: 70.05 KB - 26 views
[2026-05-14 20:17:31]
John - SC Support - Posts: 46952
You have the "Based On" set to the "Period OHLC", which is why you are getting what you are. You need to set that to "<Main Price Graph>" as it states in the item for "Based On" at the following link:
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
[2026-05-14 20:34:31]
tokauo - Posts: 56
This is how I had it set up initially.
I've made another screen shot with this settings (and with chart) - it is still waiting for another OHLC "Time Period Length" has began and it is crossed...
Am I doing something else wrong?

Thanks you
imageSnímek obrazovky 2026-05-14 222642.png / V - Attached On 2026-05-14 20:30:55 UTC - Size: 103.61 KB - 26 views
[2026-05-14 20:48:11]
John - SC Support - Posts: 46952
You are kind of correct in your conclusion, but not exactly. The issue is that the "Extension Lines" are starting from the end of where the "Period OHLC" is drawing the line. So if that "Period OHLC" line goes across those bars, then the extension line is not going to take those into account - it is only going to stop when it comes across a bar beyond that time period.

What exactly are you wanting to accomplish with this? What is the base information you are looking for that you want to "extend until future intersection"?

Are you just wanting the "Opens" for every 15 minutes? or do you really want the entire OHLC information every 15 minutes? Or something else?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-05-15 06:48:38]
tokauo - Posts: 56
I see, thanks you for explanation.
I just want open for every 15min (and 1h, 4h) extended until future intersection (to keep OHLC information for 15 minutes is not needed).
[2026-05-15 14:46:24]
Sierra_Chart Engineering - Posts: 24140
Our recommendation is to modify the study to meet your requirements:
How to Build an Advanced Custom Study from Source Code
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

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