ADX script

Optuma Forums Optuma Scripting ADX script

This topic contains 2 replies, has 2 voices, and was last updated by  Peter 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46795

    Peter
    • Topics: 3
    • Replies: 3
    • Posts: 6

    I’m trying to write a script that simply shows when the ADX line is Greater than the previous period. When using the show bar my attempts have failed.

    ADX(#ADX Bars:BARS=14) isup. Thanks Peter

    #46799
    Matthew
    Matthew
    • Topics: 3
    • Replies: 38
    • Posts: 41

    Hi Peter,

    Are you applying the Show Bar to the bar chart of the ADX tool itself?  If applying the Show Bar to the chart, the following will show an arrow when the ADX line is higher than the previous day.

    ADX(BARS=14).ADX IsUp

    If you are applying the Show Bar to the ADX itself, you’d need to use this script:

    CLOSE() IsUp

    This is due to the Show Bar using the ADX as the underlying data when it is applied directly to the indicator, rather than to the chart.

    Ex1

    #46823

    Peter
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Thanks. My intent was to apply show bar to ADX but it’s great to have the both options.

    Peter

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