Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 02:03:17 +0000



Time Line Study or Other

View Count: 117

[2024-09-13 01:08:55]
user_xyz - Posts: 416
Is there anyway to get vertical lines at custom intervals eg. every 4hrs, 1hr, 30 min etc?

I know about the vertical gridlines but I'm looking for different visual vertical line references like solid line every 4 hrs, dots every 1hr and dashed every 30 min.

Having 40+ individual Time Line studies would be pain. If this study exists could you point me in right direction I can't find one.

If not adding an 'interval/repeat' for Time Line Study would be great.

Time of Line: 14:00:00 > Repeat: 30:00 (every 30 minutes)
[2024-09-13 13:46:18]
John - SC Support - Posts: 36238
You could do this with just a few instances of the "Color Bar Based on Alert Condition" study, but you would only have different colors, there is not a way to get different line styles. You need one instance of the study for each particular interval at which you want the lines. You just have to be a bit careful with the order in which they are drawn to ensure that you get the particular one you want at a particular interval.

To do this, use an Alert Condition like the following to get a line every 30 minutes:
=FRACTIME(BARTIME * 24) * 60 = 30

Then set the "Color Bar" subgraph to have a "Draw Style" of "Background" and set the color and Width as you want.

Refer to the following:
Color Bar Based on Alert Condition

Chart Studies: Subgraphs Tab >> Color

Chart Studies: Background (ACSIL: DRAWSTYLE_BACKGROUND)
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