Hi,
I was trying to code & backtest strategy something like below, however not sure if its possible, can someone please help,
eg for Nifty Futures
N=20
long script : If current price >= open price + N
exit long script : If current price >= open price + N + N
SL : current price = open price
N=20
short script : If current price <= open price + N
exit short script : If current price <= open price - N - N
SL : current price = open
Thanks.