MACD indicator help?

I’m not sure if I just need an indicator or EA or both but anyway. What I would like is to have a MACD indictor that once a bar touches a certain # (that can be set to any #) above the zero line it will change colors and once it closes at that # or higher it will remain that color and if one of the bars touches a certain # (that can be set to any #) below the zero line it will turn a different color and once it closes at or below that # it will remain that color.

Thanks