added MACD service and changed plotting code accordingly