Need some help with the MACD anyone?

 

Howzit guys

So i am coding my first EA but i have hit a wall and google isnt understanding me due to i dont know how to put it exactly...

I am trying to code, that if the histogram is in a low phase of running ( which happens when it chart is ranging normally) do not enter trade. But i have no idea how to code that.

Could anyone be so kind in assisting me in this matter.

Thanks

 
Stop thinking about how to not enter, and make a concrete criterion how so enter.