Hi, please help me with this code for PI backtesting
- BUY when candle closes above three SMA 20 , SMA 40 and SMA 60
- SELL when candle closes below three SMA 20 , SMA 40 and SMA 60
Hi, please help me with this code for PI backtesting
for the above given condition you can write
For buy:
CLOSE> SMA(CLOSE,20) AND CLOSE> SMA(CLOSE,40) AND CLOSE> SMA(CLOSE,60)
for sell:
CLOSE< SMA(CLOSE,20) AND CLOSE< SMA(CLOSE,40) AND CLOSE< SMA(CLOSE,60)
Thank you for your help