MACD Linear Regression

[Deleted]  
Hi!

I have to add to my MACD indicator its linear regression, I just fooud howto add the linear regression to a graph. Does anybody know or (has a mq4 code) how to add the linear regression to a MACD?
Thanks