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
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
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 ...
Manu L. Bonjour Nicolas, j'ai créé un screener avec l'aide à la prog en TF weekly mais je voudrai...
wtangsiri C'est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et...
PHAN100 bonjour, j'ai un bug sur le programme recopié prorealtime me dit qu'il y a un problème à ...
PHAN100 bonjour, bravo à l'auteur pour cet indicateur visuel sur le graphique, il nous reste à va...
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
yeoreum Thank you very much for the screener, it reminds me on Minervini VCP. How to change th...
reecet any codes like this but in minutes and hours rather than days?
PHAN100 bonjour, je viens de tester ce screener, je constate une anomalie...il ne renvoie pas l'e...
Oxxoz Re bonjour Vivien, Il me smeble que 3 mois, c'est 60 séances. Cordialement,
Vinks_o_7 thanks ...and It can be used on a monthly and weekly basis by changing just the duration in ...
nicko Many Thanks Viv. It looks good
Nokis Bonjour Vivien, Comment je peux faire pour adapter ton code afin: De cibler les sociétés q...
sam00075 I tried it today and it gave great results. So a big Thanks !
Bard Hi @Vonasi, this is an excellent tool! I noticed you times by 180 and was wondering why? W...
Bard I have no idea what is wrong with the posting on this website. I have problems editing posts...
Bard And now my first post displays okay? It literally had copies of my orig post all added toget...
Nicolas Ask on an Excel website?!
JJMR HOLA NICOLAS, TENGO LA ULTIMA VERSION ACTUALIZADA DEL INDICADOR TTM SQUEEZE PRO EN LA VERSIO...
imokdesign @nicolas ,if in want to "call" this indicator, which values i have to write down?
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
Jan Wind Thanks for sharing ! The Gain/Loss ratio is a bit low, 1,16, hardly offset the risks take...
drive whats the period ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
Ludwig Bonjour Merci pour le code, je souhaite intégrer un break even et mette en place un réinves...
superfalcio hello, this strategy is pretty interesting, anyway on index after diferent suggestion and im...
Fralex Hello everyone I optimized the original “LongOnly-DAX-4H-TMA-Channel” algorithm over a pe...

Top