Change in MA slope

Optuma Forums Optuma Scripting Change in MA slope

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #46763
    • Topics: 9
    • Replies: 9
    • Posts: 18

    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: 40
    • Replies: 2,010
    • Posts: 2,050

    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