Backtest give me different result

Everytime I have test my strategy in pi it gives me different result …Is there any problem in my code…?

1 Like

It should not happen and the PI backtest is working fine. Post your code and script on which you are testing … we will verify it and let you know.

1 Like

Even i faced this…i tried some script on a stock at night which was behaving weired but next day it started working…

Please check it then tell me…check this on cudeoil15marfut
buy
SET A = MACD(3, 6, 5, WEIGHTED)
SET B = MACDSignal(3, 6, 5, WEIGHTED)
CLOSE>BBM(CLOSE, 5, 2, WEIGHTED) AND CROSSOVER(A,B) AND RSI (CLOSE, 5) > 25
Sell
SET A = MACD(3, 6, 5, WEIGHTED)
SET B = MACDSignal(3, 6, 5, WEIGHTED)
CLOSE<BBM(CLOSE, 5, 2, WEIGHTED) AND CROSSOVER(B,A) AND RSI (CLOSE, 5) < 80

I tested the above with crudeoil15marfut …it is generating me same results…i rechecked it many times, please check once again

k…I will try again…