Support Board
Date/Time: Fri, 17 Jan 2025 20:41:56 +0000
Post From: Cutting off a Rectangle
[2017-12-14 12:53:49] |
WHum7812 - Posts: 23 |
Hello: Could you please explain how exactly a line is cut off once price comes back up (or down) and intersects the line when using the AddLineUntilFutureIntersection function. I have written a script to test it and it works great. However, I do not understand how it knows when to cut off the line because there is nothing in the structure to tell it to. There is a StartBarIndex and the linevalue for the line but the rest of the parameters are for the line structure. The reason I am asking is because I am trying to do something similar with the DRAWING_RECTANGLEHIGHLIGHT or DRAWING_RECTANGLE_EXT_HIGHLIGHT drawing type. I am using the sc.UseTool function to do this. I can get both draw type to appear on my chart properly, given my condition, but I am just unsure how to cut it off when price intersects it again. I think if I understood how the AddLineUntilFutureIntersection function did it, I could figure it out. I would appreciate any help you could offer. thank you, Ward Hum |