DAX 30 – Morning range breakout with order size increase

DAX 30 – Morning range breakout with order size increase

This automatic trading robot use the morning range from 7 o’clock to 9 o’clock of the Dax 30 on a 1 minute timeframe basis. If the price breaks the range up or down, a trade with fixed StopLoss and TakeProfit is set.

This strategy is another version of the famous Open Range Breakout methodology applied on DAX.

 

 

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. Robin von Bauhn • 03/08/2018 #

    Thank you for sharing!
    Although I have a couple of questions:
    Why 1 min? Since the range is based over 2h and you enter with stop orders you might as well use 15m to get a larger sample size?
    And why a fixed sl/tp? Especially with a small sample size all you do is increase risk of curvefitting?

    Best regards,
    R

    • beeb • 03/08/2018 #

      Hello,
      nice that you like the strategy.

      For 1 minute I have chosen to avoid the first minute in the DAX at 9 o’clock, because this is often very turbulent.
      The entrance is at 9 clock 1.

      For the SL / TP I’m still testing myself and I’m not sure how to improve the performance.
      Do you have an idea how to do that?

      Best Regards
      Beeb

  2. mr blue • 03/08/2018 #

    I have a similar approach running – but yours is also very smart – thanks for sharing!

  3. Stefan Martinali • 03/08/2018 #

    In the buy long if statement, shouldnt you enter long if onetrade = 1 instead of 0 (row 30)?

  4. JanWd • 03/08/2018 #

    Was meinst du mit dieser Kode ?
    IF (LONGONMARKET = 1) then
    onetrade = 1
    in = 1
    korrek = 0
    //l1 = POSITIONPRICE + 0.0008
    l2 = POSITIONPRICE – sl
    //sell at l1 LIMIT
    sell at l2 stop
    ENDIF

  5. JanWd • 03/08/2018 #

    Mr Beep, nice strategy you have build !

    I played around with your code, and made my own variation on your code, see below, just an alternative way of coding (less static)

    I am not convinced (yet) about the reliability of the outcomes : if using the code on 100.000 bars, it shows no profit for the first 50.000 bars, I personnally am afraid of overfitting.
    Maybe you have a different opinion.

    Your question : ” For the SL / TP I’m still testing myself and I’m not sure how to improve the performance.
    Do you have an idea how to do that? ===> An good option is to use “Variable optimalization”, for the optimal Take Profit values for short and long positions, could also be used for number of highest and lowest bars to be taken (instead of 120 bars) See also page 30 of the manual, https://www.prorealtime.com/en/pdf/probacktest.pdf

    Kind regards,

    APPENDIX

    DEFPARAM CumulateOrders = true // Kumulieren von Positionen aktiviert
    Defparam FLATAFTER = 163000 // Verhindert das Trading nach xx:xx Uhr

    DaysForbiddenEntry = (DayOfWeek = 6 OR DayOfWeek = 0) // Verhindert das Trading an bestimmten Wochentagen
    Handelszeit = (Time >= 90000 and Time high7 then // Bedingungen zum Einstieg in Long-Positionen
    BUY size CONTRACTS AT high7 STOP
    sl = round((77/10000 * close)) // stop loss
    SET STOP pLOSS sl
    pll = round((VARIABLE OPTIMIZATION 3 PL/10000 * close)) // take profit long
    SET TARGET pPROFIT pll
    else // Bedingungen zum Einstieg in Short-Positionen
    IF close < low7 then
    SELLSHORT size CONTRACTS AT low7 STOP
    sl = round((77/10000 * close)) // stop loss
    SET STOP pLOSS sl
    pss = round(VARIABLE OPTIMIZATION 4 PS/10000 * close) // take profit short
    SET TARGET pPROFIT pss
    ENDIF
    endif
    endif

  6. noisette • 03/08/2018 #

    Thank you for this code that seems to work well. But, if i’m not wrong, we can have buy and short conditions at the same time. So how can the code “decide” between sell and short?

  7. noisette • 03/08/2018 #

    sorry, I was wrong in my previous message: it’s not possible to have both conditions at the same time

  8. dreif123 • 03/08/2018 #

    hi beeb,
    i watched your BOut strategy and i like it very much.
    your code allows only one trade. (long or short).
    what has to be changed in your code, if i like to have maximum 2 trades , so one short and one long, if the events of your code will be matched.
    thx for your support

  9. Dominik • 03/08/2018 #

    Hallo beeb,
    ich schreibe kurz auf Deutsch und falls es von Wert ist übersetze ich es gerne.
    Vielen Dank für Deine Strategie … sieht schon mal super aus.
    Habe eben anstatt dem SL einen 45 TrailingStop verwendet und TP = 55 (hat mir die Analyse so raus geworfen).
    Durch den Trailing Stop finden keine so großen Abbrüche mehr statt.
    Sollte doch real dann auch funktionieren …oder???
    Es sei denn ich habe etwas übersehen.
    Beste Grüße
    Dominik

    • beeb • 03/08/2018 #

      Hallo Dominik, das mit dem deutsch schreiben kommt mir sehr gelegen. Komme auch aus Deutschland.
      Also mit deinen werten komme ich auf eine kleine Verbesserung was den Gewinn angeht aber auch auf einen Max. Drawdown von 890,20 € .
      Wenn ich die werte so lasse auf einen Drawdown von 0 €. und die Ratio ist auch minimal besser 0,03 punkte, ist aber denke ich bei dem unterschied zu vernachlässigen.
      Man kann sicher noch an ein paar schrauben drehen und kitzelt noch ein bisschen Performanz raus.
      Es gilt nur die richtigen Regler zu finden 😉
      Gruß Benny

  10. Dominik • 03/08/2018 #

    // Stops und Targets
    SET STOP pLOSS 0
    SET STOP PTRAILING 45
    SET TARGET pPROFIT 55

  11. vlongobardo67 • 03/08/2018 #

    hi Beeb, I imported the file in my platform but is does open any order.
    What is wrong , what should I check ?
    Thanks
    Vincenzo

  12. fserra • 03/08/2018 #

    Ciao, scusami ma non mi esegue il back test, da cosa può dipendere?
    Grazie

  13. reb • 03/08/2018 #

    Hello
    have you used this strat since last year ? live or Back test ?
    What are the results ?

    • beeb • 03/08/2018 #

      Yes last Year.
      But only back test

  14. drysheep • 03/08/2018 #

    Hi all,

    did anyone test this strategy recently? As i dont get a single trade in the backtest. Any Ideas?

    Thanks in advance

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
BaderBader Good day davidelaferla, Thank you for making your strategy available to the community, I do...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
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 ...
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 ...
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...
thomas2004ch What are the values for nbx, nby, pbx, pby, ptsup, stplos, stptg, tp, vsmax, vsmin?
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
Darren Nash I found this works well on the DOW
thomas2004ch Hi John, Is your strategy suitable for daily SPY? Regards
gatowman Hi, ich bin leider Anfänger, habe den Code zwar importiert, aber scheinbar läuft er nicht au...
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...
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 !

Top