The “DAX Donchian Breakout” strategy

The “DAX Donchian Breakout” strategy

Hi all,

Here is one of my simple strategies. With a little help from someone, here is the code with optimization.

The strategy is using Donchian breakout, with MACD, RSI and moving average as trending indicators.

The code is so simple that I won’t write a long description.
Seems to be effective !

Best regards,

This strategy is suitable for : DAX, H1 (1 point spread, tick by tick)

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Daniel da Costa • 03/18/2018 #

    Thanks Doc! Where can you find a service for Dax with a 1 point spread?

    • Doctrading • 03/18/2018 #

      Hello. I suggest you : ProRealTime CFD, or IG.
      Best regards,

  2. JanWd • 03/18/2018 #

    Hey Doctrading,

    I tried your code, optimising the A and V and the RSI period, see below.
    Seem to work very promising, but only for one year, from april 2017 to april 2018 It does NOT gain a profit for a period before that period, from april 2016 to april 2017 the net result is zero (1,8 point spread)

    This poverly performance further back in the past happen very often with my algo models as well, —> how do you deal with this phenomenon ?
    Looking forward for your thoughts,
    Thanks, Jan
    ===============================
    Your code optimised with 3 variables, speaks for itself:
    //https://www.prorealcode.com/prorealtime-trading-strategies/dax-donchian-breakout-strategy/
    // ALLEMAGNE 30
    // H1
    DEFPARAM CumulateOrders = False

    // TAILLE DES POSITIONS
    N = 1

    // MACD histogramme
    iMACD = MACD[12,26,9](close)

    // Donchian
    // Pour le DAX : A = 9 et V = 7
    A= a1//9 default, variable optimization
    V = v1//7default, variable optimization

    DonchianSupA = highest[A](high)
    DonchianInfA = lowest[A](low)
    DonchianSupV = highest[V](high)
    DonchianInfV = lowest[V](low)
    iRSI= RSI[R](close) //4 default, variable optimization
    OneTradePerDay = IntradayBarIndex iMACD[1]
    ca2 = iMACD >= 0
    ca3 = close crosses over DonchianSupA[1]
    ca4 = iRSI > 63
    ca5 = close >= average[50]
    IF ca1 AND ca2 AND ca3 and ca4 and ca5 and OneTradePerDay THEN
    buy N shares at market
    ENDIF

    sell at DonchianInfA stop

    // VENTE
    cv1 = iMACD < iMACD[1]
    cv2 = iMACD <= 0
    cv3 = close crosses under DonchianInfV[1]
    cv4 = iRSI < 31
    cv5 = close <= average[500]

    IF cv1 AND cv2 AND cv3 and cv4 and cv5 and OneTradePerDay THEN
    sellshort N shares at market
    ENDIF

    exitshort at DonchianSupV stop

  3. Glen Marquis • 03/18/2018 #

    This will work as there is plenty of room for the Target before the Stop, yet the Stop would be hit first far more frequently, hence the equity curve nothing at all as per real time.

  4. magicT • 03/18/2018 #

    I did a copy and paste of this code and PRT 10.3 returns a synthax mistake:

    OneTradePerDay = IntradayBarIndex iMACD[1]

    Can you clean this error please ?

    Thanks.

  5. ak5hay2 • 03/18/2018 #

    Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!

  6. richyowen • 03/18/2018 #

    Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on any position taken?

  7. lisamitch50 • 03/18/2018 #

    Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tell me – How do you then implement the cross strategy? it tells me which crossing strategy was best (For what i am looking for {Drawdown / gains / % winners etc}, but not what average that is.?? I see that that for example, MAType was 14 and MATypeV2 61 worked for me the best on the instrument i want to use it on, but – 14 i a Fractal Adaptive Moving Average and 61 is a Zero Lag BMT?? Do i copy and paste the chosen code for each strategy Number? I would love to chat about this a LOT more. Thanks.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+8 more likes

Related users ' posts
kats bONSOIR Est ce normal que les droites se démultiplient en plusieurs droites quelle differe...
kats j ai fait une copie d'ecran mais je ne sais pas comment l'envoyer sur le site
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Bateson
5 months ago
Bateson
5 months ago
MACD Reloaded
MACD Reloaded
2
Indicators
NEOMKEY Nada nuevo
Carlose I love your version of the MACD, if you use it you can get a lot of use out of it, for me ma...
Matriciel Very nice job ! Is it possible to do the opposite because what interests me is to have the ...
YvesRobert Hi Matriciel, how can we do this, because stochastic is limited between 0 and 100 but price ...
Traderfox06 Dear zeiiermantrading, I really like your approach combining adaptive averages with MACD in...
larouedegann Très Très bon indicateur. Je l'utilise en 1minute
NEOMKEY Excelente trabajo. Lo uso también en scalping de 1 minuto.
philippe59139 bonjour zeiiermantrading , merci pour ton excellent travail, je me suis permis de rajouter ...
jacquesgermain Hello IASD it's normal , when this occurs, uncheck RSI and MFI line and click then the MAC...
emiliobercial Thank you very much for sharing!
Carlose estoy de acuerdo con IASD Esta muy bien el MAD y el indicador en el precio no se ven bien...
Nicolas
8 months ago
Florian Hello Nicolas, This indicator repainting ?
Nicolas It's impossible for it to repaint the values of the past.
bousalahane merci pour le partage de cet l'indicateur, j'ai rajouté un autre indicateur pour faire une s...
Gianluca Amazing, thank You for your contribution!
Alex Spioglou Thank you for featuring my work, and I hope you found it useful. Mind the paper was publ...

Top