Hello, Linear Reg ch 50 is the study
Can someone pls color the lines green if slope is up and red if sloping down...yellow if no slope.
Also can u add arrows everytime it hits the lines.
Thank You, This site rocks
this is the script
input price = close;
plot MiddleLR = InertiaAll(price);
def dist = HighestAll(AbsValue(MiddleLR - price)) * 0.5;
plot UpperLR = MiddleLR + dist;
plot LowerLR = MiddleLR - dist;
MiddleLR.setDefaultColor(GetColor(1));
UpperLR.setDefaultColor(GetColor(1));
LowerLR.setDefaultColor(GetColor(1));
Can someone pls color the lines green if slope is up and red if sloping down...yellow if no slope.
Also can u add arrows everytime it hits the lines.
Thank You, This site rocks
this is the script
input price = close;
plot MiddleLR = InertiaAll(price);
def dist = HighestAll(AbsValue(MiddleLR - price)) * 0.5;
plot UpperLR = MiddleLR + dist;
plot LowerLR = MiddleLR - dist;
MiddleLR.setDefaultColor(GetColor(1));
UpperLR.setDefaultColor(GetColor(1));
LowerLR.setDefaultColor(GetColor(1));
Last edited: