Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Sistemi Esperti

Exp_X2MACandle_MMRec - sistema esperto per MetaTrader 5

Visualizzazioni:
2324
Valutazioni:
(13)
Pubblicato:
2018.10.25 18:24
Aggiornato:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
X2MA.mq5 (16.54 KB) visualizza
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

The trading system based on the X2MACandle 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 candles changing their color).

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

input uint    BuyTotalMMTriger=3; // The number of the last Buy deals to calculate stop loss
input uint    BuyLossMMTriger=2;  // The number of losing Buy deals to reduce MM
input uint    SellTotalMMTriger=3;// The number of the last Sell deals to calculate stop loss
input uint    SellLossMMTriger=2; // 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 files of indicators X2MA.ex5 and X2MACandle.ex5 should be present in the <terminal_data_directory>\MQL5\Indicators.

Default Expert Advisor's input parameters without 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 USDJPY H6 over the year 2017:

Fig. 2. Test results chart

Fig. 2. Test results chart

Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/22311

Skyscraper_Fix_HTF Skyscraper_Fix_HTF

Skyscraper_Fix indicator with the timeframe selection option available in input parameters

Skyscraper_Fix_x10 Skyscraper_Fix_x10

Skyscraper_Fix_x10 shows the direction of Skyscraper_Fix indicator signals from ten different timeframes from the bar defined in the indicator input parameters

Exp_JFatlCandle_MMRec Exp_JFatlCandle_MMRec

The trading system based on the JFatlCandle 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

Exp_Skyscraper_Fix_Duplex Exp_Skyscraper_Fix_Duplex

Two identical trading systems (for long and short positions) based on the signals of the Skyscraper_Fix indicator, which can be configured in different ways within one Expert Advisor