DayOpen Straddle for DAX 3-minute timeframe

DayOpen Straddle for DAX 3-minute timeframe

A simple concept.

Define the DayOpen using time.

Buy x points above, sellshort x points below the DayOpen.

One position max a day, Long or Short.

ExtraTradeCriteria is optional.

Test DAX 30 Cash, 3 minutes, spread 1, 100k bars

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. Paul • 10/30/2018 #

    works also great on 10 minutes and 15 minutes dax.
    Only get’s activated in the first hour.
    The assumption is that the dax takes off at 9u.
    When the enter criteria is reached, there’s a high chance it gives the opportunity to take another number of points at a small risk.
    NOP 15 for 3 min
    NOP 25 for 10min
    NOP 30 for 15min
    The code below has an extra exit criteria.

    • bertrandpinoy • 10/30/2018 #

      l instruction GRAPH pose problème sur PRT… pas vous? cordialement

    • Nicolas • 10/30/2018 #

      Supprimer simplement les lignes avec GRAPH pour passer en ProOrder, trading live.

  2. criscolci • 10/30/2018 #

    thanks Paul!

  3. fserra • 10/30/2018 #

    Sorry Paul but I can’t see the same result on the same instrument, actually it show opposite performance . Should I do some particular settings? Can you help me?

  4. Jan Wind • 10/30/2018 #

    Hi Paul,

    thanks a lot for for the strategy !! it works well for the DAX 3 minutes graph (tested with 85.000 bars, from 20 feb till 26 okt,, only 13% in the market,) ,
    Hopefully it keeps profitable, as the testing period of a half year seems short.

    I hope when playing around with the profit can be increased without being much longer in the market.

    Just a remark
    If I want only 1 opening trade per day, I add the condition ” OTD = Barindex – TradeIndex(1) > IntradayBarIndex” at the open buy / open sell condition, meaning that only one opening trade can be made during the day.
    Bardindex counts the total bars in the graph
    TradeIndex(1) counts the total bars in the graph till the last trade
    IntradayBarindex counts the bars from the beginning of the day in the graph.
    If you change the formula to Tradeindex(2), it allow 2 trades during the day (Be aware, closing is also counted as a trade.)

    I wonder why you include Daysforbidden in your code to exclude Sunday. You can turn off weekend bars, (saterday and sunday) in the ProRealTrade graphs (Options –> Platform Options –> Time Zones and Trading Hours), and trading is not influenced by eventual existing weekend bars. so no need to exclude Sunday in the trading code. Be aware that setting intraday charts with specific times like 6:00 to 22:00 instead of trading hours can have huge impact on auto trading results !

  5. sublime06 • 10/30/2018 #

    bon travail

  6. Paul • 10/30/2018 #

    @fserra.
    I think all the needed information in available. So perhaps it’s a time-zone setting on your side?

    @Jan Wind
    I switched from 3 minutes and focused on the period from 1-1-2015 for 10 and 15 minutes.
    That’s about 150k bars for the 10 min., 100k bars for the 15 min, (300-400 trades)

    The number of trades, for long and short and in total is covered in the code.
    There are other ways to program it. Thanks for the tip.

    The daysforbidden is set to 0, because I don’t’ want it to be used, but still be able to test if there is a poor day in a week.

    Profit can be increased at a cost of %win chance. Remove MFE or make it bigger and/or use a high profit target i.e. 1.5%

  7. Jan Wind • 10/30/2018 #

    Hi Paul,
    I have played around, also with 10 minutes. seems that your delivered setting with the 3 minutes graph is still the most profitable, and most constant.
    The 3 minutes algo is improving when increasing the SL and Trailing SL and get rid of the take profit , and in this case adding an opening condition “not on market” to let the profits grow instead of a new morning opening.

    (Waarschijnlijk zouden we ook in het Nederlands kunnen schrijven ? )
    Mvg Jan

  8. Paul • 10/30/2018 #

    Hoi Jan
    Eigenlijk is NL schrijven wel een stukje makkelijker!
    B.v. SL en TSL beide op 1, zonder PT heeft goede resultaten en met mijn waarden stijgt het van 4000 naar 6000. Win% nog steeds rond 50%
    Een kleine verbetering is een extra exit scenario. Als de high > dhigh[1]+nop dan sluiten, en andersom voor short.
    Weet nog niet wat not on market precies toevoegd, dat zou ik moeten vergelijken. Als het goed is wordt een positie, met een grotere TSL en zonder PT ook ‘s-nachts aangehouden. Wat ik nu bedenk zou het ook wel interessant zijn, om als je een positie nog hebt van een dag tevoren, er 1 kan toevoegen als het getriggered wordt.
    Later nog even meer testen!
    Gr Paul

  9. DANY • 10/30/2018 #

    Hi Paul,
    try this version of your Tsystem on DAX 15 Min

  10. DANY • 10/30/2018 #

    //————————————————————————-
    // Main code : Straddle DayOpen
    //————————————————————————-

    // common rules
    DEFPARAM CUMULATEORDERS = false
    DEFPARAM PRELOADBARS = 10000

    // positionsize and stops
    positionsize = 1
    SL = 0 //0.60 // % Stoploss
    TP = 0 //0.40 // % Profit Target

    NOP = 15 //number of points
    TimeOpen = 090000
    lasttime = 100000
    closetime = 210000

    tradetime = time >= TimeOpen and time DayOpen+NOP then
    lx=1
    else
    lx=0
    endif

    if low < DayOpen-NOP then
    sx=1
    else
    sx=0
    endif

    // trade criteria extra
    min1 = MIN(dhigh(0),dhigh(1))
    min2 = MIN(dhigh(1),dhigh(2))

    max1 = MAX(dlow(0),dlow(1))
    max2 = MAX(dlow(1),dlow(2))

    tcxLong = high MAX(max1,max2)

    // long entry
    If not onmarket and tradetime then
    if lx and tcxLong then
    buy positionsize contract at market
    endif

    if sx and tcxShort then
    sellshort positionsize contract at market
    endif
    endif

    // exit at closetime
    If onmarket then
    if time >= closetime then
    sell at market
    exitshort at market
    endif
    endif

    If SL > 0 then
    set stop ploss SL
    endif

    if TP>0 then
    set target pprofit TP
    endif

  11. jebus89 • 10/30/2018 #

    Hi, on 3 minute chart on 200K backtest its clearly flat, hinting that this might be curvefit.
    The 200K backtest on 15m is looking alot better, gonna see if i can reoptimise. will share if i find anything

  12. Paul • 10/30/2018 #

    Dany, the code gave some errors.
    Jebus89 plz share if you have improvements or the code can be better coded.
    here are the things i work on
    – german holidays and the day before exclude from trading, just closing if a position is openend from a day before
    – perhaps split NOP, so NOPlong and NOPshort and test or walk forward.
    – NOP instead of points use %
    – Use MFE in conjunction with Larry Williams 3bar trailing stop to maximise profits.
    – Use breakeven stop maybe

  13. DANY • 10/30/2018 #

    Sorry Paul, here is it

    //————————————————————————-
    // Main code : Straddle DayOpen
    //————————————————————————-

    // common rules
    DEFPARAM CUMULATEORDERS = false
    DEFPARAM PRELOADBARS = 10000

    positionsize = 1
    SL = 0
    TP = 0

    NOP = 15 //number of points
    TimeOpen = 090000
    lasttime = 100000
    closetime = 210000

    tradetime = time >= TimeOpen and time DayOpen+NOP then
    lx=1
    else
    lx=0
    endif

    if low < DayOpen-NOP then
    sx=1
    else
    sx=0
    endif

    // trade criteria extra
    min1 = MIN(dhigh(0),dhigh(1))
    min2 = MIN(dhigh(1),dhigh(2))

    max1 = MAX(dlow(0),dlow(1))
    max2 = MAX(dlow(1),dlow(2))

    tcxLong = high MAX(max1,max2)

    // long entry
    If not onmarket and tradetime then
    if lx and tcxLong then
    buy positionsize contract at market
    endif

    if sx and tcxShort then
    sellshort positionsize contract at market
    endif
    endif

    // exit at closetime
    If onmarket then
    if time >= closetime then
    sell at market
    exitshort at market
    endif
    endif

    If SL > 0 then
    set stop ploss SL
    endif

    if TP>0 then
    set target pprofit TP
    endif

    • xpiga • 10/30/2018 #

      Hello DANY. There is still a mystake in your code in line 18. Could you please solve it?
      I’m looking forward to trying out your new improvement.
      Thank you

  14. xpiga • 10/30/2018 #

    Hi! Thank you so much for this system! Would it be a good idea to optimize also the % Stoploss, % Profit Target and % MFETrailing? Or that would be overoptimization?
    Thank you!

  15. Paul • 10/30/2018 #

    Thanks GraHal for the suggestion. I will open a topic for the strategy.
    Dany, there are still errors. Perhaps have a look and post in the topic I will open.
    Xpiga thnx for the comment. I don’t think those 3 (SL/PT/MFE) or trailing stop, count as over-optimisation. The most important is the SL. Up to 1% is fine.

  16. Paul • 10/30/2018 #

    updates are posted in topic below
    https://www.prorealcode.com/topic/dayopen-straddle-for-dax/#post-84224

  17. eugenio • 10/30/2018 #

    buongiorno paolo , volevo farti i complimenti x il lavoro fatto , funziona molto bene sul 3 minuti , e ho notato che se metto :
    stoploss , 0,60% e profit 0,90 % funziona ancora meglio da febbraio 2018 sul 3 minuti raddoppia il profitto ,
    sbaglio a fare questo ?
    grazie
    eugenio

  18. Modes68 • 10/30/2018 #

    muy buena estrategia, gracias por compartirla
    thank yoy for your estrategy, I like me

  19. xpiga • 10/30/2018 #

    Good morning!
    How do we adjust the code to the different timeframes? You said something about de NOP (“NOP 15 for 3 min, NOP 25 for 10min,NOP 30 for 15min), but in the code I’m confused because the are nopl and nops. Should we use variable optimization for those two variables? Is there anything else that we should change for the different 3 min, 10 min or 15 min?
    Also using the code without any modification I realised that it works best for 2 min graphic. What do you think about that?
    If there are more changes to apply between the different times I would love to have the updated codes for each one if possible.
    Thank you so much for your work!!! Keep it up!

  20. herke036 • 10/30/2018 #

    Hello is there an update on this code?

  21. discomusic • 10/30/2018 #

    I am following: looks very interesting! Anyone is still using this code?

  22. Paul • 10/30/2018 #

    the last update can be found in topic Strategy DayOpen Straddle for DAX on page 14.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+11 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 ...

Top