Trend Surfer DAX

Trend Surfer DAX

Hi guys,

my first post 🙂 is one of my DAX systems based on the TDI indicator working on a 5 minute chart.

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/21/2016 #

    Hello Reiner and thank you a lot for your contribution. I made some tests on your code because I were not sure if it would work in real time environment because of SET STOP and SET TARGET.
    I saw there almost none entries and exit on the same candle, so I guess this is good. Also my test were made with 1 point spread, since you are trading it in intraday hours.
    Nice implementation of the TDI strategy! My thought is that your code deserve to feature in the library, so here it is. Don’t hesitate to continue sharing your knowledge with everyone! Well done.

  2. Doctrading • 05/21/2016 #

    Hello Reiner,
    I’ve just seen your post. I’ve not tested your code, but it seems very nice.As Nicolas said, the problem is when the SL and the TP are on the same candle ; but as the SL is 5x times greater than the TP, avec as it is important, it seems that we don’t have often this problem.Maybe this strategy could be test on timeframe M15, in orders to have more historical data.Thanks for sharing !
    Best regards,

  3. JR1976 • 05/21/2016 #

    Hi Guy
    ‘the problem is when the SL and the TP are on the same candle’
    I having this problem in some other trading strategy  , but why?
     

  4. Doctrading • 05/21/2016 #

    On ProRealTime CFD, you can backtest since 2014 July.I don’t know why but… it is loosing money until 2015 January.After, it is winning.
    (spread 1 point)

  5. Reiner • 05/21/2016 #

    Hi guys,
    Thanks for your comments. 
    the backtest results are almost the same when working without tp/sl. The basic idea of this system seems to be reliable. I personally trade the TDI idea together with tick charts and it works.
    The problem with sl/tp and backtesting is, that in my opinion PR don’t know the tick history during a candle and therefore close sl/tp lead to incorrect results. 
    regards
    Reiner

  6. zilliq • 05/21/2016 #

    Hi Reiner,
    Thanks for your work
    In 5 mn UT  I haven’t the same results 🙁
    http://zupimages.net/up/16/20/kerv.png
    In my expererience the problem with TARGET PROFIT is that it cuts Profit too soon, and if you haven’t a very very good system (on all UT) with win/loose>80 % the results are bad
    As we say
    “Let the profits run…”
    Have a nice week-end
    Zilliq

  7. zilliq • 05/21/2016 #

    And you have a Stop loss of 250 points (it’s very very big) for a Take profit of 50
    That means that with a 80 % winning system you are neutral 
     

  8. zilliq • 05/21/2016 #

    Oups 83.3 % (250*1/6-50*5/6)=0
    Whatever, it’s just impossible to have a >80 % winning system on all UT

  9. noisette • 05/21/2016 #

    Nice code Reiner,
    Question: Why short condition are not exactly opposite to long condition?
    @Zilliq: As I understand, in this code SL and TP are not supposed to be reach: Main conditions to close are time conditions.

  10. zilliq • 05/21/2016 #

    The Time conditions are only here to close the positions outside the volatility period of the DAX
    The more probable is to touch the take profit or the stop loss, unfortunately

  11. Nicolas • 05/21/2016 #

    Because the stop loss is 5 times wider than the take profit, is one of the reason why the back test seems reliable. But, I don’t remember exactly what were the TDI periods. Did you adapt them  Reiner?

  12. larouedegann • 05/21/2016 #

    hello REINER
    it’s normal that i have a entry at 11 00 00  and a exit at 15  00 00 ?
    if i look the backtest,i see that the 1st april 2016 at 110000 i have an entry …..
    and an exit at 150000 with a loose about 137 points.
    how can explain this this ?
    ty

    • Reiner • 05/21/2016 #

      Hi larouedegann,
      I can confirm your observation but to be honest I have no clue why this happens. PR backtest modul has some unexlained phenomena.
      regards
      Reiner

  13. larouedegann • 05/21/2016 #

    hello reiner
    when i look the backtest i see that the 1st april 2016 at 110000 i have an entry
    and an exit at 150000.
    haw can explain this ?

  14. larouedegann • 05/21/2016 #

    hello reiner
    in fact, this problem arrive several times on the backtest

  15. Reiner • 05/21/2016 #

    Hi guys,
    Thanks for your comments.
    Trend Surfer based on the TDI indicator from Dean Malone.   http://www.forexmt4.com/_MT4_Systems/Traders%20Dynamics/TDI_1.pdf
    Cross over/under of the priceline and the middle line as trade trigger seems to be very profitable scenarios in combination with the volatile DAX trading times (9:00 – 11:00, 15:00 – 17:00).  That is the main idea of Trend Surfer the rest is optimization. tp/sl are not necessary but backtests show better results. 
    @zilliq: I’m using IG Data and have no clue why you can’t reproduce the results.
    @noisette: you can use Priceline CROSSES OVER MiddleBand as well for the long trades but Priceline > MiddleBand bring better results
    @Nicolas: I adapt the TDI parameter, the origin values are 13/2/35
    Here is the code for the TDI indicator that i use for my DAX trading:
    // Trader Dynamic Index

    // Standard Setting
    // Priceline is SMA(2) of RSI(13)
    // Signalline is SMA(7) of RSI(13)
    // Midband is SMA(35) of RSI(13)
    // BolingerBand around SMA(35) using 1.62 StdDev
    // Midline = 50
    // SignallineUp = 70
    // SignallineDown = 30

    q = 13
    r = 2

    t = 35
    u = 1.62

    // Priceline (red)
    RSIasPrice = RSI[q](customclose)
    Priceline = Average[r](RSIasPrice)

    // Signalline (green)
    Signalline = Average[q](RSIasPrice)

    // Bands
    // MiddleBand (yellow)
    StdDevRSI = STD[t](RSIasPrice)
    MiddleBand = Average[t]((RSIasPrice))
    // Upper-, Lowerband (blue)
    UpperBand = MiddleBand + u*StdDevRSI
    LowerBand = MiddleBand - u*StdDevRSI

    Return Priceline AS \"Priceline\", UpperBand AS \"UpperBand\", LowerBand AS \"LowerBand\", MiddleBand AS \"MiddleBand = Market Base Line\", Signalline AS \"Signalline\", 68 AS \"68\", 32 AS \"32\", 50 AS \"50\"

    have fun
    Reiner

  16. Lennard • 05/21/2016 #

    Hallo Reiner,Ich komme auch aus Deutschland, hoffe wir können uns bisschen unterhalten.Habe den Trendsurfer bei PRT eingebaut und alles klappt super, aber habe ne Frage zur Funktionsweise…Welche Bedingungen müssen für einen Long erfüllt sein?Grüße

    • Reiner • 05/21/2016 #

      Hallo Lennard,
      ein Long Trade wird erzeugt, wenn die folgenden 5 Bedingungen erfüllt sind

      Zeit ist zwischen 9-11:00 oder 15-17:00 Uhr
      System ist noch nicht long
      TDI Priceline ist grösser TDI MiddleBand
      TDI Priceline ist grösser 35
      TDI Middleband ist grösser 40

      Viel Spass
      Reiner

  17. larouedegann • 05/21/2016 #

    hello reiner
    ty for your codes,very interesting.
    I am looking if during time 11h-15h,it will be possible to do something with a code based  on  3 mn with exponential averages and pivot points.
    But for this moment,I have to much trades.
    bye

    • Reiner • 05/21/2016 #

      Hi larouedegann,
      You are on the right way. All of my highly profitable strategies work together with certain times. The good old open range breakout strategy between 9:00 – 10:00 is still one of my best performing algos over the last months.
      I found the following statistical accumulations between 11:00 – 14:00, but nothing that unfortunately was good enough for a reliable strategy over a longer period.

      around 11:30 the DAX tends short (buy 11:30, sell 12:00)
      around the noon auction 13:00 the DAX tends long (buy 12:45-1250, sell 13:00), this works sometimes reliable but not profitable over a longer period
      around 13:30 the DAX tends long (buy 13:20, sell 13:00), sometimes promising
      around 13:45 the DAX tends short (sell 13:30, bus 13:45 – 13:55) 

      better times are:

      9:00 – 9:45-10:00 open range breakout works profitable and reliable
      9:30 countertrend strategies are very promising
      10:00 – 10:30 countertrend, tends short 10:15 – 10:30
      10:30 trade the opposite of the trend 10:00 – 10:30
      10:45 the trend switch quite often
      11:00 – 11:30 close your postions 

      Hope it’s helpful for your trading ideas. Let me know if you find something reliable.
      regards
      Reiner

  18. Alocin • 05/21/2016 #

    Hi,
    FYI : Code for the famous Traders Dynamic Index aka the “TDI” by Nicolas 😉 http://www.prorealcode.com/prorealtime-indicators/traders-dynamic-index-tdi/
    Reiner, in your code for the TDI indicator :
    // Priceline (red) -> green
    RSIasPrice = RSI[q](customclose)
    Priceline = Average[r](RSIasPrice)

    // Signalline (green) -> red
    Signalline = Average[q](RSIasPrice)

  19. Alocin • 05/21/2016 #

    Don’t worry, thanks for your work!// Signalline est SMA (7) du RSI (13)
    Signalline = Average[q](RSIasPrice) ->
    ONCE s = 7
    Signalline = Average[s](RSIasPrice)
     

  20. avatar
    thebigdeal • 05/21/2016 #

    bonjour
     
    bon au final les amis je recherche un robot de scalping ou de day trading court qui rapporte qui se déclenche et se referme suivant un environnement déterminé et un tendance haussière déterminée quil détercte tout seul, est ce que quelqu’un ici sur ce site à un vrai robot autonome qui donne de vrais résultats .. et qui est totalement abouti ou presque merci de me tenir au courant

  21. Bolu14 • 05/21/2016 #

    Hello,
    what is the final Code for this Setup ?
    And can you post again please the total code for the TDI indicator?
    Thanks.

    • Reiner • 05/21/2016 #

      you find the final code for the system and the TDI indicator above.

  22. Doctrading • 05/21/2016 #

    @ thebigdeal
    Bonjour,
    Va sur mon site (lien dans ma présentation), regarde dans “stratégies”, celle sur le DAX… tu ne seras pas déçu.Je ne peux pas te donner de lien direct ou t’en dire plus, car mon but n’est pas de faire de la pub ici.

  23. DonDollar • 05/21/2016 #

    Hallo Reiner,
    ich habe Deine Strategie in PRT (IGMarkets) geladen und versuch die Performance nachzuvollziehen. Ich habe den 1EUR Mini Dax in den 5M eingestellt. Leider ist die Performance bei mir komplett negativ. Muss ich noch etwas an den Workstation-Optionen/Trading-Optionen verändern?
    Bin für jeden Tipp dankbar.
     

    • Reiner • 05/21/2016 #

      Hallo DonDollar,
      habe gerade das System laufen lassen. Mit einem Startkapital von 5.000 Euro und einem Spread von 1 Punkt komme ich bei 100.000 Kerzen von Juni 2015 bis heute auf eine Performance von circa 63% (8.191 Euro). Das System läuft allerdings mit den eingestellten Parametern seit Mitte März seitwärts. Spezielle Parameter ausser Startkapital und Spread müssen nicht gesetzt werden.
      Gruss
      Reiner

  24. DonDollar • 05/21/2016 #

    Hi!
    Ich komme auf 6509 Euro Performance (37,9%) ab dem 01.05. bei exakt gleicher Einstellung. Extrem komisch. Ich habe noch nicht gefunden, wo bei mir der Fehler liegt. Welche Version benutzt Du? PRT Complete oder professionell ?
    VG
    Clemens

    • Reiner • 05/21/2016 #

      Ich nutze PRT 10.2 Standard

  25. ALEALE • 05/21/2016 #

    Dear Reiner,
    could you post your update strategy below? It don’t work 
    thanks for your work
    AleAle

    • Reiner • 05/21/2016 #

      Hi AleAle,
      The strategy is unchanged and I tested the code from this side with capital 5.000 Euro and 11 point spread.
      Reiner

  26. ALEALE • 05/21/2016 #

    You’ve solved I was using the strategy with oil
    😛

  27. reb • 05/21/2016 #

     
    Hallo Reiner
    Ich finde deine verschiedenen Strategien sehr interessant. Vielen dank für deine Arbeit
    If I test this strategy over the last year, from sept 2015 to march, it was very profitable, and from march to today, it is flat (or loose a bit)
    Do you have the same ? did you test it before this period (2014-2015) ? Is there a seasonal reason ?
    Danke im Voraus
    Reb
     
     

    • Reiner • 05/21/2016 #

      Hi Reb,
      Sorry for the late response.
      I traded this strategy only last year and stopped after the equity curve flattened. In my opinon this strategy works well in volatile long and short phases but to be honest I haven’t analyze this very deeply. I’m a fan of the TSI indicator and use it as signal trigger for my day trading. I think this esay strategy is valueable but requires some improvements. Unfortunately my time is limited and as you may have seen here in this forum at the moment I focused on the Pathfinder trading system.
      regards
      Reiner

avatar
Register or

Likes

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

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