Trend detection codes

Forums ProRealTime English forum ProOrder support Trend detection codes

Viewing 15 posts - 16 through 30 (of 45 total)
  • #188349

    Interesting approach pableitor

    Reminds me of an approach developed by Art Collins which identifies a “bias”.  Create a variable called bias, if the first trend criteria is met then bias = bias + 1.  For each trend criteria that is met then you add +1 to the bias variable.

    Once bias exceeds a threshold, eg 5, the algo trades long or short

    1 user thanked author for this post.
    #188352

    thanks for that, definitely worth playing around with.

    To my mind it only makes sense with bias less than the total number of scenarios though, otherwise you might as well just add all the Bias Scenarios as conditions.

    But if it could work with any 3 out of 5, for example, that could be a useful way of ‘accruing probability’.

    They could conceivably be weighted, so that some counted more than others ???

    #188357

    I like your idea of weighting the different scenarios, will give that a try.

    #188358

    As already mentioned here, the perfect trend indicator does not exist. That’s why I try to determine the trend of the current market phase with relatively simple means and to use it. Sometimes the current market phase is only 10000bars long (TF M5), sometimes 50000bars. I can perhaps say I am optimizing today, others say you are lagging behind the market. If you re-optimize every few weeks. But for me this method seems to work quite well. If the result curve flattens out, it’s time to re-optimize. Maybe someday there will be a perfect trend over the last 10 years… but I don’t believe in it.

    #188439

    I think that the approach could be different: by identifying market phases (such as pullback, lateral movement, accumulation, distribution, ..) we don’t have to determine if the market is trending or not, because if we are not in one of that identified phase, then the price movement is sufficient to ride it to extract some money. It’s a bit like turning the problem upside down.

    1 user thanked author for this post.
    #188450

    Sounds logical. But how would you implement that in the code to exclude the non-lucrative market phases?

    #188458

    Sounds logical. But how would you implement that in the code to exclude the non-lucrative market phases?

    That would be the 1 billion indicator !

    #188461

    And how would you try? 😉

    #188470

    Throw 1 billion at it ?

    #188471

    here’s a short trend indicator that never fails:

    3 users thanked author for this post.
    #188473

    It gives an unknown command ?

    1 user thanked author for this post.
    #188475

    yeah, the coding for that bit in brackets needs some work … but you get the idea.

    #188476

    And how would you try? 😉

    ok , I will  give you the one and only trend indicator that will make you rich, it works  99.99% of the time 🤣 :

     

     

    3 users thanked author for this post.
    #188477

    We can’t use the data of another instrument. But V12 will allow to look at the data from other traders ?
    Cool !

    #188479

    @pableitor, I know it feels that way sometimes – we’ve all been there!

Viewing 15 posts - 16 through 30 (of 45 total)

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