Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram ü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_ColorXPWMA_Digit_MMRec - MetaTrader 5 için Uzman Danışman

Görüntülemeler:
1843
Derecelendirme:
(10)
Yayınlandı:
2018.09.27 15:37
Güncellendi:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
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 ColorXPWMA_Digit 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 at the bar close, provided that the trend has changed (which is indicated by a change in the indicator line color).

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

input uint    BuyTotalMMTriger=5; // The number of the last Buy deals to calculate stop loss
input uint    BuyLossMMTriger=3;  // The number of losing Buy deals to reduce MM
input uint    SellTotalMMTriger=5;// The number of the last Sell deals to calculate stop loss
input uint    SellLossMMTriger=3; // The number of losing Sell deals to reduce MM
input double  SmallMM_=0.01;      // Share of a deposit in a deal in case of loss
input double  MM=0.1;             // Share of a deposit in a deal during normal trading
input MarginMode MMMode=LOT;      // Lot value determining 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 ColorXPWMA_Digit.ex5 indicator file must be available under the <terminal_data_directory>\MQL5\Indicators folder.

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

Fig. 1. Example trades on the chart

Fig. 1. Example trades on the chart

GBPJPY H1 testing results over the year of 2017:

Fig. 2. Test results chart

Fig. 2. Test results chart

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

Trend_Intensity_Index_HTF Trend_Intensity_Index_HTF

The Trend_Intensity_Index indicator with the ability to change the indicator timeframe using the input parameters.

Trading_Channel_Index_HTF Trading_Channel_Index_HTF

The Trading_Channel_Index indicator with the ability to change the indicator timeframe using the input parameters.

Dynamic_Trend Dynamic_Trend

The Dynamic Trend signal indicator draws a two-color trend direction line and adds signal arrows.

Klinger_Oscillator Klinger_Oscillator

Klinger Oscillator developed by Stephen Klinger to determine the long-term trend while remaining sensitive to detect short-term fluctuations enabling the trader to predict short-term reversals.