Backtests No Longer Work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #260806 quote
    Bard
    Participant
    Master

    Hi, its been some years since the auto systems I had running have been launched, but what I am finding is that once working systems are now producing no positions.

    Can anyone figure out what I need to do to get them working? Here is one that isn’t running:


    Cheers!



    IndexBond-Std-Dev-Strategy.itf
    #260812 quote
    GraHal
    Participant
    Master

    I changed as below and the Algo you posted springs into life (from dead / no trades) and takes trades on US30 Index.

    I then GRAPH sizebuy and it shows as 0?


    BUY at Market //sizebuy SHARES AT MARKET
    
    Nicolas and Iván González thanked this post
    #261879 quote
    Bard
    Participant
    Master

    Thanks @GraHal!

    It’s odd because “sizebuy” was a legit parameter that triggered trades previously, but now it doesn’t? Does anyone know why?


    sizebuy = ROUND((capital *perccap /100)/ margin)
    

    Cheers

    #261880 quote
    Nicolas
    Keymaster
    Legend

    Because since 2 years or so, ROUND accept a second parameter to how many decimals you want to round. If there is none, then 0.2 is rounded to 0 and therefore no trade!

    It works if you round your contract size to just 1 decimal:

    sizebuy = round((capital *perccap /100)/ margin,1)
    
    robertogozzi and GraHal thanked this post
    #261895 quote
    PeterSt
    Participant
    Master

    Backwards Compatibility.

    A phenomenon unknown to PRT.


    One of the worst exhibits of PRT.

    Don’t ask me for examples, but I ran into many examples throughout time. It is incomprehensible that any software developer allows for this.


    Something else : A Round command without parameters for the number of decimals to round down to, makes no sense to me in the first place. So if this really has been the case – so be it. But if so … come one. This can’t be serious …

    #261898 quote
    Nicolas
    Keymaster
    Legend

    FLOOR

    FLOOR

    and

    CEIL

    CEIL

    instructions have been added at the same time.

    For reference: https://www.prorealcode.com/documentation/round/

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

Backtests No Longer Work


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Bard @brad Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by Nicolas
1 week ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/04/2026
Status: Active
Attachments: 1 files
Logo Logo
Loading...