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?

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

  1. ALE • 339 days ago #

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

  2. DESCOUMA • 339 days ago #

    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 • 338 days ago #

    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 • 316 days ago #

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

  4. DESCOUMA • 338 days ago #

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

  5. jonjon • 332 days ago #

     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 • 331 days ago #

    Have you backtested using tick data?

  7. jonjon • 331 days ago #

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

  8. DESCOUMA • 325 days ago #

    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 • 325 days ago #

    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 • 324 days ago #

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

  11. jonjon • 321 days ago #

    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 • 320 days ago #

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

  12. triss1965@gmail.com • 312 days ago #

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

  13. Elsborgtrading • 309 days ago #

    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 • 214 days ago #

    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 • 209 days ago #

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

avatar
Register or

Likes

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

+2 more likes

Related users ' posts
papero76 gracias esto es interesante
jebus89 Im getting a huge drawdown, seems like i need to be a millionair before i run this :)
Nicolas That's right, it depends from when you start the strategy! ...
luxrun Nicolas, ho realizzato uno screener dall'indicatore perfect trend-line. Lo screener mi resti...
M. Pettersson Can you please use English?
luxrun Voilà: Nicolas, I realized a screener with the perfect trend-line indicator. The screener r...
Inertia Sorry lysan2, the exact one for long only doesn't work well. Perhaps, you may have to look ...
andreag76 Long version... not very good //DEFPARAM Preloadbars = 3000 DEFPARAM CumulateOr...
Inertia @Andreag76 Thank you but your code is broken. Variables are missing and the trailing stop...
juanj The last fractal will be coordinate 1 and the high/low of the candle that generates an angle...
juanj And the point of violation is the close of the candle that violates the line by generating a...
juanj For the latest version of the strategy or to follow updates and developments see the thread ...
JM David, Thanks a lot and next week I begin the test of this strategy in real... You have ot...
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...
Nicolas Good job, but I think there is something wrong in the description since trade direction is c...
juanj @Nicolas I see it also significantly brings down the drawdown on the CAC40. Btw why is th...
juanj To follow new developments or get the latest version of this strategy please visit the forum...
tahar Hello Juan, I wanted to test Universal Strategy via a demo account on PRT but nothing happen...
bobrenard96 sorry, but your strategie doesn't work. When i implement the file, i have the error : backt...
Nicolas It's a platform error, nothing to deal with the code. Did you tried to download the itf file...
gackeen Scusa Pier, scusate tutti, sono nuovo. Ho caricato il file e mi viene restituito il messaggi...
Wing Sorry for not responding to a lot of you. System seems to still be going strong. Yes, pos...
Francesco78 Hi Wing, I have been using your code and it has been quite profitable until now indeed! So f...
Wing Thank you. I also run it so I am glad it has worked. To optimize I would prioritise the SL ...
CKW Thanks Francesco for sharing. Equity curve in overall looks great and testing it on demo :)...
Francesco78 Hi CKW thanks for your comment and for spending time on the steategies. The framework is ver...
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
Nicolas Thanks for sharing your automated trading strategy idea. Even if you accumulate loosing orde...
Maz Ok. Potential here to build onto this. Have opened a forum thread for further discussion: h...
ALE
5 months ago
CSR strategy DAX 1 D
CSR strategy DAX 1 D
13
Strategies
Nicolas The code has been updated in the attachment of the post with the last version which contain ...
ALE Thanks as always Nicolas
Toto le Heros It looks very interresting. I have one question related to the following result in ProbackTe...
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
Francesco78 Hi Keemax, I dont have it on real at the moment, in any case the strategy is very long term ...
Francesco78 I did a little bit of work on that and now the results looks better and more stable. Please...
Francesco78 I did a little bit of work on that and now the results looks better and more stable. Please...
Francesco78 Hi Juan Salas and thank you very much for your undeserved compliments. I'm not sure if I un...
Juan Salas Hi Francesco, Yes, this is pretty much the question. The system ask me a number of contract...
Francesco78 ok sounds good, you can put min size = 1 and go for the seasonable breakout too, also you ca...
avatar
bjoern With the same parameters? For me the results are negative
avatar
bjoern Oh ok, with the initial posted parameters it is positive
victormork yes! It's not like you want to put it on live but when I for example take the version I have...
ALE Hello because this trailing stop start next candles if condition is verified.  For more in...
Frytconcord Hello Have you tested this code in real? Fractal breakout intraday Stratégie EUR / USD 1H
Frytconcord Bonjour j'ai testé votre code, vraiment impressionnant. J'ai envie de le tester en reel. Ma ...

Top