Compute MACD indicator for stocks with Python