moving average on/off implemented