// Downloaded From https://www.WiseStockTrader.com
Range = Param("Range",20,0,100,1);
HH = HHV(High,Range);
LL = LLV(Low,Range);
MM = (HH + LL)/2;

Plot(HH,"HH",colorGreen,styleLine);
Plot(MM,"MM",colorOrange,styleLine);
Plot(LL,"LL",colorRed,styleLine);