Thank you for the reply. I understand your solution. However, I'm not sure I understand why all this work is needed since "Moving Averages.mq4" is already doing it all nicely. Isn't there a simple way to put a few function calls in a script (like a ...