MACD Linear Regression

 

Hi everybody!


I am looking to add linear regression calculated on MACD line. This function is avaliable in prorealtime but i don't know how to replicate it in metratrader4


Hope you could help me...

Regards