Strategy HSI-M1-ReverseAngleLong

Forums ProRealTime English forum ProOrder support Strategy HSI-M1-ReverseAngleLong

Viewing 12 posts - 1 through 12 (of 12 total)
  • #133495

    Hi everyone,

    Here is a new strategy on Hang Seng 1 min TF. It measures the angle of the slope and looking for a V-slope. As unit of price and bar is not the same, thus replaced the bar with ATR (with higher period) to have in relative price to price comparison.

    Looking forward for your suggestion and ideas of improvement.

     

    4 users thanked author for this post.
    #133580

    Hi,

    Can you try to backtest this strategy with a breakeven and maybe a filter on M5

    With 200k, i get 100%.

    for example

     

    1 user thanked author for this post.
    #133623

    Thanks @MAKSIDE for the idea.

    For the 100% result, I guess you mean win rate? Not sure why, but I don’t get the same result with the parameters I set in the .itf.

    If re-optimize the parameters, I have some combination giving 100% win rate, but the trade number is way too low <5. Do you observe the same?

    If possible, can you please share the .itf?

    #133627

    Sure..

    i removed supertrend.

    pls find

     

     

    #133910

    Thanks. It seems the trades are too little. I’m not expert, but personally, I felt the number of trade is too little to justify the consistency thus I will not have confident. But just me…

    #134018

    hello how did you define x and y to make the code work?
    I don’t see an optimization report to help with the decision ..? Thank you Best regards.

    #134051

    Hi DowJones

    Thanks for your work

    Something I dn’t understand is the ATR instead of a number of bars ?

    Because to calculate Arctangente you need the opposite side : (close[periodA] – close[periodA + periodB] Thant’s ok

    But M1atrAB[periodA] is not the adajacent side ?

    I understand your explannations but don’t think it will be the same

    Cheers

    1 user thanked author for this post.
    #134105

    And I don’t understand this part of your code

    Because I think you decrement position size when position perf is negative but resetafterlost is always at 0 and doublestepdown too.

    Does something mis as a count on loss trades ?

    Thanks

    1 user thanked author for this post.
    #134210

    I understand your explannations but don’t think it will be the same

    Hi @zilliq, indeed. I understand your concern. Using ATR is just taking the reference where x bar in average moved by y point (range). Rather than taking directly the bar, because the bar unit is totally not relevant with point unit. For sure both analogy is still not the same like measuring with ruler with centimeter, but at least using bar vs point are less relevant, e.g. from 5 bars, it moves from 21000 to 21150, so taking arctan of 5 and 150 vs from 5 bars, ATR is 50, it moves from 21000 to 21150, so taking arctan of 50 and 150

    but resetafterlost is always at 0 and doublestepdown too

    From GRAPH, right? Because I never activate it (line 5) 🙂 I left it like a template and forget to remove it.

     

    #134230

    Thanks for you answer Dowjones. I understand for ATR, it’s a different point of view

    For the second part, sorry for my bad explanations

    I said that resetafterlost is always at 0 so the condition is always at ON (instead to be at 0 some times and if positionsperf(1)<0 to be at 1 for example) and same for doublestepdown. So how can the code understand wich choice to use ?

    Hope to be clear

    #134555

    So how can the code understand wich choice to use ?

    Ah, sorry for misunderstanding. These are actually configuration parameter, to be chosen accordingly which is preferred.

    once maxSize = 2
    once minSize = 1
    once startingsize = 1
    once stepsize = 0.5
    once resetafterlost = 0
    once doublestepdown = 0
    once resetafterstrikewin = 2

    Whether you prefer to reset the lot back to startingsize once hit a single loss trade, or you prefer to doublestepdown. It is choice need to be made.

    So if you choose resetafterlost, then doublestepdown will not be applicable even if you set it to 1. By default, all are set to 0, so once there is a loss trade, the lot size will be reduced by sizestep

    #134604

    Understand, Thanks

    I thought it depends of the configuration of the code

    have a nice evening

Viewing 12 posts - 1 through 12 (of 12 total)

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