Change in MA slope

Optuma Forums Optuma Scripting Change in MA slope

This topic contains 1 reply, has 2 voices, and was last updated by Mathew Mathew 4 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46763

    Brad
    • Topics: 7
    • Replies: 6
    • Posts: 13

    What script would I use to identify a change in the MA from a previous peak so that it is reflecting a change in the slope of the MA?  For example, the 40MA falls by more than 2% from the last peak.

    #46771
    Mathew
    Mathew
    • Topics: 14
    • Replies: 781
    • Posts: 795

    Hi Brad,

    We can use a highest high function for this. The only caveat is that we need to set an appropriate look back. I’ve gone with 80 as it is double the MA length.

    Hope this helps

    Mathew

     

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

You must be logged in to reply to this topic.

Pin It on Pinterest

Share This

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close