I'm trying to show, either on the price chart as an arrow (Show Bar) or a separate layer (show view), whenever the DM minus hits an extreme low value over the last X periods. I started with the following script for a Show Bar, which didn't work:
v1 = LOWESTLOW(ADX(DEFAULT=DMMinus), RANGE=All Time);
IF(V1 <= ADX(DEFAULT=DMMinus))
I tried a number of variations of the above the the look back period (instead of All Time) but none worked. I've also tried to use a regression band on the DM minus, then tried to apply a similar script as above but again was unsuccessful.
Anyone have any ideas on how I can accomplish my task?