Unlocking Profits with the Exp_Kolier_SuperTrend_X2 Trading System for MetaTrader 5

Mike 2017.05.30 00:49 22 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            |
//+-------------------------------------------------+
input 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
input 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         |
//+-------------------------------------------------+
input string Filter="SLOW TREND PARAMETERS";    //+============== TREND PARAMETERS ==============+
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H6;  //1 Chart period for the trend
input Mode TrendMode=NewWay;                //Display variant
input uint ATR_Period=10;
input double ATR_Multiplier=3.0;
input uint SignalBar=1; //Bar index to receive the entry signal
input bool   BuyPosClose=true;     //Permission to exit long positions by trend
input bool   SellPosClose=true;    //Permission to exit short positions by trend
//+-------------------------------------------------+
//| Input parameters of the entry indicator          |
//+-------------------------------------------------+
input string Input="ENTRY PARAMETERS"       //+=============== ENTRY PARAMETERS ==============+
input ENUM_TIMEFRAMES TimeFrame_=PERIOD_M30;  //2 Chart period for entry
input Mode TrendMode_=NewWay;                 //Display variant
input uint ATR_Period_=10;
input double ATR_Multiplier_=3.0;
input uint SignalBar_=1;//Bar index to receive an entry signal
input bool   BuyPosClose_=false;     //Permission to exit long positions by signal
input bool   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