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 11 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #46763
    • Topics: 7
    • Replies: 8
    • Posts: 15

    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.

    • Topics: 16
    • Replies: 940
    • Posts: 956

    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



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

You must be logged in to reply to this topic.

Pin It on Pinterest

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.