Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Facebook üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

MA Reverse - MetaTrader 5 için Uzman Danışman

Yayınlayan:
Vladimir Karputov
Görüntülemeler:
4122
Derecelendirme:
(23)
Yayınlandı:
2017.03.02 10:00
Güncellendi:
2018.02.15 17:51
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Trading by Moving Average. Checking for sufficiency of funds.

Author of the idea is Konstantin Grandauthor 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.
 

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/17288

RSI EA RSI EA

RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator.

Money Fixed Margin Money Fixed Margin

An example for calculating the lot value with a fixed margin level. That is, if you specify 10%, a position with the margin equal to 10% of free margin will be opened.

e-TurboFx e-TurboFx

Analysis of bars, if they contain N consecutive bars of the same type.

Waddah Attar Win Waddah Attar Win

Pending Buy Limit (BuyLimit) and Sell Limit (SellLimit) orders. Using OnTradeTransaction().