Maximum divergence from a moving average

 
Hi there, I am trying to find a code or if someone could be kind enough to help me program the code in mt4 for the following. I am trying to chart the varying difference from a moving minus the curren bar max or moving average - the current bar min. so that on the saperate window i would be avble to see the variation of the curent bar with the moving average.
 
No slaves here. Either learn to code or pay someone.
 
WHRoeder:
No slaves here. Either learn to code or pay someone.

Thanks for tha advise perhaps you could have not bothered to read it in the first instance
 
Every Day, some moron says
kind enough to help me program the code in mt4
You didn't search for coders. you didn't even try to code it. Perhaps you could have not bothered to post before doing one or the other.
 
WHRoeder:
Every Day, some moron says You didn't search for coders. you didn't even try to code it. Perhaps you could have not bothered to post before doing one or the other.

I suppose it takes one to know one
 

*helpful starter*

Take the MACD.mq4 & replace one of the MA's with either High or Low.

And expect to get REALLY flamed if you ask someone to remove the signal line code.

Reason: