Breakout Failures DAX 5m

Breakout Failures DAX 5m

This is a simple strategy, just an idea that seems to work. No MoneyManagement or Position Size. Optimized for DAX 5 minutes.

It looks for breakouts in Donchian Channel for going in the opposite direction, trying to catch breaout failures so kind of mean reversion system. There is no Stop, when the losses reach 10xATR it changes (“flip”) direction to catch the trend that seems to be forming. Also finish tradings at 20:30, kind of time stop with no overnight.

Donchian channel indicator (should be set as a new indicator)

 

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. TempusFugit • 10/30/2017 #

    Thanks Nicolas for adding the indicator, I somehow thougt it was one of the default indicators 🙂

    • Nicolas • 10/30/2017 #

      The one you used is not, that’s why I added it. What is the timezone for your DAX instrument please? While testing it, I did not get exactly the same results even if it was not bad at all.

  2. TempusFugit • 10/30/2017 #

    My timezone is UTC+00:00… and I think that´s the backtest timezone

  3. masala • 10/30/2017 #

    Thanks for the idea. Personally I don’t like to enter trades without a hard stop and also I don’t like to trade the DAX outside the official kassa times – because the spread is then wider than 1p.

    So my modified code looks like this:

    // System parameters
    DEFPARAM CumulateOrders = False
    DEFPARAM PRELOADBARS = 20
    DEFPARAM FLATBEFORE = 090000
    DEFPARAM FLATAFTER = 180000
    STOPPER = 100
    // Condiciones de entrada
    myUpperband, myLowerband, ignored = CALL “Donchian (canal)”[8]
    c1 = close myUpperband

    // Conditions for Entry of Long Positions
    IF c1 AND NOT ONMARKET THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP $LOSS STOPPER
    ELSIF SHORTONMARKET AND (CLOSE-TRADEPRICE) > FlipPosition THEN
    BUY 1 CONTRACTS AT MARKET
    SET STOP $LOSS STOPPER
    ENDIF

    // Conditions for Entry of Short Positions
    IF c2 AND NOT ONMARKET THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    SET STOP $LOSS STOPPER
    ELSIF LONGONMARKET AND (CLOSE-TRADEPRICE) < -FlipPosition THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    SET STOP $LOSS STOPPER
    ENDIF

    // Loss, Profit
    //SET STOP LOSS 15*AverageTrueRange[10](close)
    //SET TARGET PROFIT 15*AverageTrueRange[12](close)
    FlipPosition = 10*AverageTrueRange[14](close)

    // END

    If you see room for improvements, feel free to post here. Ah, I switched to 1min timeframe 🙂

  4. TempusFugit • 10/30/2017 #

    Masala, thanks for your contribution. I don´t like the offmarket spreads neither 😉 I understand your waryness of non hard stops but in this case seems to hurt the profit quite a bit.
    Be aware that in your code the c1 lack of “>” symbol and the c2 is missing completely (“c2=close<myLowerband")

  5. Uveus • 10/30/2017 #

    Tempus, me da un error al validar el codigo, sobre la variable N.
    Al crear el indicador me pide darle valor, y luego en el codigo me dice que debe ir sin valor.

    gracias

    • TempusFugit • 10/30/2017 #

      Hi Uveus,

      I am guessing you inserted the code of the indicator into the system code, is that right? If so, don´t need to, just import both the indicator and the system and run the system, it takes itself the code from the indicator.

      If this is not your problem I dont understand your question.

      ———————————————————
      Te contesto en inglés porque tenemos que escribir en el mismo idioma que el foro para que todo el mundo lo entienda, si no nos dan un toque. Si no entiendes la respuesta en inglés escríbeme un correo, creo que puedes desde mi perfil y ya te contesto en español.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
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...
Quino
5 months ago
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
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 ...
Nicolas
8 months ago
Florian Hello Nicolas, This indicator repainting ?
Nicolas It's impossible for it to repaint the values of the past.
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
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!
Patrice210 bonjour STANKO, effectivement la première ligne apparait en anomalie et je ne comprend pas v...
KumoNoJuzza Hi guys, Thanks @Stanko and everyone for your contributions. I have been playing around ...
Stanko Hi KumoNoJuzza, thanks for the post. I also tried your code with Dax and the performance is ...
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 .
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
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

Top