the drawn MA and calculated iMA out of sync

 

Sometimes on an MT installation the drawn MovingAverages and the once you from the iMA are differnt while the Period, shift,MA type, etc is the same. I've uninstalled and reinstalled the MT4 with no success. I have seen other similar threads on this board without any response.

Any idea?

 

Ive worked with MA's and custom MA's using iMA() a lot and I have never seen that happen except when there was an error in my code to generate the iMA() line

 

Right click -> Refresh

If it doesn't fix, it's the code.

Reason: