Lift up and down DAX 5M

Lift up and down DAX 5M

Hi guys,

I want to share one of my DAX trading ideas based on cross over/under yesterdays high and low in combination with volatile intraday trading windows and certain week days. The approach is very simple works without indicators but seems to be very robust and reliable.

I have inserted Adolfo’s litle beauty concerning money management but fixed position size is possible as well (simply remove the comment).

Comments and improvements are welcome.

have fun



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?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Nicolas • 05/25/2016 #

    Hi Reiner, and thank you again for contribution. Your strategy embed some nice code and that’s why it’s always interesting to have this kind of contribution in the library!
    Why does the takeprofit and stoploss have different values for buy/sell sides? I have changed the featured image of the strategy for everyone to see that everything were not so good before 2015, I think that it’s a bit overfit though. 

    • Reiner • 05/25/2016 #

      Hi Nicolas,
      Thanks for your comments. I appreciate your work very much – this kind of a PR platform I’ve missed for a long time :-).
      Unfortunately backtesting is limited for me to the last 100.000 candles – do you know how to extend this as a IG customer?
      In 2014 the DAX was a “lame duck” and breakout and trend strategies had there difficulties but at the end of the day this little beauty never had big drawdowns. I traded this strategy since last autumn only on the long side because of the good profit factor. Trading the short side with the same sl/tl is profitable as well but smaller profit rates shows better results.
      best regards

  2. markoukay • 05/25/2016 #

    1 week into using Prorealtime and this ones is going to take me a little while to figure out what is happening. But in a one month back test yields a nice modest return doesn’t it. Really finding this website useful, thank to everyone who contributes.

  3. Gustaf • 05/25/2016 #

    Very interesting.This has defenitely given me many new idéas on how to code.Thanks!

  4. Doctrading • 05/25/2016 #

    Very interesting code.What a pity than we can’t backtest before 2014… A backtest on 10 years would be very reassuring.
    I didn’t check the validity of the orders, buy this strategy seems very effective, thanks for sharing.

  5. Doctrading • 05/25/2016 #

    It also works in M15 timeframe. But with drawdown from May to October 2011.
    The final performance with fixed position size on 8 years backtest is around the same as your test in M15.

  6. Andres • 05/25/2016 #

    It’s definitely seems to be profitable on real mode.
    Thanks a lot for share, Reiner!

  7. flowsen123 • 05/25/2016 #

    Hey Reiner,
    Thank you for all your work here!
    If you register at IG, it is possible to do it with a link of prorealtime. That way prorealtime will give you the professional version of the software, which includes more histoical data.
    Is it ok to post the link here? If not, please delete it.
    But I am note sure if it can be done afterwards.

  8. noisette • 05/25/2016 #

    Hi Reiner,
    Thank you for this interesting code.
    I like when the ratio is over 2!

  9. noisette • 05/25/2016 #

    And: Did you try an other indicator instead of moving average?

    • Reiner • 05/25/2016 #

      Hi noisette,
      I’ve only tried MA. Feel free to improve and let me know if you find a better approach.
      What it makes profitable is to sort out the days with bad performance. 

  10. david-1984 • 05/25/2016 #

    very nice… in your opinion could it be curve fitted?

  11. david-1984 • 05/25/2016 #

    very nice… in your opinion could it be curve fitted?
    those paramenters different for the short and long scares me a little. How did you chose them?
    sl = 50tp = 130
    sl = 90tp = 30

  12. david-1984 • 05/25/2016 #

    Why do you sell at 11.30? Is also that choosen on backtests?

    • Reiner • 05/25/2016 #

      curve fitted?
      It’s curve fitted, sl/tp were the best values out from the historical backtests
      it’s my personal approach, usually I’m only trading from 9-11:00 – 11:30

  13. david-1984 • 05/25/2016 #

    Reiner… please open a thread on this. I would like to share some information with you. I’ve studied it a lot… The optimization you have done on which index has been done? Only DAX? And on which period?
    I’ve changed your parameter curve fitted with ATR and tested it on other indexes. there could be a possibility to put this live but I need your help to understand something.

    • Reiner • 05/25/2016 #

      Yes, I’m trading only the DAX in 5 Minute chart and as IG customer for me are only the last 100.000 5 M candles available but this strategy should work on all indices as well.

  14. david-1984 • 05/25/2016 #

    I have modifed it a little… please go to here…

  15. CKW • 05/25/2016 #

    Hi Reiner,
    What is the max contracts when you running on Pro Order Trading? Mine having issue if I limit to 5 contracts and position size is 5.

    • Reiner • 05/25/2016 #

      I tried different sizes (3-10 DAX Minis) without problems

  16. CKW • 05/25/2016 #

    Thanks Reiner.
    Then it’s really weird on today!!! Line28 auto Sell when Line 36 triggered without hitting SL / TP / Time Limit.
    You can try to see today Equity Curve

  17. CKW • 05/25/2016 #

    Further explain, Line 36 forced to exit Line 28 Position (Long), and Immediately do a “Sell Short”.

    • Reiner • 05/25/2016 #

      On Monday yesterdays High/Low are from Sunday, a small range combined with low volatily triggered some loosers today, you understand it better, when you add some priceline indicator with High/Low from yesterday in the DAX chart

  18. CKW • 05/25/2016 #


  19. Real Pro • 05/25/2016 #

    Could I have the pseudocode for this strat please?

    • Reiner • 05/25/2016 #

      Hi Real Pro,between 8:45 – 11:30 MEZ and every 5M candle check for a long trade if:– system is not long– close crosses over yesterdays high (please note this is the IG high and on Monday it’s the high of Sunday)– close ist greater then simple moving average[14]– number of long trades is less 3 trades per day– current day is not Fridaycheck for the short side– System is not short– close crosses under yesterdays low– close ist less then simple moving average[9]– number of short trades is less 3 (max 2 trades per day)– current day is Monday or TuesdayTrades will be closed:– at 11:30– system is long and the short conditions are true (close long and open short)– system is short and the long conditions are true (close short and open long)– stop or target levels will be achievedThat’s it, very simple.The general idea is to trade only on the first 2-3 trading hours, trade yesterdays high/low breakout with sl/tp and sortout the week days where this system is not profitable. This idea works more or less in every index with enough volatile.regardsReiner

  20. Real Pro • 05/25/2016 #

    Thanks for taking the time to do that Reiner.  Much appreciated.  I’ll try testing this on Amibroker platform.
    I have copy/pasted your original formula into IG’s PRT backtester and it takes no trades.  Not sure why.  If you could suggest something that would be great.

    • Reiner • 05/25/2016 #

      I have tested it again and it worked as described. Maybe a problem with the timezone – all times are MEZ.

  21. CKW • 05/25/2016 #

    Hi Reiner,
    I studied and tried this strategy on PRO demo account. I modified some parameter, Results seems reliable as backtest result. Trading performance seems not too bad except when some situations it caught by the New high / New low then U-Turn. This wil be painful. Is there any good indicator to prevent this ?

    • Reiner • 05/25/2016 #

      CKW, you mean oversold/overbought szenarios? Play around with an oscillator e.g. the wave trend oscillator, the code is available here in the library.

  22. CKW • 05/25/2016 #

    Yes. Something like that. I will try and pair with your strategy 

  23. John Ufuoma • 05/25/2016 #

    Hi Reiner, can you build a system based on specification?

    • Nicolas • 05/25/2016 #

      You can ask for free assistance on forums:
      or use the dedicated programming services:

    • Reiner • 05/25/2016 #

      Hi John,
      Unfortunately I haven’t the time to offer the requested service but I’m sure you will find someone in the forum.
      best, Reiner

  24. RomanK_actor • 05/25/2016 #

    Hello guys,
    Thank you Reiner for your excellent work !
    I put the code in real trades and until yesterday it took the trades. Did it happen to some of you ?
    Best regards,

Register or


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

+3 more likes

Related users ' posts
mr blue I have a similar approach running - but yours is also very smart - thanks for sharing!
beeb Hello, nice that you like the strategy. For 1 minute I have chosen to avoid the first mi...
beeb Thanks
andtot Thanks!
Dalsim great but... why don't work on tick by tick mode? is impossible to trade for real?
Francesco78 Hi Daisim, there is no need for tick to tick backtesting as there are no zero bars trades.
juanj This gets me thinking about creating a strategy on the 5min timeframe that only takes trades...
GraHal I noted above does okay on DAX 10 min with even a reduction to 30 of the Stop Loss. I've s...
verdi55 You can find me at Ahh. So i got it ? 4 different supertrends without th...
juanj What? This has nothing to do with the website. The site is simply a service to help people ...
Nicolas Advertising is allowed,as long as people are helping others and if provided services are abo...
Yannick Hello The problem of the code might the time of the candle if you modifiy by TradingtimeLon...
Yannick TradingDayLong = dayofweek = 1 or dayofweek = 2 or dayofweek = 3 or dayofweek = 4 or dayof...
Marlon Hey JohnScher, your code works fine, but my results aren't as good as yours. Even if I use ...
lumarino Bom dia Ale. Obrigado pela partilha. Você tem alguma das suas estratégias operando em Modo R...
lumarino Qual é então a sua Estrategia de eleição ALE??
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
4 months ago
TempusFugit Thanks Bin, nice code, I can use several ideas of the way you build it
DarioMazza Thanks Bin, great concentration, i understand the first idea, but may u indicate me the asse...
Bin Hi Mazza This robot is optimized for DAX30.
victormork Hi! No I don't have 200k history.
Yannick There is a huge drawdown from 2012 to 2013 after it keeps rising
victormork Thanks for sharing the 200k test!
BiggestNoob Duh. Should learn to read above post :p
ProContra It seems that after publishing it started drawdown.
GraHal Please forgive the daft question, but why is 3-bars-trailing-stop-williams-3.itf included a...
gabri Non sono un genio ma so fare qualcosa. Posso provare ad aiutarti ma se e' troppo complicato ...
TempusFugit Masala, thanks for your contribution. I don´t like the offmarket spreads neither ;) I unders...
Uveus Tempus, me da un error al validar el codigo, sobre la variable N. Al crear el indicador me ...
TempusFugit Hi Uveus, I am guessing you inserted the code of the indicator into the system code, is ...
Robin von Bauhn Here you go! Would like to hear your feedback :) cl = RSI[2]100-a if cl and close &...
Francesco78 Sorry there might be few typos, pls send the full code. Thank you
Robin von Bauhn Oh, it's "cs" that's missing. I don't have the code right now but it's the exact same condit...
Jessar Hallo Leute, es wäre interessant aus dieser Strategie mit Hilfe von diesen indikator https:/...
verdi55 Funny. Just try this one on NASDAQ 100 (or any other big index) since 2009. Starting capital...
rama what you see on probacktest is like dreaming on a day time (not even sleep), most of the str...
Vieux Marin Hi, What do you think about this ? //--------------------------------------------------...
Inertia Thank you. Sorry, there is a bug on line 52...
Vieux Marin //------------------------------------------------------------------------- // Code princip...
Wilko In the IF-clause containing the BUY or SELLSHORT instruction you could add a line containing...
Wilko In answer to SAM: The Logic of the cover clause containing the same logic as the entry-claus...
JanWd Tried the code, nice concept, seems to work quit well for US/EUR 2hrs, Other markets seems n...
stockdemon The problem is that the markup is assuming you're writing. markup :) Try the code tags, m...
stockdemon Well that didn't work. Next attempt: b3 = ma1[1]<ma1[0]
Nicolas Sorry for the problem. It should be fixed now. Post code and refresh the page, then codes sh...
simoneb ciao Gabri, potresti il modo più efficace per selezionare il paniere di 20-30 titoli su cui ...
gabri Simoneb, puoi creare uno screener che cerchi i titoli con un modified sharpe index inferiore...
gabri Dimenticavo, i titoli che performano meglio sono quelli che crossano la linea dello zero (o ...