거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
3543
평가:
(13)
게시됨:
2018.09.27 16:16
업데이트됨:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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.

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: 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