To trigger a buy/sell leg after some time based on the price which is earlier time

Hi
I want to write a code for find a strike in between based on LTP 150 to 160 between time A and B. After that i want to BUY the same strike if the LTP goes above 190 between time C and D.

Thank you all

1 Like