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
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...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
Vinks_o_7 Thanks again Vonasi !
Bard Thank you, this is a great tool @Vonasi, especially for those that used to like shorting Ind...
Aragorna Hi Vonasi, is there a reason why it does not work anymore in new version ePRT Platform? tha...
YvesRobert @robertogozzi. It's done. Thank you
YvesRobert Hello Roberto, some questions about your strategy. 1 - Do the 2 lines SET TARGET pPROFIT T...
robertogozzi 1. The 2 lines SET TARGET pPROFIT TP and SET STOP pLOSS SL are always executed, each bar. Bu...
sycomore Ça ne fonctionne sur aucune valeur, je dois être trop con...
Nicolas il faut appliquer l'indicateur sur le prix.
AntoGH Je crains de ne pas comprendre... Cela indique la probabilité de la prochaine bougie ou donn...
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
Gubben So far so good. After a long drawdown it was winning four times in five weeks. Since 24 jul...
pat95162 Salut Pourquoi je n'ai pas les même résultats que vous
UkCoopDownUnder Any hints for us, on which variables we should be optimising ? As of November 2020, the cu...
Peter I recognized a possible problem with the timeframe / Defparam variables. As far as I know, t...
superfalcio Hello Peter, it is long time i have been watching this strategy, very good and interesting ...
Peter I indeed do have different modified strategies in the market. In the past my variants perfor...
JJ Tec Hola. Me gustaría contactar contigo para ver la estrategia..
nilsla1981 Has someone already tested in real ?
Lucas0000 Hola. estoy buscando un programador en proorder, para hacer un programa basado en el Q-trend...
JOKAMAURICE Thank you but I don't really understand. The values don't fit with what I see on my chart. I...
Alberto Aguilera Hi! Thanks for your strategy Anyone can check it with 200 bars?
TempusFugit Hi, this simple system for DOW and only shorts has worked quite well, maybe because of its q...
phoentzs Unfortunately, I never pursued this strategy further. Maybe I should take a look with what ...
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...
tobytarczy Hi Vonasi, Sounds lovely, I race yachts around europe myself. Most regattas cancelled unfor...
mlouys Hello Vonasi thank for your work ! A question how can we do it for minutes ( or 15 min or x ...
Vonasi I think that would be possible but probably in a whole new indicator as detecting when a new...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
darbes Hi How does it go on live ? JC
antonio73 Balmora74, io vedo che funziona anche su timeframe ad 1 minuto con piccole ottimizzazioni, t...
Juananantoniorodriguez hola buenas, a este sistema automático, Cómo se le podría poner un stoploss de beneficio sim...
Exalaxe Hey, i just noticed you optimized this strategy. Could i see your new version, please?
Andrea.1981 sorry i add my code but it not enter why i dont know
Andrea.1981 this is code simply stop , and you can see another version for stop / Codice principale...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...

Top