I'm trying to translate this open source strategy from perl to c# and from tradingview.com to Quant Connect.
here's the guts of it.

fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)

macd = fastMA - slowMA
signal = sma(macd, signalLength)
hist = macd - signal

Author