Hallo Forum,
why is this code working in prorealtime demo backtest and not in the prorealtime Primium backtest???
All settings are the same.
Strategyprofithigh = highest[Tradeindex](Strategyprofit)
IF TIME = 090000 THEN
BUY 1 SHARES AT Market
Endif
If Time = 100000 and longonmarket Then
sell at market
Endif
graph Strategyprofithigh
kind regards
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:
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
Topic moved to English forum (you were posting in the German one!).
I also tidied up the code!
superborstig – please use the ‘Insert PRT Code’ button when putting code in your future posts to make it more readable for others 🙂