The following code is for an ATR indicator, I am mixing it with another indicator and using an RSI to switch between the two for certain market conditions.
I would li