DAX 15Min – False Breakout / SuperTrend

DAX 15Min – False Breakout / SuperTrend

Hi everyone,

First I’d like to thank you all for your contribution on this website. It’s been a goldmine for me so far 😉

You all found good names for your strategies but to be honest I haven’t find mine yet..

Anyway, here is the thing:

  • Index: Dax 1€
  • TF: 15M
  • $Risk: You choose ! 😉 – 1.5% of capital per trade in my backtest. Up to 3.7% due to seasonality (Thanks ALE for your piece of code about seasonality)
  • Spread: 2 pips

Variables were optimized different ways. Optimization from the beggining of PRT datas to 31/12/13 shows substantially the same trend. I hope my curve remains not so fitted..

Drawbacks:

  • Not so many trades
  • Several trades could last a very long time
  • Time between trades is also too long
  • The reverse short strategy does not lead to gains..

Thus, if you have any comments, ideas or anything that could improve this strategy, it would be really appreciated ! 😉

Thank you all and keep posting interesting things here, I like it !

Maxime

 

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. ALE • 11/16/2016 #

    Thank you for your new ideas, it’ very good.. !! seasonalty is reiner’s idea..but thank you for your Credit!!

  2. DESCOUMA • 11/16/2016 #

    Hi!
     
    Thanks for your comments and thanks Reiner for your syntax on seasonality.
     
    I did some walk forward testing and found quite good results particularly in the recent period (see attached .xlsx file).
    In my testing, I just managed to solve for the tp and sl (changed from pips to percentages in this study) which give me the best Return/Drawdown ratio using a 2 years period. Then I used those parameters for the next 6 months. And again, and again !
     
    Here is my last version of the code used for this test:
     
    DEFPARAM CumulateOrders = false
    //DAX - 15M

    ONCE p=18
    ONCE d=20
    ONCE m=1.5
    ONCE Rg = 0.5
    ONCE Risk = 0.015
    ONCE Monday =2
    ONCE Tuesday = 2
    ONCE Wednesday = 1
    Once Thursday = 1
    Once Friday = 1

    If Opendayofweek = 1 then
    DayMult = Monday
    ElsIf Opendayofweek = 2 then
    DayMult = Tuesday
    ElsIf Opendayofweek = 3 then
    DayMult = Wednesday
    ElsIf Opendayofweek = 4 then
    DayMult = Thursday
    ElsIf Opendayofweek = 5 then
    DayMult = Friday
    Endif

    aMax = Highest[d](High)
    aMin = Lowest[d](Low)
    SupTnd = SuperTrend[m,p]
    RngOk = (High-Low)/(aMax-aMin)<Rg
    sl=0.5
    tp=1.5
    Reinv = 1
    Coef = 0
    Balance = 23827.1
    If Reinv = 1 Then
    Equity = Balance+StrategyProfit
    Else
    Equity = 10000
    EndIf
    If Coef<>1 Then
    DayMult=1
    EndIf

    n = Max(1,Equity*Risk/(Close*Sl/100)*SQRT(DayMult))

    cBuy = aMin[1]<aMin[2] And High<aMax[1] And Close>Open And RngOk And Close>SupTnd

    If cBuy Then
    Buy n Shares at Market
    EndIf

    SET STOP %loss sl
    SET TARGET %PROFIT tp
     
    Maxime

  3. Cosmic1 • 11/16/2016 #

    Great work in trying to avoid curve fitting and walk forward test. Good to know that you have done this as gives some confidence moving forward to demo/live test. Are you planning running this on demo, live with minimum stakes or the code posted? 

    • Daniel da Costa • 11/16/2016 #

      Hi Cosmic! What is meant by curve fitting and walk forward test?

  4. DESCOUMA • 11/16/2016 #

    Yes. I’ll probably give it a try with 1% $risk / no reinvestment until I find a way to reduce the drawdown.

  5. jonjon • 11/16/2016 #

     This is very cool. Thank you very much.
    I’ve been playing a bit with it. How did you get your m, p and d values? m and p relate to the Supertrend indicator….as I’m new to this indicator can you tell me if these are pretty standard variables? d = 20 seems reasonable to me.
    I have just started paper trading the strategy. Adjusted the variables slightly to make a little more conservative: Rg = 0.4, Risk = 0.01, No reinvest. I’ve also optimised the p and d to 26 and 21 respectively (hence my question above).
    Back tested in tick mode from Sept 2012 which is just 60,000 units back (round number, nothing scientific there however thought it appropriate to base test from period post Draghi saying that ECB would do anything to stop Euro failing in July 2012 and then subsequent quieting down of volatility / market).
    I can’t attach my results (is this as I’m a Junior Member?)
    % winning trades = 40%
    Gain / Loss: 2.01
     
    I still want to get the loss of the worse trade down (-3,752) and the size of the Maxdrawdown is too large (-19,291 with 8 consecutive losses).
    I’ll look further into it however anyone looked at the poor performance in Q2 2013 and last quarter of this year? Down periods are to be expected but just wondering whether there was anything macro going on that we should bear in mind going forward.
    I’ll let you know how my trades go with this. Looking forward to hearing from any other of you guys paper trading this.
    Cheers
     

  6. K12AN • 11/16/2016 #

    Have you backtested using tick data?

  7. jonjon • 11/16/2016 #

    Yes. Well I think I am. I’m running v. 10.3 and I ticked “ProBacktest in tick by tick mode”

  8. DESCOUMA • 11/16/2016 #

    Hi,
    Thanks for your comments and sorry for my late answer 🙂
    m, d & p are optimized variables which I chose to maximize the Profit/Drawdown Ratio. Hence, since September 2012 using my last settings (0.5 %Loss / 1.5 %Profit / No reinvestment / No multipliers) it gives a worst loss of 1.77%, a DD of 12.8% and a profit of 94.17% with gain/loss = 1.51 and 33.21 winning trades.
    As all except 1 of the winning trades came after more than 5 candles in this last backtest, my guess is that tick mode or not it won’t change many things.
    Maxime
     

  9. jonjon • 11/16/2016 #

    Thanks Maxime. Appreciate it.
    I’ll let you know how it goes. I’ve been running it in demo in the background whilst I have been focusing on other strategies. No trades yet though so I’ll take another look at the code probably next week.
     
    Cheers

  10. Kenneth Kvistad • 11/16/2016 #

    Jonjon, do you have screenshoot of this strategy in tick by tick mode?

  11. jonjon • 11/16/2016 #

    Hi Kenneth. I can’t attach the screenshot I’m afraid. Unless I’m doing something stupid. I pasted the screenshot into Word and tried to attach the file.

    • Kenneth Kvistad • 11/16/2016 #

      Try sniptool/snippingtool?
      http://www.capture-screenshot.org/snipping-tool/

  12. triss1965@gmail.com • 11/16/2016 #

    why do I get error ond line whit DAX? Eihter cod works. Can you chare the file?

  13. Elsborgtrading • 11/16/2016 #

    Hi Triss. the File is in the post for download. There is nothing wrong with the code. Your error describes 2 line- but it empty- perhaps some character sneaked in yours? . Please check that you code is correct copied. or download the file dax-15m-longonly.itf
    Cheers Kasper

  14. danhei • 11/16/2016 #

    Hi
    I am tryong to figure out how trist strategy works. I am new to pro real time.
    Can someone explain the entry and exit method? Many thanks

  15. Plop61 • 11/16/2016 #

    Hello,Thank you for sharing this beautiful strategy.Is it possible to indicate the code for short positions?Best Regard.

  16. NoName • 358 days ago #

    Thank you very much for this fascinating trading system. It is still proving to be extremely effective in 2024. It illustrates once again how valuable individual trading systems can be.

avatar
Register or

Likes

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

+6 more likes

Related users ' posts
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
AndPar Buongiorno Nicolas, vorrei provare questo indicatore, ma quando lo inserisco in PRT mi vengo...
Nicolas Basta aggiungerlo al prezzo https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-i...
Aragorna hello Nicolas, this indicator works with the last Beta version of PRT? Ive seen tha many in...
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...
mickey992 salut merci pour ton partage et ton travaille
patapouf Hi Vivien René I just discovered your “Ordered trend-following stocks Screener”. Great work...
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 ...
nicko Many Thanks Viv. It looks good
Nokis Bonjour Vivien, Comment je peux faire pour adapter ton code afin: De cibler les sociétés q...
sam00075 I tried it today and it gave great results. So a big Thanks !
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
Bard Hi @Vonasi, this is an excellent tool! I noticed you times by 180 and was wondering why? W...
Bard I have no idea what is wrong with the posting on this website. I have problems editing posts...
Bard And now my first post displays okay? It literally had copies of my orig post all added toget...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
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...

Top