hedge_mate
New member
Hey guys, I have this code which plots the EMA D reading on every time frame. I have it adjusted so each plot is just a flat line so I dont need to manually plot the lines from the Daily. How can I adjust the code so when it plots on the chart that its only displaying the plots for the current day? thanks!
input Period = aggregationPeriod.DAY;
input AvgType = averageType.EXPONENTIAL;
input Length = 15;
input priceclose = close;
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
AVG.setdefaultcolor(color.yellow);
AVG.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
input Period = aggregationPeriod.DAY;
input AvgType = averageType.EXPONENTIAL;
input Length = 15;
input priceclose = close;
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
AVG.setdefaultcolor(color.yellow);
AVG.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);