DarthVaider
New member
I found this script and was super excited when I loaded it up and edited the colors and what not. Went to test it out today and realized that the values are incorrect. When I actually check the 13EMA, 50SMA & 200SMA values on my chart they are correct, when I check the figures in the actual label they are not corresponding to the lines on the chart which are the correct values.
Not sure if I can upload a photo from my computer.
So Labels Read:
13EMA - 572.38 Current Value: 621.85
50SMA - 573.59 Current Value: 673.60
200SMA - 573.43 Current Value: 586.84
I'm not sure why the Labels are not picking up the correct values.
Here is the script im using:
Please let me know what I am doing incorrect.
Thank You
Not sure if I can upload a photo from my computer.
So Labels Read:
13EMA - 572.38 Current Value: 621.85
50SMA - 573.59 Current Value: 673.60
200SMA - 573.43 Current Value: 586.84
I'm not sure why the Labels are not picking up the correct values.
Here is the script im using:
Code:
input price = close;
input length = 13;
input displace = 0;
input showBreakoutSignals = no;
plot AvgExp = ExpAverage(price[-displace], length);
plot UpSignal = price crosses above AvgExp;
plot DownSignal = price crosses below AvgExp;
UpSignal.SetHiding(!showBreakoutSignals);
DownSignal.SetHiding(!showBreakoutSignals);
AvgExp.SetDefaultColor(GetColor(1));
UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
DownSignal.SetDefaultColor(Color.DOWNTICK);
DownSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
addlabel(Yes,"MovAvgExponential = " + price, color.greeN);
Please let me know what I am doing incorrect.
Thank You