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

Trend-following trading system Exp_WAMI_Cloud_X2 is based on the signals of two indicators WAMI. The first indicator determines the direction of the slow trend based on the position of the main and signal lines. The second indicator determines the moment for opening a trade, when the lines cross each other. The signal is formed when a bar is closing if two conditions are met:

  1. Signals of the fast and slow trend match;
  2. Direction of the fast trend has changed.


Input parameters of the Expert Advisor

//+-------------------------------------------------+
//| Input parameters of the EA indicator            |
//+-------------------------------------------------+
sinput string Trade="Trade Management";    //+============== TRADE MANAGEMENT ==============+  
input double MM=0.1;               //Share of a deposit in a deal
input MarginMode MMMode=LOT;      //Lot value detection method
input uint    StopLoss_=1000;      //Stop Loss in points
input uint    TakeProfit_=2000;    //Take Profit in points
sinput string MustTrade="Trade Permissions";    //+============== TRADE PERMISSIONS ==============+  
input int    Deviation_=10;       //Max price deviation in points
input bool   BuyPosOpen=true;     //Permission to enter long positions
input bool   SellPosOpen=true;    //Permission to enter short positions
//+-------------------------------------------------+
//| Input parameters of the filter indicator        |
//+-------------------------------------------------+
sinput string Filter="SLOW TREND PARAMETERS";            //+============== TREND PARAMETERS ==============+  
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H6;                     //1 Chart period for the trend
input uint                 InpPeriodMA1      =  4;             // First MA period
input ENUM_MA_METHOD       InpMethodMA1      =  MODE_SMA;      // First MA method
input uint                 InpPeriodMA2      =  13;            // Second MA period
input ENUM_MA_METHOD       InpMethodMA2      =  MODE_SMA;      // Second MA method
input uint                 InpPeriodMA3      =  13;            // Third MA period
input ENUM_MA_METHOD       InpMethodMA3      =  MODE_SMA;      // Third MA method
input uint                 InpPeriodSig      =  4;             // Signal MA period
input ENUM_MA_METHOD       InpMethodSig      =  MODE_SMA;      // Signal MA method
input ENUM_APPLIED_PRICE   InpAppliedPrice   =  PRICE_CLOSE;   // Applied price
input uint SignalBar=1;                                        // bar number to receive the entry signal
input bool   BuyPosClose=true;                                 // Permission to close long positions by trend
input bool   SellPosClose=true;                                // Permission to close short positions by trend
//+-------------------------------------------------+
//| Input parameters of the entry indicator         |
//+-------------------------------------------------+
sinput string Input="ENTRY PARAMETERS";                         //+=============== ENTRY PARAMETERS ===============+  
input ENUM_TIMEFRAMES TimeFrame_=PERIOD_M30;                   //2 Chart period for entry 
input uint                 InpPeriodMA1_      =  4;            // First MA period
input ENUM_MA_METHOD       InpMethodMA1_      =  MODE_SMA;     // First MA method
input uint                 InpPeriodMA2_      =  13;           // Second MA period
input ENUM_MA_METHOD       InpMethodMA2_      =  MODE_SMA;     // Second MA method
input uint                 InpPeriodMA3_      =  13;           // Third MA period
input ENUM_MA_METHOD       InpMethodMA3_      =  MODE_SMA;     // Third MA method
input uint                 InpPeriodSig_      =  4;            // Signal MA period
input ENUM_MA_METHOD       InpMethodSig_      =  MODE_SMA;     // Signal MA method
input ENUM_APPLIED_PRICE   InpAppliedPrice_   =  PRICE_CLOSE;  // Applied price
input uint SignalBar_=1;                                       // bar number to receive an entry signal
input bool   BuyPosClose_=false;                               // Permission to close long positions by signal
input bool   SellPosClose_=false;                              // Permission to close short positions by signal
//+-------------------------------------------------+

String parameters with text in the code of input parameters are only for better visualization of the input parametera window of the expert.

Indicators WAMI_Cloud_HTF in the EA are only designed for a more convenient visualization of trends in the Strategy Tester; and they doe not work in any other modes.

For the generated EA to operate correctly, the compiled files of indicators WAMI.ex5 and WAMI_Cloud_HTF.ex5 must be in the <terminal_data_directory>\MQL5\Indicators folder.

Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with brokers who offer nonzero spread and the option of setting Stop Loss and Take Profit together with position opening. You can download more variants of the library at the following link: Trade Algorithms.

Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.

Testing results for 2016 on EURUSD, slow trend on H4, entry by fast trend on M30:

Fig 1. Examples of deals on the chart

Fig 1. Examples of deals on the chart


Fig. 2. Testing results chart

Fig. 2. Testing results chart

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

AbsolutelyNoLagLwma_Digit_Cloud AbsolutelyNoLagLwma_Digit_Cloud

The AbsolutelyNoLagLwma_Digit moving average which fills the chart space with a colored background.

AbsolutelyNoLagLwma_Digit_HTF AbsolutelyNoLagLwma_Digit_HTF

Indicator AbsolutelyNoLagLwma_Digit with the timeframe selection option available in its input parameters.

Test_values_print Test_values_print

A simple include file to print out the values and names of variables.

ZLS ZLS

Indicator ZLS (Zero Lag Stochastic) - a zero-delay stochastic - a ratio of several stochastics with different periods %К, deceleration, and weights.