Dax adaptable strategy Breackout/Mean reversion

Forums ProRealTime English forum ProOrder support Dax adaptable strategy Breackout/Mean reversion

Viewing 15 posts - 46 through 60 (of 83 total)
  • #35519

    Thank you for code.

    I found a little bit better result with:

    • max size for stop loss
    • different values for adxval and atrmin between morning and afternoon (US open time 2:30PM or 3:30pm).

    Regards

    #35520

    Thanks a lot Noisette, what do you mean by max size for stop loss?

    #35531

    Sorry, I mean max value fo stop loss.

    Try to add:

    If pl > xxx then

    Pl = xxx

    Endif

    Best value for xxx seems to be around 80~85 points.

    Regards.

    #35548

    My WF analysis has been stucked by the 12 hours limitations .. I should consider reduce the variables values ranges..

    Anyway, @Noisette, could you kindly post here your settings to discuss about? Thanks.

    #35569

    Hi Nicolas,

    yes unfortunatley there are a few variables.

    I can suggest this variable ranges:

    ADXVAL [18:28, 2]

    M,N,M1,N1 = [1:4,1]

    k,y [3:10,1]

    atrmin :[15:40,5]

    timestart and timeend I think can be optimized later, they dont have a big impact.

    Hope this help

    #35610

    @Francesco78 sorry for taking so long to respond, been very busy with work!

    Yes I’ve been running the 30 min and 1hr on my live account and had good results, although I have to admit that I tend to close positions manually when they show a good profit… Although I also run the same systems on my demo account too.

    As for the optimisation are those variables you posted recently the ones to optimise for? I am just trying to understand the logic of the system so I can play around with it, once the volatility has been determined does it simply enter at a multiple of the ATR? What made you think to try a system such as this?

    Once again thanks a lot and great work! 🙂

     

    #35656

    Here the modified code:

    • Different values morning vs afternoon
    • Maximum value for stop loss
    • Positions can be stopped later (20h instead of 17h30)

    I think that we can add trailing stop (Nicolas code) to improve this code.

    Regards.

     

    #35665

    @Francesco78

    I ran a 5 iterations Walk Forward analysis yesterday (on 100k bars only) with the variables ranges you gave me (for the 30 minutes version), PFA the results. Even if the equity curve is not steady, the WF study is not so “critical”. Remember that in its current state, the WF tool only give the result of the most profitable OOS settings at the end, it doesn’t mean that other settings wouldn’t have made a more “steady” curve..

    #35669

    Thank you very much Noisette will have a look this afternoon.

    Thanks Nicolas for your time spent on the code. Just for my info can you tell me which version of the code you used for the wf? Thanks again

    #35671

    I used this one:

     

    #35697

    Noisette, I cant run it, can you make a version with only the relevant variables?

    THanks a lot

    #35700

    Ok, I’ll post itf file tonight.

    Please also note that conditions from line 79 to the end don’t modify results if you suppress them.

    Regards.

    #35745

    Herewith the code without the last line of the code that don’t improve strategy.

    #35748

    Thanks Noisette!

    #35977

    kg6450

    Sorry for the late reply.

    As for the optimisation are those variables you posted recently the ones to optimise for? 

    yes that’s correct

    I am just trying to understand the logic of the system so I can play around with it, once the volatility has been determined does it simply enter at a multiple of the ATR?

    yes that’s correct, ATR is the measure of volatility that I like to use in my codes

    What made you think to try a system such as this?

    Honestly in this case is just logic, I wanted to create a system that could work on both mean reverting and trendy market so I just split my scenario in 2 parts depending on the ADX indicator that measure the trendiness of the market. As far as the ATR, I think in general it is very useful to smoothen the curve when you define your position size as inverse function of the ATR, so the system will automatically reduce the position in case of high volatility and viceversa.

Viewing 15 posts - 46 through 60 (of 83 total)

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