Indexbond-Contrarian-orders

Forums ProRealTime English forum ProOrder support Indexbond-Contrarian-orders

  • This topic has 8 replies, 4 voices, and was last updated 6 years ago by avatarBard.
Viewing 9 posts - 1 through 9 (of 9 total)
  • #29800
    reb

    Hi

    To continue the discussion about this strat by DEIO posted in the library, I have opened this topic

    Here is the screeenshot of my backtest

     

    big results but big DD too

     

    #29808

    Sorry Reb,

    I can’ti see the screenshot….

    Thx

    #29811
    reb

    here is

    #32266

    HI all,

    I rewied a bit the strategy in order to be more conservative (and there was a bug too…..)

    Could anyone test on 200 k  bars  (12 H)  ???

    here the code:

     

     

    1 user thanked author for this post.
    #32328
    reb

    Hi DEIO

    #32363

    Hi DEIO.

    I can’t find any problems preback-testing at all. It LOOKS like it buys on downtrend but I can’t see if losing any money anyway, so I don’t exactly understand how it works. Thanks, going to test it on many indexes/bonds on my demo-account!

    #38695

    Hi Deio, Sorry for the long delay due to family matters, I’ve only just been getting back into research in the last few weeks.

    I thought about this strategy a lot. I tested it on many variations adding different indicators and altering parameters or hours traded and then tested it on other indexes. At times, you can get the profit up or the drawdown down in tests by adding the Ehler’s Universal Supersmoother Oscillator as a trend filter – but it still hasn’t totally stopped the system buying into steep declines and accumulating positions, although the Damiani Indicator can sometimes help on backtests with parameters:

    //—settings
    Viscosity=7 //Default=7 //try 5
    Sedimentation=50 //Default 50 //try 60
    Thresholdlevel=1.1 //Default 1.1
    lagsupressor=1 //boolean value (default=true)
    MAtype=2 //MA type variable (2=Weighted average) //Default 2
    //—end of settings

    (Nicolas kindly posted both the codes on this forum).

    I don’t have reference to that particular exact Nikkei strategy mentioned in your original post but I changed the code slightly to something like this:

    Note: I tried to add a graph of the std deviation but I am not sure it is correctly coded:

    Creating code that stops the strategy from buying more positions if the equity curve is falling:

    It occurred to me today that one way to stop it buying and accumulating positions in steep market declines maybe to add code that stops it doing that based on the equity curve. I have read threads on this forum that suggest that may not work, so what is needed is a “Black Swan”  warning based on either a sharp momentum (proceeds price) move or very sharp increases in volatility.

    Close>Close[1]
    Changed to Close<Close[100]. I’ve included an Excel screen of the Period close optimisation to show that there is a stable range b/n 60 bars and 150.

    Testing on the Nikkei 30 mins charts there is only marginal improvement in drawdown and not a particularly stable relationship between profit and the period of the chart 1, 2 hrs chosen – i.e. longer timeframes fail.

    Btw what was the bug you mentioned that you found in v.1.0?

    I tested this new strategy V.2.0 above today, on the S&P 500 and Dax, but I’m not sure (due to limited testing) if it is performing better than V.1.0 that you posted 3 months ago. I haven’t quite figured it all out yet.

    Nice work Deio,

    Cheers
    Bard

    #38703
    reb

    Hi Bard

    In order to chek on 200k bars, could you provide me your indicators : Ehler and Damiani, pls ?

    I have searched on forum but no sure to find the good one

    Thks

    Reb

     

     

    #38928

    Sure Reb, here’s the links for you:
    https://www.prorealcode.com/prorealtime-indicators/universal-oscillator-john-ehlers/
    https://www.prorealcode.com/prorealtime-indicators/damiani-volameter/

    It’s worth reading up on how the indicators function and there’s also a lot of John Ehler’s research papers on his cycle theory on the net too. Here’s his website:
    http://www.mesasoftware.com/

    Cheers
    Bard

Viewing 9 posts - 1 through 9 (of 9 total)

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