ADX script

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

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

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

Peter