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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89664 quote
    superborstigsuperborstig
    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
    superborstigsuperborstig
    Participant
    Junior

    this is for Dax 30(5,-€)

    #89813 quote
    NicolasNicolas
    Keymaster
    Legend

    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
    VonasiVonasi
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 VonasiVonasi
7 years, 9 months ago.

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