Home System Trading Post

Unlocking Trading Success with Exp_WAMI_Cloud_X2 for MetaTrader 5

Attachments
21092.zip (24.69 KB, Download 0 times)

If you're into trend-following strategies, let me introduce you to the Exp_WAMI_Cloud_X2, a nifty trading system designed for MetaTrader 5. This system leverages signals from two powerful indicators: WAMI. The first indicator helps pinpoint the direction of the slow trend based on where the main and signal lines are positioned. The second indicator comes into play to signal when it's time to enter a trade, specifically when these lines intersect.

A signal is generated as a bar closes, provided that two crucial conditions are met:

  • Both the fast and slow trend signals align.
  • The fast trend direction has shifted.

Input Parameters for the Expert Advisor

//+-------------------------------------------------+
//| Input Parameters of the EA Indicator            |
//+-------------------------------------------------+
sinput string Trade="Trade Management";    //+============== TRADE MANAGEMENT ==============+
input double MM=0.1;               //Share of 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
//+-------------------------------------------------+

Just a heads up: the string parameters in the code are there for better visualization in the input parameter window of the expert.

The indicators, WAMI_Cloud_HTF, integrated into the EA, are primarily for visualizing trends in the Strategy Tester and won’t function in other modes.

For the EA to run smoothly, ensure that the compiled files WAMI.ex5 and WAMI_Cloud_HTF.ex5 are located in the <terminal_data_directory>\MQL5\Indicators folder.

Also, don’t forget that the TradeAlgorithms.mqh library file allows you to use Expert Advisors with brokers that offer a nonzero spread and the option to set Stop Loss and Take Profit at the same time as position opening. You can find more variations of this library at this link: Trade Algorithms.

During the tests shown below, we used the default input parameters for the Expert Advisor. Notably, Stop Loss and Take Profit were not applied in these tests.

Here’s a look at the testing results for 2016 on the EURUSD, with the slow trend analyzed on H4 and entry signals generated from the 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

Related Posts

Comments (0)