Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter ü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

Exp_XWAMI_MMRec - MetaTrader 5 için Uzman Danışman

Görüntülemeler:
2325
Derecelendirme:
(14)
Yayınlandı:
2018.08.23 14:10
Güncellendi:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
XWAMI.mq5 (18.07 KB) görüntüle
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

The trading system based on the XWAMI indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system. Trading signals are formed when a bar closes if a trend has changed (which is displayed by cloud changing its color).

The block of input EA variables is added for managing volumes of opened positions:

input uint    BuyTotalMMTriger=5; // Number of the last Buy trades for stop losses count
input uint    BuyLossMMTriger=3;  // Number of loss-making Buy trades to decrease MM
input uint    SellTotalMMTriger=5;// Number of the last Sell trades for stop losses count
input uint    SellLossMMTriger=3; // Number of loss-making Sell trades to decrease MM
input double  SmallMM_=0.01;      // Share of financial resources from the deposit used in a trade in case of losses
input double  MM=0.1;             // Share of financial resources from the deposit used in a trade in case of normal trading
input MarginMode MMMode=LOT;      // Lot size calculation method

In case of such inputs and when selecting from the last five trades, three of which are loss-making in a single direction, the EA opens the next trade in the same direction having the volume of 0.01 lot. If there are less than three loss-making trades out of the last five ones, the position volume is 0.1.

For the generated EA to operate correctly, the compiled XWAMI.ex5 indicator file should be in the <terminal_data_directory>\MQL5\Indicators folder.

Default Expert Advisor's input parameters with stops have been used during tests shown below.

Fig. 1. Examples of trades on the chart

Fig. 1. Examples of trades on the chart

Testing results for 2017 at EURUSD H1:

Fig. 2. Testing results chart

Fig. 2. Testing results chart

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

XWAMI_HTF XWAMI_HTF

The XWAMI indicator with the timeframe selection option available in the input parameters.

Gaps Gaps

The EA waits for a gap on a specified timeframe.

Sidus Sidus

Trading is based on iAlligator (Alligator) and iRSI (Relative Strength Index, RSI) indicators. Alligator acts as the main indicator, while RSI is used as a trend filter.

Dematus Dematus

Increasing a position volume. Entry signal by iDeMarker (DeMarker, DeM) indicator. Regular trailing and trailing by equity.