DonLincolnUts
New member
Hello:
I'm looking for a code for MKT order which i can paste in Tos and the order should execute once the condition is met.
So e.g. Below is code. The code should buy ATM or ITM option once it breaks the high of previous candle, as you can see in the attached chart that the NDX dropped from 12,849 to 12815, the option prices on NDX changes very quickly. High of the previous candle is 12,816.15 below code will execute as soon as it breaks the high of the previous candle but what missing is how to place the ATM option code at the strike price 12,800 since that option will be ITM.
BUY +1 GetATMOption MKT WHEN NDX STUDY 'close is greater than high from 1 bar ago;1m' IS TRUE [TO OPEN];
Below is the link to the picture.
https://mailchi.mp/27a7e902c835/test060222
I'm looking for a code for MKT order which i can paste in Tos and the order should execute once the condition is met.
So e.g. Below is code. The code should buy ATM or ITM option once it breaks the high of previous candle, as you can see in the attached chart that the NDX dropped from 12,849 to 12815, the option prices on NDX changes very quickly. High of the previous candle is 12,816.15 below code will execute as soon as it breaks the high of the previous candle but what missing is how to place the ATM option code at the strike price 12,800 since that option will be ITM.
BUY +1 GetATMOption MKT WHEN NDX STUDY 'close is greater than high from 1 bar ago;1m' IS TRUE [TO OPEN];
Below is the link to the picture.
https://mailchi.mp/27a7e902c835/test060222