Please help me out and code this!

 

Please I need an indicator that will be showing the trend from M1 to M15

Thank you for your help.

I also need a MACD indicator that will be showing the value of the MACD histogram visually e.g 124