Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 17:17:28 +0000



[Programming Help] - drawing rectangles until further intersection

View Count: 670

[2018-04-02 14:42:06]
MD236 - Posts: 28
Hi,

I searched for a solution but can't find any, so here's my problem:
I want to draw rectangles into an range bar chart but only as long if later in time the price reaches this price level,
at this point the rectangel should end.
I draw the rectangles with the sc.UseTool and using a persistent integer via sc.GetPersistentInt(1) but I end up with a chart full of rectangles.
I then tried to use the function sc.AddLineUntilFutureIntersection but it draws only lines.

My question is, how can I realize this "until further intersection" with rectangles or how can I stop drawing "old" rectangles?

Thanks for any tips
Mario

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

Login

Login Page - Create Account