Please Help – Tops and Bottoms

Forums ProRealTime English forum ProBuilder support Please Help – Tops and Bottoms

Viewing 6 posts - 1 through 6 (of 6 total)
  • #220208

    Hello everyone,

    I would like to have Lows and Highs of a Range detected and mark the breakout/down with a row. One of the issues is the Lookback period can be variable. Would there be a way to improve the following code (for example by having the lookback period as a “variable” with a loop)? examples highlighted on the attached graph.

    Thank you

     

    #220214
    JS

    Hi,

    Do you mean more like this…?

    1 user thanked author for this post.
    #220216

    @JS Yes, Thank you! your code seems to generate much cleaner results than mine. Any chance you can share your revised code? Thanks

    #220221
    JS

    Hi Khaled,

    This works well for finding tops and bottoms…

    If High[i] = Highest[i * 2 +1](High) then

    If Low[i] = Lowest[i * 2 + 1](Low) then

    You can make a profitable system out of this… (where i can be optimized)

    1 user thanked author for this post.
    #220222

    Thanks a million JS! Much appreciated.

    1 user thanked author for this post.
    avatar JS
    #220223

    I don’t want to abuse of your kindness, but I’d be most grateful if you have the time to look at this too https://www.prorealcode.com/topic/please-help-take-only-the-first-cross/#post-220212

     

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

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