Peak Valley

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

    Hi, I have seached forums for “Peak” / “Valley” functions but not exactly found what Im looking for.

    Im looking for a method / function to identify peaks / valleys which are not so pointy. For example using a moving average with 500 on a price curve generates this type of slow peaks / valleys. The functions I have found in the forum doesnt find these peaks / valleys.

    Any idea what type of code I could use to identify those ones. They often have a few bars of a horizontal line in the middle.

    #101032

    Yes, a PEAK is when your average is the highest within a range of bars, VALLEY is when it’s the lowest.

     

    #101077

    Thanks! Thats a good definition of PEAK / VALLEY.

    I have another question, it might not be on the same topic but related how would you define or try to measure falling, for example a falling ADX.

    #101080

    A falling ADX is current ADX < previous ADX.

    The falling is even stronger the more periods you account for ADX < previous one!

    #101083

    Examples:

    you need to replace MyAdx < MyAdx[1] with MyAdx > MyAdx[1] for a rising ADX.

     

     

    1 user thanked author for this post.
    #101090

    As for peak and valley, you can also use any type of highest high / lowest low detection such as zigzag, fractals, swing hi/lo, donchian channel, ..

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:

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