Writing on a chart indicators calculated on a different timeframe base?

 

Does any one can help me how can I write on a 5 min chart MACD indicator calculated on a 30min base?

It may be simple question but I'm a beginer in MQL so plese forgive me.

Thanks

 
It will be like the following scheme:

...
M30[2] contains 6 5-min bars
M30[1] contains 6 5-min bars
M30[0] contains x 5-min bars

Then create a custom indicator and copy values of M30 bars to their corresponding M5 bars.
Reason: