Backtest Overbought and Oversold stocks using PI

Hi,

I have been looking to backtest Overbought and Oversold stocks using PI.

1.The strategy i am looking is to sell when the below condition is met
ref(close,1)>ref(close,2)*1.05  and
 open>ref(close,1)*1.02       and 
 VOLUME > SMA(VOLUME, 5) *1.5 --End of code
Exit this short when last<=ref(close,1)

2.The strategy i am looking is to buy when the below condition is met
ref(close,1)<ref(close,2)*1.05  and
 open<ref(close,1)*1.02       and 
 VOLUME > SMA(VOLUME, 5) *1.5 --End of code
Exit this long when last>=ref(close,1)

But when i give in backtest with minute periodicity and for 10 days,it is saying enter details in correct format.I also tried with day periodicity.PFB


1 Like

As per the above screenshot you have to update your pi software it will be fixed automatically go to help-> check for updates