Smoothed Moving Average indicator implementation