Issue with ProBackTest: gives different results on same algorithm and conditions

Forums ProRealTime English forum ProOrder support Issue with ProBackTest: gives different results on same algorithm and conditions

Viewing 15 posts - 1 through 15 (of 16 total)
  • #164468

    Hello all,

    I have an issue with ProBackTest. I developped a couple of algorithms and tested them last week, each one of them multiple times, on different days, and always had exactly the same result.

    I tested them starting Aug 19, 2019 at 01:00 and until March 10, 2021 at 12:00, always with the same starting amount, always with the tick by tick on, and the same spread.

    Yesterday I backtested the exactly same programs, with exactly the same dates, spread, amount and tick by tick. And the result was extremely different e.g. for one of them my gains were divided by (roughly) 4, the percentage of winning trades dropped from 77% to 41%, percentage of time in the market dropped from 62% to 57%… I rebacktested again this morning, and have the same result as yesterday (very different from the original one).

    Does anyone have an idea of why the same algorithm under the same conditions would give very different results in ProBackTest?

    Thanks you very much if you can help me!

    Best regards,

    Bruno

    #164474

    What account type / broker / instrument and timeframe please?

    #164479

    Hi Nicolas,

    Thanks for the quick answer. I’m using an unlimited account (a real one, not demo), at IG, the program I mentioned is on Brent (Brut Brent (1€)) and 8h, but the same issue also happens on other programs on Brent and other timeframes (I have several programs on Brent and they differ for each timeframe).

    #164568

    So this is just for Brent? I am wondering if this is not related to a change in trading hours for this particular instrument, I will find out.

    #164570

    Were the before and after results obtained following an optimization? Or are they individual backtests (without optimization)? Thank you.

    1 user thanked author for this post.
    #164582

    Hi Nicolas,

    They are individual backtests, and the program is exactly the same.

    Yes, it’s only Brent. I also thought it could be related to the change in trading hours since last week. The change in the results is massive, therefore the only explanation I see (for now) related to timing would be that all orders woud be passed in the backtest with an 1-hour delay after the conditons are met. Is there a way to check that?

    #164586

    Just try to change the custom trading hours to verify your assumption, right click on the price chart and choose “custom trading hours”.

    #164589

    I just put all my settings to New York time, restarted PRT, ran the backtest and it gives me the same results as yesterday (different from last week).

    #164592

    ok, so I’m encouraging you to send a technical report through the platform and with a reference to this topic please.

    1 user thanked author for this post.
    #164593

    Thank you Nicolas. Actually I’m not sure I want to share the code with them for now, but if  I do and get an answer, I will keep you updated. Thanks for the effort!

    Best regards,

    Bruno

    #164594

    I asked questions and put a link to this thread in my own query about it. BTW, without the code itself, it seems very hard to replicate what you talk about, and as far as I know you are the first complaining about that issue.

    #164610

    Hi Nicolas,

    Yes, I understand that it would be much easier to help me with the code. I was also hoping someone had had the same issue and knew where it came from.

    Thanks again for all the support and info.

    Best regards,

    Bruno

    #165630

    Hi Nicolas,

    I wanted to keep you updated on the topic above. I can now confirm that the issue is related to the change in time difference between the US and France. Somehow the PRT servers must not have duly updated that.

    I have been trying the same algorithms on the different timeframes on Brent for the last two weeks (and having the same different results), and waiting for today, that the time difference is back to what it was when I first tested. And “miraculously” this morning I got back the exact same results I had before the US time change.

    I understand that you have direct contact with PRT, if you could, I believe it would be worth informing them of the above.

    Thanks anyway for all the support!

    Best regards,

    Bruno

    #165631

    Here’s a piece of code that might help, adjusts for the temporary time differential in the switch to American Summertime, spring and autumn 2010-2024 based on Wall St open hours. There are probably other ways of doing it but this works for me.

    To be honest though, I dont see why your backtest results would change. Regardless of what the time difference is today or last week, historically you would still have ~3 weeks each year when the hours were out of sync, so results should be more or less the same, no?

     

    #165684

    Hi nonetheless,

    Thanks. To be honest I don’t see why neither … but it’s a fact: for two weeks, when the time difference was not the normal one, the exact same code gave different resuls, than came back to the original one. Anyhow, this should now work for the next 6 months or so… until next time change.

    Thanks for the adjustment code.

    Best regards

Viewing 15 posts - 1 through 15 (of 16 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login