Trend surfer DAX modified

Forums ProRealTime English forum ProOrder support Trend surfer DAX modified

Viewing 15 posts - 31 through 45 (of 46 total)
  • #66954

    Hey ! I’m glad it works for you ! Are you using it on 1min timeframe? because it is much more profitable on 2min (because optimized for it).

    Here is the latest code, with “quit snippet” (don’t forget to adjust capital and %loss if you’re using it) :

    a=50

    b=500

    c=175

    d=39

     

    #66955

    @GraHal you were right, first “(lowest[m](low))” and “tradeprice” were inverted. Then I fixed the code, and I now have a break even and trailing highs and lows 🙂

    It doesn’t work for this particular strategy, but I think we can use it on others, I am currently testing it on my dax trend surfer 1 min.

    I just got one problem : when I optimize “m” and “n”probacktest tests all possibilities for m (as it should be), but n stays to 1 !

    Is it a bug from the plateform ?

    Here is the code :

     

    #68373

    Hello again,

    here is an other enigma i am not able to solve myself :

    I wrote the PRC_squeeze system (seen above) on IB markets, futur Dax (because this is where I trade manually, and where i spend most of my time). So far i’m happy with the curve, ready to test it on ProOrder.

    I exported the strategy on IG markets, CFD Dax and the stratety transforms into a looser one.

    Now, I know the curves are not the same and several cotation points off, but the Squeeze is (please tell me if I’m wrong, I’ve got a lot to learn) a momentum indicator, thus this shouldn’t be a problem, because it buys/sells on the trend strength (thus in relation with previous historic) and not on fixed levels.

    So theorically, it should buy/sell on the same time (or close) in both cases, and even if it is not the case, the system should work anyway, shouldn’t it ?

    So why is it not the case ?

    Why, all parameters equals, can’t I get a similar curve ?

    Is it the system itself ? the market ? the plateform ? me ? or everything at the same time ?

    Could someone test it on Ig broker and tell me the result ?

    Attached is :

    • the system, dax 2 min
    • the supertrend extended indicator (used in the system)
    • the curves on IG and IB
    • in the red squares are buying and selling times which are different and I can’t see why
    #68381

    FDAX 08-22?

    IG CFD 00-22:15,  22:30-23

    #68390

    Hi @Eric I didn’t understand what you meant. You think this has to do with opening and closing time of the market ?

    But trading time is from 08am to  5pm in the system…

    Attached is a clue of what is wrong, the system almost  only buys and many trades close on the same candle, but I don’t know why : sl or tp are not touched.

    #68400

    Hi @Eric I didn’t understand what you meant. You think this has to do with opening and closing time of the market ? But trading time is from 08am to 5pm in the system… Attached is a clue of what is wrong, the system almost only buys and many trades close on the same candle, but I don’t know why : sl or tp are not touched.

    i looked at the wrong code

     

    #68405

    Hello again, here is an other enigma i am not able to solve myself :

    I’ve read and reread the last several posts and I’m still not 100% sure what the enigma is … is it trades opening and closing in the same bar?

    I downloaded what I thought was 2 Systems (from the post quoted above) and my Platform keeps telling me  they are Indicators ( I did save them under Systems )!!??

    My brain may need a rest so I’ll have a lie under my duvet (which I always enjoy 🙂 ) and hope the enigma is a bit clearer when I surface again 🙂 🙂

    GraHal

    #68409

    Futures DAX and CFD are 2 different instrument. Your system may be overfit for Future (the one you develop the system for) or maybe it is a parametric thing that cause the trouble, pointsize .. trading hours ..

    #68410

    pointsize and trading hours, have the same settings…

    The system doesn’t work like it should, I don’t know why, see proof attached (shouldn’t buy with red supertrend…)

    I will review the code all over again.

     

    #68412

    Okay, I started testing the conditions. I use supertrend extended as a filter, so I made an indicator to test which direction it was going, -1 for red and + 1 for blue and it’s inverted !

    I think this could be helpfull to those who import itf files with “called indicators” in it : the variables indicator1 and 2 switched, god knows why…

    #68432

    So ! I rewrote the code to make the conditions work and each one is tested in an indicator (see attached).

    signal_squeeze1 :

    • negative surface for down supertrend and positive surface for up supertrend
    • red spikes for short signals and green spikes for long signals

    signal_squeeze2 :

    • red spikes for short signals AND down supertrend
    • green spikes for long signals  AND up supertrend

     

    signal_squeeze2 is used by the system to enter a position, and supertrend to exit (plus money management). But it’s not the case as you can see.

    Soooooooo, now that I narrowed down the problem, i’m deducing that the only part of the code which could be the problem is the part below, where the system buys and sells, Elementary my dear Watson !

     

    I finally found the problem and I’m really having fun doing this, but now i’m stuck, and this has been already for a few hours, could someone help please ?

    chears !

    PS : the entire code is also attached if needed

    #68455

    I finally found the problem, but now i’m stuck,

    What are you stuck on?

    I’ve run your code and made a few trial changes, but – as I can’t see results and / or an equity curve for your PRC_TTM-SQUEEZE4.itf  – I can’t tell if I am improving or not?

    Please post your  results and equity curve for  PRC_TTM-SQUEEZE4.itf

    Thanks
    GraHal

     

    #68472

    Hi ! attached is the result, the problem is between line 56 and 80 of the code.

    You need supertrend extended indicator to run this code, i attached it also, this may be why you don’t get results.

    #68481

    I must already have the Indicator (Platform tells you if not).

    Attached results (over 10k bars only ) with Code line 56 and 80 as below … which I had already  changed prior to you saying above … I must be getting better at this coding lark!!! 🙂 🙂

    PS I think I only changed the first 8 lines as shown below?
    PPS You get a good increase on your curve at the end … so are my changes making much difference at all??
    I may have patted myself on the back too soon?? 🙂
    Attached is mine over 100k bars … different but mot much better, but my code changes may spark more ideas in you??

     

     

    #68540

    Thank you Grahal, but i’m loosing my cool on this one. The system doesn’t behave like it should, see attached. It only take the “sells signal” which is not even filtered. I don’t get it.

Viewing 15 posts - 31 through 45 (of 46 total)

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