added sma selector for activating/deactivating moving average