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

+9 more likes

Related users ' posts
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, another great Indicator, very useful to trace the trend ( blue line) and the pos...
jordan //---settings MAmode=0 Period=150 NumberOfMA=100 //---end of settings MA2=undefined ...
jordan dites moi si cela correspond à ce que vous cherchez
kats bonjour merci de ta reponse mais non ca fonctionne pas sympa quand même d'avoir essayé cdlt
luxrun I have a problem that I don't understand: by changing the parameters of the CCI and RSI peri...
Iván Hi! Sorry... You have to check lines 9 to 13 and delete. //CCIper = 14 //RSIper = 14 //Ma...
luxrun grazie Ivàn!
BaderBader Good day davidelaferla, Thank you for making your strategy available to the community, I do...
Faisalx ChatGPT Hola Iván. Gracias por tu excelente trabajo. Te agradecería si pudieras echarle un...
Iván ok, perfecto! me pongo con ello
kats Bonjour, J'ai une question etes vous trader? Je m'explique , j'ai téléchargé tous les indi...
Stenozar Ciao mi restituisce errore line 1; forse è perchè utilizzo la versione 11 ? in questo caso d...
Stenozar Ciao IVAN , mi da errore per la riga 49 "print tema low"; puoi suggerirmi la modifica da met...
Iván Avete provato a scaricare il file .itf?
Iván
7 months ago
Iván Hi, Sorry, but what do you mean?
luiskohnen Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias...
Diamant Bonsoir, L'un d'entre vous peut-il me donner les définissions de LL-HH-LH et HL. Merci d'av...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Lean Me parece muy buen indicador, y se complementa muy bien en mi sistema, ¿podrías crear un scr...
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
lee Thank you!
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...

Top