Trend surfer DAX modified

Forums ProRealTime English forum ProOrder support Trend surfer DAX modified

Viewing 15 posts - 1 through 15 (of 46 total)
  • #65668

    Hi guys !

    This is the first system I post here.

    I made my own version of Reiners Trend surfer DAX, whith Nicolas´ TDI indicator and my own parameters but the backtest doesn´t work,

    I think it might be because of the trailing stop and take profit which are variables (a and b in the code) that I want to optimize because this will be how I exit the trades, no exit on signal, just sl/tp.

    The message just says “an error occured” but doesn´t say where or why.

    Here´s the code :

    can someone help please ?

    #65672

    Remove ENDIF from line 28 and place it at line 29.

    #65677

    Okay ! It does work now (the backtest not the system…yet) thank you ! .

    I´ve got another problem now (I put fixed sl/tp for now) : the system only goes long and cumulates orders, I don´t get it !

    It never goes short and sometimes it takes 2 long positions instead of one.

    I tried to fixe the problem and put EXITs on trades at market when it should reverse, but it doesn´t work, any ideas ?

    Here´s the modified code :

     

    #65680

    You need below as the 1st line of code …

     

     

    #65684

    Thank you Grahal ! That´s it for cumulated orders.

    Now the system doesn´t short, worse, it takes long positions where it shoud sell, I read it again and again but can´t figure it out.

     

     

    #65686

    You are using a SELL where you need a SELLSHORT

    #65688

    wow I didn´t know that, thank you !

    I am sorry to waste your time with beginners problems,

    The good thing is that I have an edge now ! Yeeeaahh ! I just need to optimise sp/tp

    so here´s the code for now:

     

    #65692

    So, optimisation gives me Trailingstop = 49 and tp= 2.9*sl , but only on 10 000 bars, could someone test it on a 100 000 bars version ?

    Now I have another problem, there are still bits where the trade is taken in the opposite direction (i.e. 23/01/2018 after 9H00 and goes on all day long) of  where it should go, I will see if I can solve it.

    Which also this system can give us more, I will pursue the investigation.

    #65708

    I am sorry to waste your time with beginners problems,

    We are happy to help when we get a good explanation of the Issue (as you have done).

    What Timeframe  is this to be run on? I can’t see TF anywhere sorry?

    #65719

    could someone test it on a 100 000 bars version ?

    We are all willing to help, but you should be able to test yourself on 100k bars.

    #65731

    @Grahal : it is on 5min.


    @Nicolas
    : hi ! On ut 5 min, I only got 10 000 bars, maybe if I put x bars and 100 000 it will work, I will try as soon as I get home.

    #65742

    maybe if I put x bars and 100 000 it will work,

    Yes! That’s how it works! 😉

    #65744

    Great ! Thanks !

    I can’t wait to get home, 16h of bus, from berlin to Paris, this will hurt…

    #65920

    Okay, back from Berlin,

    It’s 4:30 am, I spent the night, backtesting and optimising the strategy (on 100 000 candles 😉 ), I even broke it into pieces, optimizing each one and ….

    it goes nowhere, ratios are not good or not good enough.

    So I threw it away and started a new one. This is a trend surfer DAX too, so I think we can keep it in the same thread.

    It’s 2min, 1pt spread, based on nicolas’ PRC_TTM SQUEEZE and Verdi’s Breakeven that I found in Grahal’s snippets.

    It’s simple : buy when it turns from red to yellow and sell when it turn from blue to dark blue.

    I’m close to get it right, I just got one problem, the system buys on every yellow (next candle of course) and sells on every blue (see the picture attached).

    Here is the code :

    My guess is I should define what is yellow and dark blue (this I think I can do) and then buy/sell on the change of color (this I have no idea, how do you say “buy if red then yellow ???)

    Can you help ?

    Also, when I do the backtest, I have MFE and MAE in the closed positions toggle, which one should I trust ? (Cause I like MAE 🙂 )

    Should I do a “e-ratio” like I read somewhere on the internet ?

    #65961

    Also, when I do the backtest, I have MFE and MAE in the closed positions toggle, which one should I trust ? (Cause I like MAE )

    Glad you got back safe, shouldn’t you have been sleeping at 4:30 AM? 🙂

    My brain has not woken enough yet re most of the questions, but MFE is Max Profit and MAE is Max Loss during that trade.

    I check these and if a Strategy shows big MAE and then eventually a small MFE for lots of individual trades then I consider the Strat not good (even if overall a good profit shows). Reason: it would mean I’ve been sitting there stressing while the trade has had big drawdowns! Okay eventually it managed repeatedly to hitch-hike onto a favourable trend and come out smelling of roses / profit in the end, but the journey was tiring … just like yours from Berlin to Paris! 🙂

    Cheers
    GraHal
    PS I drew same conclusion as you re your original Strat, but I didn’t like to say.
    Thank you for your sterling effort through the night on the new version Strat, I will test it out later.

     

Viewing 15 posts - 1 through 15 (of 46 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login