HI everyone,
I am working on a code with cumulative orders. I am able to backtest it but cannot forward test it due to following error (attached).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Code is: IF c3 THEN SELL Positionsize PERPOINT AT MARKET ENDIF If CountOfPosition < 4 AND TRADEPRICE > increment AND ShortOnMarket THEN SELL positionsize perpoint at market ENDIF // Conditions to exit short positions indicator7 = ExponentialAverage[x](close) indicator8 = ExponentialAverage[y](close) c4 = (indicator7 CROSSES OVER indicator8) IF c4 THEN EXITSHORT AT MARKET ENDIF |
Can anyone suggest what i am doing wrong?
Thank you.