Login Page - Create Account

Support Board


Date/Time: Sun, 06 Oct 2024 09:52:04 +0000



[User Discussion] - Is There a Simple Way To Draw a Repeating Horizontal Line?

View Count: 1692

[2014-09-25 12:21:38]
cmet - Posts: 548
Is there a way to draw repeating horizontal lines at a fixed increment?

This would be similar to what you can do in scale settings but would allow you to set an increment independent of the scale.

For instance:

Scale is set to every 5 points starting at 0.
Now I want to add a horizontal line that starts at 2.25 points and plots every 5 points from there.

This would plot repeating horizontal lines at:

0-5-10-15-20...

And also lines at:
2.25-7.25-12.25...

With the Horizontal Lines tool you have to manually enter each line, I'm looking for a way to repeat it at a fixed increment automatically.

Is this possible?

[2014-09-25 12:52:29]
ronghuax - Posts: 12
Try Parallel Lines. It might be what you're looking for. You can specify distance between lines through the Levels >> Level % setting.

http://www.sierrachart.com/index.php?page=doc/doc_Tools.html#ParallelLines
[2014-09-25 12:56:51]
cmet - Posts: 548
No, that's not what I'm talking about.

Looking for something like they have in IRT where you simply enter the starting price, enter the increment and then select "repeat".

This way it draws incremental lines infinitely in both directions at spaced increments automatically.
[2014-09-27 19:47:52]
vegasfoster - Posts: 444
In the user contributed studies there is a Horizontal Grid study that does this.
[2014-09-29 12:42:08]
cmet - Posts: 548
Thanks but this is just 40 levels and you have to set the draw style for each one and keep moving it based on where the market's at.


[2014-10-01 01:28:32]
vegasfoster - Posts: 444
Probably because there is a 40 subgraph limit, although you can add up to 10 arrays to each subgraph, so, I will have to look at it and see if I can update it.
[2014-10-01 01:36:55]
cmet - Posts: 548
That's okay, thanks though.
[2022-12-20 16:52:34]
ScottK - Posts: 43
I'm trying to figure out how to do this also. Has anyone solved this problem in the last 8 years since this post was created?
[2022-12-21 20:57:40]
JohnR - User831573 - Posts: 305
I'm only a self taught coder, but I would approach this by creating an study that takes input for 3 things, the starting point (lowest value), increment, and highest value and then draw horizontal lines that extend into the future. You could get fancy and only draw lines that are within the viewable range, or set a timer to have the study redraw every 'x' time periods. You could also have additional inputs to set color, line thickness, style etc.

Using the drawing tool instead of graphs, I believe you can have way more than 40 drawing objects at a time.

Hope this helps,
JohnR
[2022-12-21 22:23:31]
ScottK - Posts: 43
I am trying to use the Horizontal Grid Study. It sort of does what I want, but it is so much work to edit. The Horizontal Line Study lets you set all subgraph display settings to be the same as the first, but the Horizontal Grid Study does not.
[2022-12-23 01:10:19]
User719512 - Posts: 245
The
Horizontal Lines at Increment
study solves this based on what I have read in this thread.

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

Login

Login Page - Create Account