Show View using Moving Average Bands

Optuma Forums Optuma Scripting Show View using Moving Average Bands

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #70559
    Tim
    • Topics: 34
    • Replies: 31
    • Posts: 65

    Hi,

    I’m trying to create a Show View where Volume crosses above the MAB().UpperLine using this script.

    VOL() CrossesAbove MAB().UpperLine

    However it is not working. I had done a similar script with Bollinger Bands which works fine.

    Tim

    #70563
    Darren
    • Topics: 73
    • Replies: 937
    • Posts: 1,010

    Hi Tim,

    You need to nest VOL() in the MAB() function as otherwise it will use the price data:

    Capture

    #70565
    Tim
    • Topics: 34
    • Replies: 31
    • Posts: 65

    Hi Darren,

    Thanks but I am still not getting the Show View displaying.

    Screenshot 2023-03-16 180258

    #70588
    Matthew
    • Topics: 5
    • Replies: 666
    • Posts: 671

    Hi Tim,

    It looks like the Show View tool has been applied to the Volume indicator, not the chart directly.   For the script to work you need to apply the Show View to the chart, once that’s done you should see the expected results.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest