S&P500 Backtest shows different numbers than the Report

Forums ProRealTime English forum ProOrder support S&P500 Backtest shows different numbers than the Report

Viewing 15 posts - 1 through 15 (of 25 total)
  • #206598

    Hello, Happy New Year!

    I have put together the following code and tried to run it TF M15 on S&P500 (Broker IG / code SPTRD at $50 per point). The results generated in the optimization table (+$25,365) do not match with the results shown on the Report (-$6385). Anyone can help please? could it be the Ticker? or something wrong with the code itself?  Thanks

     

     

     

    #206601

    I forgot to mention test on 30k candles

    #206606

    What value for SLT and TP are you using so that my test is same as yours?

     

    1 user thanked author for this post.
    #206609

    From what you say, it sounds like you do not have Tick by Tick mode enabled?

    1 user thanked author for this post.
    #206611

    Oh sorry, I can see from the screenshot that you DO Indeed have tick by tick enabled.

    1 user thanked author for this post.
    #206614

    Thanks GraHal.

    SLT 6

    TP 50

    and yes, Tick by Tick enabled.

    #206616
    JS

    What I have always understood is that the optimization never works with “tick by tick mode” but that only ProBackTest uses “tick by tick mode”…

    So, when you optimize and you get a certain (optimal) result, this is always without “tick by tick mode”.

    You will see that your optimization and your ProBackTest give the same results when you turn off “tick by tick mode”…

    1 user thanked author for this post.
    #206617

    the spread is too small and the 90 line is useless because afterwards you have the trailling stop

    1 user thanked author for this post.
    #206618

    While I was waiting, I got attached with attached .itf.

    I’ll simulate your test on SP500 now.

    #206622
    JS

    “tick by tick mode” turned off…

    1 user thanked author for this post.
    #206626

    SLT 6

    How did you arrive at 6 for Stop pTrailing? (Stop pTrailing is fraught with problems anyway, best to use a coded Trailing Stop) 

    You would be stopped out (with SLT 6) almost each and every 15 min bar and so get a ‘high value in the Tick Mode column‘ on backtest results. This is likely the reason for your odd results (same / similar to what JS has said).

    Ideally we want 0 / zero in the Tick Mode column‘ on backtest results … backtest result will then be same as shown on the Chart and Detailed Report (allowing for any open trades … which are NOT taken account of in  backtest results).

     

    #206628
    JS

    The difference between the optimization (without tick by tick mode) and the ProBackTest (with tick by tick mode) is so big here because the code uses stop loss, take profit and trailing stop that are only calculated in the ProBackTest in a “good way”…

    #206629
    JS

    Sorry when I repeat myself but:

    Optimization never uses tick by tick data but only calculates with “bars”…

    ProBackTest with tick by tick enabled “looks” into the “bars” at tick level…

    #206632

    Thank you. the Spread of 0.4 is the IG Spread during regular market hours, which I used as an estimation. The Spread on official Futures is 0.25.

    The SL (line 90) is useful in case the position goes immediately into red and does not have the chance to comeback to green (news for example).

    #206635

    You’re absolutely right. I’ve optimized with T by T and get the same result on the optimization and the Report, which is by the way very close to the one reported on your graph. Thank you!

    The system looks promising though. Every single month is green from Oct. 2021 to Dec. 2022. Based on the report, very minimal drawdown. R/R x3.3

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

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