Backtests No Longer Work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #260806 quote
    BardBard
    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
    GraHalGraHal
    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
    BardBard
    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
    NicolasNicolas
    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
    PeterStPeterSt
    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
    NicolasNicolas
    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.
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

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 NicolasNicolas
3 months, 1 week ago.

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