MA Reverse – EA MetaTrader 5

Trading by Moving Average. Checking for sufficiency of funds.

Author of the idea is Konstantin Grand, author of the MQL5 code is barabashkakvn.   

Operation Principle:

MA Reverse algo

Performance result on EURUSD, M30 from 2016.05.08 to 2016.12.28:

MA Reverse tester 

Also, before each operation, we should check if we have sufficient funds:

         //— check volume before OrderSend to avoid “not enough money” error (CTrade)
         double chek_volime_lot=m_trade.CheckVolume(m_symbol.Name(),1.0,m_symbol.Bid(),ORDER_TYPE_SELL);

         //— check volume before OrderSend to avoid “not enough money” error (CTrade)
         double chek_volime_lot=m_trade.CheckVolume(m_symbol.Name(),1.0,m_symbol.Ask(),ORDER_TYPE_BUY);

This protection allows avoiding the “not enough money” error.
 

Alternative:  Demo_BitmapOffset (OBJPROP_XOFFSET and OBJPROP_YOFFSET) - script MetaTrader 5


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks