ADX script

Optuma Forums Optuma Scripting ADX script

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46795
    Peter
    • Topics: 25
    • Replies: 21
    • Posts: 46

    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
    • Topics: 5
    • Replies: 366
    • Posts: 371

    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: 25
    • Replies: 21
    • Posts: 46

    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