Wes
New member
I need to add something more to this script. Wanting to name the moving average kind how you can toggle on a name for a trend line. I now have everything adjusted perfect would like to be able to toggle on a name and price. any ideas on what to add to this script:
# MTF Moving Average
input Period = aggregationPeriod.HOUR;
input AvgType = averageType.SIMPLE;
input Length = 50;
input priceclose = close;
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
AVG.setdefaultcolor(color.yellow);
Here is a shared chart for people wanting Daily Moving averages on the 1 minute
http://tos.mx/5KV2FCy
# MTF Moving Average
input Period = aggregationPeriod.HOUR;
input AvgType = averageType.SIMPLE;
input Length = 50;
input priceclose = close;
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
AVG.setdefaultcolor(color.yellow);
Here is a shared chart for people wanting Daily Moving averages on the 1 minute
http://tos.mx/5KV2FCy
Last edited: