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
supertiti Bel outil si on ne se tape pas sur les doigts avec ! Comment ajoute-on une image avec le co...
JohnScher Short variant, see at https://www.prorealcode.com/topic/late-lunch-trade-dax40-strategy/
DANY Hi JohnScher, Thanks a lot for your contribution. Consider this release to avoid overfit...
JohnScher Thank you so much for exploring the Late Lunch Strategy. For discussion and in answer to yo...
BenJuice JohnScher, merci de partager ta stratégie. Je suis nouveau dans ce domaine, sur ton code q...
JohnScher As a percentage of the price, here 2%. StopLoss as well as TargetProfit. SL and TP come ...
Wilko I absolutely love the simplicity of this mean-reversion strategy. Well done!
KumoNoJuzza Bonjour, @rominet44 pourrais tu expliquer à quoi sert le filtre: M8=average[11](close) // ...
Nicolas la moyenne mobile 11 période actuelle est ascendante ou descendante, on teste sa valeur vis ...
Patrice210 bonjour STANKO, effectivement la première ligne apparait en anomalie et je ne comprend pas v...
magnus59 Hi Nicolas, thaks for your great work here, I need a scanner for the swedish OMX when ma...
Nicolas Yes, sure please open a new topic in the ProScreener forum section, thank you.
paullyons Hello! Thanks for post your indicators. I'd like you to let me know how to draw lines for ...
snucke i dont think you understod the question. i did not ask about the band pass indicator. i as...
thomas2004ch Hi, Is this startegy suitable for daily SPY? Regards
ebous64 Je cherche à traiter des effets de bords avec un encadrement ajustable des variables. Vous a...
DELBERT Bonjour , Nicolas , je voudrais installer cet indicateur sur ma PRT , version 10.3 , mais je...
Nicolas En effet, il faut à minima une version 11. La 10.3 est tellement ancienne maintenant.. Je pe...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je fais un essai et je verrais . Salutations .
Rafa Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
Nicolas Add it on the price, see how: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an...
Frankyslo1 No consigo instalarlo en el precio en PRL-version 10
Khaled Thank you Nicolas! Looks like TDI (Trader Dynamic Index). Interesting to give Exit Signal as...
Nicolas ColorBetween is an instruction added last year: https://www.prorealcode.com/documentation/co...
JohnScher Postscript: It's running in the live right now. One position after the other is opened. ...
ullle73 nice!! how's it been since your last post on going live? :)
thomas2004ch Hi, Is this strategy suitable for daily SPY? Regards
Nicolas
2 years ago
DELBERT Bonsoir , Nicolas , j'ai transféré votre indicateur sur ma PRT 10,3 et j'ai un méssage d'ére...
Nicolas Vous pouvez essayer en remplacant la ligne avec: vwapsd = sqrt(average[lengthz](square(clo...
DELBERT Bonsoir , merci Nicolas , a bientôt .
wally Hola soy nuevo en el mudo robots. Alguien seria tan amable de poner el archivo itf.file ya q...
Darren Nash I found this works well on the DOW
thomas2004ch Hi John, Is your strategy suitable for daily SPY? Regards
cdc.andersson Hello, I´m trying to paste the code and start testing but can´t get it to work in PRT. Shoul...
Lupo32 Thank You Aaron
superfalcio I'm having no more issue on the new Prorealtime release 11.1
AntoGH Bonjour peut-on backtester cela ? Et si vous l'avez fait pourriez vous nous donner le code.....
Nicolas désolé c'est un oubli de ma part, tu peux supprimer cette ligne, elle n'est plus utile dans ...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je suis en effet avec PRT 10.3 , et j'ai bidouil...
poldoposta si potrebbe trovare una soluzione per sovrapporlo al prezzo?
robertogozzi Basta che tu clicchi sull'etichetta (tag) PREZZO del grafico (appena sotto l'angolo in alto ...
Roland57800 Bonjour Noobywan, si je comprends bien l'utilisation de ce code que je trouve particulièr...
Noobywan Bonjour, quand la question a été posée dans le forum à celui qui avait fait la requête en am...
Fabian This Code draws only a retangle if the condition has been confirmed and NOT before (in that ...
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/

Top