Hi. I have a script, it shows a 1 day moving average on a 5 minute or any chart. There simple, exponential, wilders, hul movings.
You can somehow add there "median average" ? Or maybe someone has such a ready-made script?
##
input averageType = AverageType.SIMPLE;
def AP = aggregationPeriod.DAY;
def price = close(period = AP);
input Length = 50;
input displace = 0;
plot Avg = MovingAverage(averageType, price[-displace], Length);
You can somehow add there "median average" ? Or maybe someone has such a ready-made script?
##
input averageType = AverageType.SIMPLE;
def AP = aggregationPeriod.DAY;
def price = close(period = AP);
input Length = 50;
input displace = 0;
plot Avg = MovingAverage(averageType, price[-displace], Length);