What I am trying to do inside a study is something that ToS is already doing internally. (Hopefully that means it is possible.)
When I purchase a Call option it is bracketed with a target and stop order. ToS automatically places lines on the underlying's price chart that represent the approximate price at which the option would touch those orders. I would like to calculate the same price values in a study but other than simply getting the current option price I have not made any progress.
If anyone has done this or can point me in the right direction it would be greatly appreciated.
When I purchase a Call option it is bracketed with a target and stop order. ToS automatically places lines on the underlying's price chart that represent the approximate price at which the option would touch those orders. I would like to calculate the same price values in a study but other than simply getting the current option price I have not made any progress.
If anyone has done this or can point me in the right direction it would be greatly appreciated.