Moving averages in the correct order

Optuma Forums Optuma Scripting Moving averages in the correct order

This topic contains 3 replies, has 2 voices, and was last updated by Matthew Matthew 1 week, 1 day ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48491

    Steve
    • Topics: 2
    • Replies: 3
    • Posts: 5

    Hi

    What is the correct code to highlight bars where three moving averages are in correct order?

    eg a fast MA is above a medium MA and the medium MA is above a slow MA?

    Thanks

    Steve

     

    #48495
    Matthew
    Matthew
    • Topics: 3
    • Replies: 75
    • Posts: 78

    Hi Steve,

    Here is an example using a set of 5, 25 and 50 MA’s.

    The shaded green section shows where the above script would show a True result.

    Ex2

    #48499

    Steve
    • Topics: 2
    • Replies: 3
    • Posts: 5

    Thanks Matthew – I was just wondering how you got the shaded effect? I’ve been able to highlight the correct bars with arrows (using showbar) however I’m curious as to how you achieved the shaded zones.

     

    Thanks
    Steve

     

    #48503
    Matthew
    Matthew
    • Topics: 3
    • Replies: 75
    • Posts: 78

    Hi Steve,

    I added the script to a Show View tool, i then dragged and dropped the show view onto the chart directly and adjusted the transparency to 50%.

    https://help.optuma.com/kb/faq.php?id=720

Viewing 4 posts - 1 through 4 (of 4 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