거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Exp_ColorX2MA_Digit_NN3_MMRec - MetaTrader 5용 expert

조회수:
2107
평가:
(7)
게시됨:
2018.08.23 12:06
업데이트됨:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Three independent trading systems using ColorX2MA_Digit indicators within a single EA 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 any of the three indicators changing its color).

The blocks of input EA variables are added for managing volumes of opened positions. For example, for the first system:

input uint    A_BuyLossMMTriger=2;  //A number of loss-making Buy trades to decrease MM
input uint    A_SellLossMMTriger=2; //A number of loss-making Sell trades to decrease MM
input double  A_SmallMM=0.01;       //A Share of financial resources from the deposit used in a trade in case of losses
input double  A_MM=0.1;             //A Share of financial resources from the deposit used in a trade in case of normal trading

In case of such inputs and if the last two trades in one direction were loss-making, the EA opens the next trade in the same direction having the volume of 0.01 lot. If at least one of the two last trades is not loss-making, the position volume is 0.1.

The similar inputs are available for the second trading system:

input uint    B_BuyLossMMTriger=2;  //B number of loss-making Buy trades to decrease MM
input uint    B_SellLossMMTriger=2; //B number of loss-making Sell trades to decrease MM
input double  B_SmallMM=0.01;       //B Share of financial resources from the deposit used in a trade in case of losses
input double  B_MM=0.1;             //B Share of financial resources from the deposit used in a trade

The C_ prefix is used in the inputs for the third system.

The most optimal option for setting up such an EA is configuring it on each trading system separately disabling other two applying the appropriate switches in the form of the following parameters:

input bool    B_BuyPosOpen=true;    //B Permission to enter long positions
input bool    B_SellPosOpen=true;   //B Permission to enter short positions

by setting them to false.

For the generated EA to operate correctly, the compiled ColorX2MA_Digit.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

Test results for GBPJPY H3, H6 and H12 over the year 2016.

Fig. 2. Test results chart


Fig. 2. Test results chart

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/21410

Exp_ColorJFatl_Digit_NN3_MMRec Exp_ColorJFatl_Digit_NN3_MMRec

Three independent trading systems using ColorJFatl_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Fibo_Average Fibo_Average

Fibo Average

OverHedgeV2 OverHedgeV2

Hedging positions. Working on a new bar.

Lentz_Volatility Lentz_Volatility

Lentz Volatility indicator