I want to draw Linear Regression channel with atr width. The LR itself works fine, but ATR are curvy - i want them to be just straight lines.
What the best way to do it?
What the best way to do it?
Code:
#channel with ATR
input price = close;
input length = 65;
input atrmod=2;
plot MiddleLR = InertiaAll(price, length);
def dist = ATR(length);
plot UpperLR = MiddleLR + 2*dist;
plot LowerLR = MiddleLR - 2*dist;