I'm new to Ninja Script and would like to program a very simple first strategy. I would like to be able to draw a trend line by hand and whenever the price comes close to this line I would like to take certain actions. For example, if the price breaches the line (price going up) I would like to submit a long order with trailing stop.
My first question would be: how can I access the data of my hand drawn line? I would obviously need two points to make it a line.
Thanks for any help!
kf
Comment