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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48491
    Avatar
    Steve
    • Topics: 9
    • Replies: 19
    • Posts: 28

    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: 4
    • Replies: 137
    • Posts: 141

    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
    Avatar
    Steve
    • Topics: 9
    • Replies: 19
    • Posts: 28

    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: 4
    • Replies: 137
    • Posts: 141

    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

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