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

Reiner

 

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. 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
      Reiner 

  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!
    Andrés.

  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.
    https://trading.prorealtime.com/de/brokerage/cfd-forex-trading
    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?
    Thanks

    • 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. 
      Regards
      Reiner

  10. avatar
    Anonymous • 05/25/2016 #

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

  11. avatar
    Anonymous • 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. avatar
    Anonymous • 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
      11:30?
      it’s my personal approach, usually I’m only trading from 9-11:00 – 11:30

  13. avatar
    Anonymous • 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. avatar
    Anonymous • 05/25/2016 #

    I have modifed it a little… please go to here… http://www.prorealcode.com/topic/lift-up-and-down/#post-8604

  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
      regards
      Reiner

  18. CKW • 05/25/2016 #

    Thanks. 

  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 ?
    br,CKW
     

    • 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: http://www.prorealcode.com/forums/
      or use the dedicated programming services: http://www.prorealcode.com/trading-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,
    Roman

avatar
Register or

Likes

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

+4 more likes

Related users ' posts
emism12 Looks great, personally I don't use automated trading for single stocks, but is definitely o...
adconsulting Ciao, I look that the strategy (backtest 50 k), works very good wiht US 500 CASH 1 EURO in...
Kev Monaghan The equity curve looks to follow the stock price almost perfectly, Have you tested on stock ...
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
Jigsaw20000 Bonjour, Je voudrais mettre le liens du code en format .itf mais je n'y arrive pas , quelqu'...
Corto78 Il faut aller dans la liste des ProBacktest & Trading Automatique (là ou tu as créer ton...
Malloc Bonjour, Votre système a l'air intéressant et prometteur mais en l'état il est inutilisable...
juanj
3 years ago
herke036 For the question how to fill the variables a,b,c,d,e,f,g, x and y? a,b,c,d,e,f,g is selecti...
herke036 In your code I see If onmarket = 0 and Type22 = 1 and hora1 and hora2 Then If InsideBar[1]...
UkDownUnder How do we apply this to a strategy we have made, Thanks
superfalcio Hello, on the 2h timeframe I got a better performance in terms of win% and profit factor. I ...
Jiankyr82 Juan thanks for sharing, I had played with it few days, as also try to catch up on my pro-re...
Lespa212 Hi Samsampop, are you using this strategy? did you add a SL and an exit in case of a trend ...
imonix Have been trying this on demo since Monday before deciding whether to go live with it. Using...
Roberto Blázquez I'm sorry, I've tried it since November 2012 and it's bad results.
Doctrading
4 years ago
Stanko Ciao doctrading, grazie per il tuo contributo. Volevo chiederti se hai tenuto in osservazion...
Stanko Buongiorno doctradinge buongiorno a tutti. Vorrei riportare all'attenzione questo sistema p...
Meta Signals Pro Hi, Yes I am monitoring all the strategies posted on this site and I confirm that the strat...
Pierreco1991 Hello Can you confirm this configuration for FRANCE ? //Time in UTC+8 Rest0Minutes =...
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
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...
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...
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...
murre87 No Stoploss?
bousalahane Hi Rajesh Deshpande, Thank you for this code, I see that the code is perfect, but the posit...
Bibi83 Bonsoir à tous Je viens de backtest la stategie sur EUR/USD en graphique 1H sur 1 mois et ...
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...
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 ...

Top