Code works in demo but not in premium backtest (strategyprofit)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89664 quote
    superborstig
    Participant
    Junior

    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

    #89688 quote
    superborstig
    Participant
    Junior

    this is for Dax 30(5,-€)

    #89813 quote
    Nicolas
    Keymaster
    Master

    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
    #89830 quote
    Vonasi
    Moderator
    Master

    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 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Code works in demo but not in premium backtest (strategyprofit)


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Vonasi
7 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/25/2019
Status: Active
Attachments: No files
Logo Logo
Loading...