Mean Reverting Strategy on AUDCAD on h1 timeframe

Forums ProRealTime English forum ProOrder support Mean Reverting Strategy on AUDCAD on h1 timeframe

  • This topic has 36 replies, 13 voices, and was last updated 6 years ago by avatarYngve.
Viewing 15 posts - 1 through 15 (of 37 total)
  • #64053

    This is a mean reverting strategy that I currently run live on AUDCAD.

    Enjoy, comment and improve 🙂

     

    #64416

    Thank you Francesco, going back to mid 2010, the strategy is still quite good in tick by tick backtesting. Did you try some WalkForward analysis since you seem to have optimized the variables? I know there are only 3 of them, but should be interesting to know how it performs with WF. I launched one just now, I’ll get back with results.

    #64424

    I threw my Heuristics Algorithm in there to optimize the average[l] variable;

    Now results are looking good on other AUD pairs like AUDUSD as well.

     

    4 users thanked author for this post.
    #64425

    Hi Nicolas, yes I did WF test of course.

    Ill be curious to see the results since 2010. Many thanks

    Francesco

    #64435

    Sorry, I forgot to attach the result in my first post.

    You’ll find attached 3 different pictures, first with WF non anchored, second one with WF anchored and the last one with the variables you are using but with 200k bars backtest.

    As you can see all the OOS periods make huge gain while the IS period is not performing so well, it is a sign of overfit. It doesn’t mean that the strategy is bad, it means that it should need refining with some extra filters or more OOS periods to optimize more often.


    @juanj
    Thank you, will study this version.

     

    1 user thanked author for this post.
    #64503

    Thank you Nicolas, can you claryfy for my own benefit why you think that adding filter in this case could be effecting on reducing overfitting?

    Thanks!

    #64559

    The question is, why does the strategy is not performing as well in first IS as in OOS? 2012 crisis? I meant to study entries depending of the market behavior in this case, of course, more variables mean more overfit… But as I said, maybe it could be solved by adding more IS+OOS repetitions.

    #65330

    Well, I think it could be now added to the library, with the WFA attached, what do you think @Francesco78 ?

    #65358

    @Nicolas

    Thank you, I am fine with it, let me know if you want me to make some amendments on my original post.

    #65490

    @Nicolas

    What shoud I do to put it on the library?

    Thank you

    #65528

    Hey Francesco, I’ll do it for you on Monday 😉

    1 user thanked author for this post.
    #69022

    For what it is worth I tried tackling the large value of drawdowns compared to winning trades. I noticed the losing trades tend to have a larger number of bars so I optimized bars to < 80 bars which on 100000 bars reduced profit slightly 11384.4 down to 11015.20.  It did reduce the maximum loss to 415.2o from 761.00.

    The code for this change is attached

     

    1 user thanked author for this post.
    #69796
    Jan

    Thank you very much,  Francesco, for the strategy, which seems solid and robust !

    I tried this on AUD CAD 30 minutes and it works also quite well.

    Extended variables :   S for short average close

    With 15.000 bars from 7 February till 4 May 2018 it gives a robust profit of 2.945 CAD in 3 months (I did no IS/OOS testing) with M=3, N=2, L = 50 and S = 40, in 398 trades, spread 1,7 pips calculated

    I also tried a maximum of one trade per day, with adding the condition ” OneTradePerDay = IntradayBarIndex < (Barindex – TradeIndex(1)) ”

    This reduces the amount of trades with more then half, 180 trades, giving a robust profit of 2.354 CAD, with  M=3, N=5, L = 50 and S = 90  (also I did no IS/OOS testing so far)

    ========================================================

    For other currencies and indices I am still testing

    So far for the FTSE with 2 contracts, exposure more than 30.000 GBP (!), it gives interesting profit of 3.900 GBP on the 15 minutes bar chart with 15.000 bars, from an a maximum of one trade per day, from 6 september 2017 till 4 May 2018,  with  M=1, N=3, L = 50 and S = 40  (also I did no IS/OOS testing so far !!)

    The risk of overfitting for this kind of short periods is very big !! When testing for 100.000 bars the profit especially in the beginning, completely deminish !!!!!!!, but the endresult is quiet the same !

    When testing the FTSE for 100.000 15 minutes-bars with not restricted trades per day, the NON- robust profit is  a bit lower as when restricted to one trade per day, but not robust and a bit lower.

    Kind regards,

    Jan

     

    1 user thanked author for this post.
    #69798

    Thank you Jan!

    #70240

    Really nice strategy !

    I’m running it in my demo account to try it out.

    Thanks Francesco.

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 37 total)

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