Forums › ProRealTime English forum › ProOrder support › Code works in demo but not in premium backtest (strategyprofit) › Reply To: Code works in demo but not in premium backtest (strategyprofit)
01/28/2019 at 3:06 PM
#89813
Topic moved to English forum (you were posting in the German one!).
Live account PRT version can differ from the demo one, but you can try this simple fix, to ensure that your “strategyprofithigh” is computing even if no tradeindex is found:
1 2 3 4 5 6 7 8 9 10 |
Strategyprofithigh = highest[max(1,Tradeindex)](Strategyprofit) IF TIME = 090000 THEN BUY 1 SHARES AT Market Endif If Time = 100000 and longonmarket Then sell at market Endif graph Strategyprofithigh |