Unlocking Profits with the Exp_Kolier_SuperTrend_X2 Trading System for MetaTrader 5

Mike 2017.05.30 00:49 36 0 0
Attachments

Welcome back, traders! Today, we're diving into the Exp_Kolier_SuperTrend_X2, a trend trading system that leverages two Kolier_SuperTrend indicators to help you spot those winning trades.

This system is designed to identify the slow trend direction through the color of the first indicator line, while the second indicator signals the right moment to enter a trade when the line color shifts. You’ll receive a signal when a bar closes, provided both of the following conditions are satisfied:

  • The signals from the fast and slow trends align.
  • The direction of the fast trend has flipped.

Expert Advisor Input Parameters

//+-------------------------------------------------+//| Input parameters of the EA indicator            |//+-------------------------------------------------+inputstring Trade="Trade management";    //+================ TRADE MANAGEMENT ================+inputdouble MM=0.1;              //Share of a deposit in a dealinput MarginMode MMMode=LOT;      //Lot value detection methodinputuint    StopLoss_=1000;     //Stop Loss in pointsinputuint    TakeProfit_=2000;   //Take Profit in pointsinputstring MustTrade="Trade permissions";    //+=============== TRADE PERMISSIONS ===============+inputint    Deviation_=10;       //Max price deviation in pointsinputbool   BuyPosOpen=true;     //Permission to enter long positionsinputbool   SellPosOpen=true;    //Permission to enter short positions//+-------------------------------------------------+//| Input parameters of the filter indicator         |//+-------------------------------------------------+inputstring Filter="SLOW TREND PARAMETERS";    //+============== TREND PARAMETERS ==============+inputENUM_TIMEFRAMES TimeFrame=PERIOD_H6;  //1 Chart period for the trendinput Mode TrendMode=NewWay;                //Display variantinputuint ATR_Period=10;
inputdouble ATR_Multiplier=3.0;
inputuint SignalBar=1; //Bar index to receive the entry signalinputbool   BuyPosClose=true;     //Permission to exit long positions by trendinputbool   SellPosClose=true;    //Permission to exit short positions by trend//+-------------------------------------------------+//| Input parameters of the entry indicator          |//+-------------------------------------------------+inputstring Input="ENTRY PARAMETERS"       //+=============== ENTRY PARAMETERS ==============+inputENUM_TIMEFRAMES TimeFrame_=PERIOD_M30;  //2 Chart period for entryinput Mode TrendMode_=NewWay;                 //Display variantinputuint ATR_Period_=10;
inputdouble ATR_Multiplier_=3.0;
inputuint SignalBar_=1;//Bar index to receive an entry signalinputbool   BuyPosClose_=false;     //Permission to exit long positions by signalinputbool   SellPosClose_=false;    //Permission to exit short positions by signal

Just a heads up, the string variables in the input code are there to enhance your experience while navigating the EA inputs window.

The Kolier_SuperTrend_HTF indicators included in the EA are solely for visualizing trends during strategy testing; they won’t be active in other modes.

To ensure your Expert Advisor runs smoothly, make sure to place the compiled files Kolier_SuperTrend.ex5 and Kolier_SuperTrend_HTF.ex5 in your <terminal_data_folder>\MQL5\Indicators directory.

Also, the TradeAlgorithms.mqh library file allows you to use Expert Advisors with brokers who have a non-zero spread and support setting Stop Loss and Take Profit at the same time as opening positions. You can check out more options for this library here.

The tests shown below were conducted using the default input parameters of the Expert Advisor. Notably, Stop Loss and Take Profit were not applied during these tests.

Fig. 1. Examples of deals on the chart

Fig. 1. Examples of deals on the chart

Testing results for the year 2015 on the EUR/USD, with a slow trend on H6 and entry based on a fast trend on M30:

Fig. 2. Chart of testing results

Fig. 2. Chart of testing results

List
Comments 0