You will need:
iMA() http://docs.mql4.com/indicators/iMA
OrderSend() http://docs.mql4.com/trading/OrderSend
And check sample EAs that comes together with metatrader. Now go and write your EA.
iMA() http://docs.mql4.com/indicators/iMA
OrderSend() http://docs.mql4.com/trading/OrderSend
And check sample EAs that comes together with metatrader. Now go and write your EA.