how do i get macd signals for my ea

 

hi,

im writing a ea but dont know how to code this part, what i am trying to do is get a macd signal when the macd Signal sma line crosses the fast ema of the histogram, can some one help me with coding this please. thank you very much

 
Here...
Reason: