Price percent amount above the moving average

Optuma Forums Optuma Scripting Price percent amount above the moving average

This topic contains 3 replies, has 3 voices, and was last updated by Darren Darren 2 days, 16 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54163
    Avatar
    Paul
    • Topics: 3
    • Replies: 4
    • Posts: 7

    I need help with a script that would create a chart indicator showing the percent price (close) is above or below the moving average (e.g., 200 day simple moving average)

    Thanks,

    Paul

    #54167
    Matthew
    Matthew
    • Topics: 4
    • Replies: 172
    • Posts: 176

    Hi Paul,

    The following script will display the value (in %) the close price of a chart is from a 200SMA:

    This is how the script would look on a Show View (below the chart):

    Ex3

    #54173
    Avatar
    Paul
    • Topics: 3
    • Replies: 4
    • Posts: 7

    Thanks, Matthew – just what I needed.  Much appreciated – Paul

    #54319
    Darren
    Darren
    • Topics: 38
    • Replies: 261
    • Posts: 299

    Sample workbook attached for US and ASX data. Remember you can save the Watchlist columns as a layout and apply them to any other watchlist.

    Capture

    Attachments:
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