I need to create a buy call on nifty 50 option buying.
Condition is as below:
First 15 candle high - First 15 candle low divided by 2.35 value
if any 15 minute above result value then need to take the call
For Example : First 15 minutes candle high is 17100 and low is 17000
17100 - 17100 = 100 / 2.35 = 42.55
if next 15 minute higher than 42.55 then need to buy
please help on this and thanks in advance