Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
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_XAng_Zad_C_Tm_MMRec - sistema esperto per MetaTrader 5

Visualizzazioni:
3487
Valutazioni:
(13)
Pubblicato:
2018.09.27 16:16
Aggiornato:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

A trading system using the XAng_Zad_C trend-following indicator with the possibility to set a fixed trading time interval and change the volume of a forthcoming trade depending on the results of the previous trades.

A trade decision is made when the indicator cloud changes its color.

It is possible to specify trading time in input parameters to trade in the specified time interval:

input bool TimeTrade=true; //Allow trading in the specified interval
input HOURS StartH=ENUM_HOUR_0; //Trading start (hours)
input MINUTS StartM=ENUM_MINUT_0; //Trading start (minutes)
input HOURS EndH=ENUM_HOUR_23; //Trading end (hours)
input MINUTS EndM=ENUM_MINUT_59; //Trading end (minutes) 

Two variables for hours and minutes are provided for each of trading start and trading end times.

Default settings enable the Expert Advisor to trade the whole trading session from 0:00, while all positions are closed at 23:59.

If the start time in the EA's settings is later than the specified trading end time, the EA will close the opened positions at the specified time next day.

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 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.

This Expert Advisor requires the compiled indicator file XAng_Zad.ex5 in order to run. It should be available under <terminal_data_folder>\MQL5\Indicators.

The EA default input parameters were used in tests below. Stop Loss and Take Profit were not used in testing.

Fig. 1. Examples of deals on the chart. Trading only in the time intervals set in the inputs is disabled.

Fig. 1. Examples of deals on the chart. Trading only in the time intervals set in the inputs is disabled.

Testing results for GBPJPY H4 over the year 2017:

Fig. 2. Test results chart

Fig. 2. Test results chart

Fig. 3. Examples of deals on the chart. Trading only in the time intervals set in the inputs is enabled.

Fig. 3. Examples of deals on the chart. Trading only in the time intervals set in the inputs is enabled.

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

OHLC Check OHLC Check

Checking a trading system: Close > Open → BUY signal, Close < Open → SELL signal.

Wajdyss_Ichimoku_x10 Wajdyss_Ichimoku_x10

The Wajdyss_Ichimoku_x10 indicator displaying the colors of the Wajdyss_Ichimoku_Candle indicator candlesticks from ten different timeframes, from the bar defined in the indicator input parameters.

Corrected T3 - EMA deviations Corrected T3 - EMA deviations

Corrected T3 - EMA deviations

Corrected super smoother Corrected super smoother

Corrected super smoother