plot ema5 = expAverage(close(period = aggregationPeriod.DAY)[1],5) ;
plot ema10 = expAverage(close(period = AggregationPeriod.DAY)[1],10);
plot ema21 = expaverage(close(period = AggregationPeriod.DAY)[1],21);
plot sma50 = average(close(period = AggregationPeriod.DAY)[1],50);
plot sma100 = average(close(period = AggregationPeriod.DAY)[1],100);
plot sma200 = average(close(period = AggregationPeriod.DAY)[1],200);
ema5.setPaintingStrategy(paintingStrategy.HORIZONTAL);
ema10.setpaintingStrategy(paintingStrategy.HORIZONTAL);
ema21.setpaintingStrategy(paintingStrategy.HORIZONTAL);
sma50.setpaintingStrategy(paintingStrategy.HORIZONTAL);
sma100.setpaintingStrategy(paintingStrategy.HORIZONTAL);
sma200.setPaintingStrategy(paintingStrategy.HORIZONTAL);