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
GraHal Ooops got that excited I sent that last one twice! ha (and can't delete it, sorry) I got it...
Eric n = 3  dont forget to allow 3 contract in proorder
UkCoopDownUnder Tried EURUSD GMT and GMT -1, as far back as I can go, Nov 2018 on 15mn Tf, 22% loss
hvluthy@sunrise.ch I'm very interested to try out your strategy, but as a bloody newbie I need some help regard...
Scalp Hola Adolfo, tengo una variante de tu estrategia, pero no se programar, me puedes ayudar al ...
ALZ Hi, I tested this strategy and that doesn't work.. strategy is losing.. Does anyone curr...
Doctrading Hello, Someone asked me something (his results seemed to be different) on my email, but it ...
Glen Marquis Not your best..So what is your best strategy? :)
Nicolas Ahah, I'm not the author of this one :) I know you are a great coder Wilko, why don't you p...
Wilko Thanks for the flattery! I will, I promise.  /F
Nicolas Still don't have seen anything from your own :) You promised me! Ahaha 
Andres Uffff, I didn't adjust the different index spreads. With the heavy spread of Italy It's nega...
davidp13 Good day. I know this was posted such a long time ago, but I though rebuilding the system on...
davidp13 Also to note that the one position in my code does not close the other, which as far as I kn...
Adolfo Onrubia Ups! Sorry. Variable "S" is to set an specific Spread if needed. Could be "0", or the distan...
GraHal Hi Adolfo, big thank you for your code, but I am a bit confused. Spread is the difference b...
Meta Signals Pro Hi, For me there is a mistake here L32 maxriesgo = round(equity*riesgo) => round(equ...
Dave Hi, I'm new to coding and have been trying to modify the code a little to backtest an idea I...
Nicolas Better use the forums for coding assistance please. You'll get more results there for sure.
Dave Apologies - only just learning the site layout. Maybe you could delete the post?
Nicolas You can try this code for buy and hold curve line: capital = 10000 mylot = 2 i1 = capi...
soukenson Bonjour Nicolas, Je ne comprends pas où ajouter le code que tu as a donné dans le code initi...
Nicolas Tu veux parler du code pour comparer avec le "buy and hold" ? Si oui, tu as tout ce qu'il fa...
Nicolas FR/Bonjour Steftonio, non pas de frais overnight calculé sur la durée du backtest, c'est une...
avatar
Anonymous Any reason why in 2016 this system is doing very bad respect the previous years?
Nicolas "very bad" is relative to the account equity. I do not forward test this strategy since I po...
EAxelsson Hi, shouldn´t it be or instead of and? if FiftyTwoWeekHigh = FiftyTwoWeekHigh[1] OR FiftyTwo...
qigley Line 4 has a redundant term "Close>EMA2." is not necessary as EMA2 will always be less t...
Mike.44 Thanks It a good job !
Wisko But the BUY-trigger is below the High of the first two 15min-candels?
Nicolas That's right, because what we want is to enter the market quickly and not wait for the next ...
Wisko Then I don't understand the backtest data. Yesterday (28.9.) range was from ~ 4410,5 - 4450,...

Top