It is 6 indicator in one : 5 ema 5 / 9 / 20/ 50/ 200 & MACD cross
When MACD (5,9,5) is greater than signal (5) and Momentum EMA (5) crosses up the Fast EMA (9), it generates B Signal. when Signal is greater than MACD and Fast EMA(9) crosses down the Momentum EMA(5) , it generates S Signal.
When MACD (5,9,5): bullish crossover it generate M_B When MACD (5,9,5): bearish crossover it generates M_S