#MAs_Wave
declare upper;
input showlabels = yes;
input crossingType = {default above, below};
input price = close;
plot ema0 = ExpAverage (close, 13);
plot ema1 = ExpAverage (close, 27);
plot ema2 = ExpAverage (close, 55);
ema0.SetDefaultColor(Color.GRAY);
ema0.SetLineWeight(1);
ema1.SetDefaultColor(Color.GRAY);
ema1.SetLineWeight(1);
ema2.SetDefaultColor(Color.RED);
ema2.SetLineWeight(1);
AddCloud(ema0, ema1, Color.DARK_GRAY, Color.DARK_GRAY);
AddCloud(ema1, ema2, Color.GRAY, Color.GRAY);
AddLabel(showlabels, "13ema = " + Round(ema0, 2), if close >= ema0 then Color.uptick else Color.downtick);
AddLabel(showlabels, "27ema = " + Round(ema1, 2), if close >= ema1 then Color.uptick else Color.downtick);
addlabel(showlabels, "55ema = " + round(ema2, 2), if close >= ema2 then color.uptick else color.downtick);