I'm a very novice pinescript programmer, but trying to do this:
If ADX (10,10) changes direction then SellLong
SellLong = ChangeDirection(ADX(10,10))
Although ChangeDirection doesn't seem to be a function. Is ADX a built-in function? Can someone assist on this? thanks