I am developing a strategy, in which lines are drawn based on some parameters. And what I am looking for is to detect the breaks of said drawn extended lines.
I've been looking for several hours and I can't find anything in the forum on how to access the values of a line drawn by means of a strategy. Or how to apply the "Crossabove" function with a drawn line.
To clarify, I attach an image with the example. In the image you can see how the extended line is drawn based on the two points marked with the red arrows. And what I want to detect is what I mark with the red circle. That is, I want to detect when the price breaks the line drawn.
How could I do this in ninjascript for a strategy?
King regards,
Comment