input price = FundamentalType.close; input agg = AggregationPeriod.DAY; input length = 65; plot SMA = round((Average(high(period = agg)[0], length )-Average(low(period = agg)[0], length )),2); SMA.SetDefaultColor(GetColor(1));