I'm writing a strategy to backtest an option strategy.
Now my question is how to draw a short line above the candle (or below the candle when it's a short position) when a long position is opened that represents the target?
For example, the strategy opens a long position at a the current price of 1500, my target is set on 2% of the entry price what gives 30, so i want a short line above the candle when the position is opened at the price of 1530.
I've tried a lot of things but i don't find the solution ...
Comment