Exp_Kolier_SuperTrend_X2 - MetaTrader 5 Expert - MT4/MT5 Resources


Exp_Kolier_SuperTrend_X2 trend trading system is based on two signals Kolier_SuperTrend indicator. The first indicator determines the direction of the slow trend based on the line color. The second indicator determines the moment when a position is opened when the color of the line changes. A signal is formed when the bar closes if two conditions are met:
EA trading input parameters :
//+------------------------------------------------+ //|Input parameters of EA indicator| //+------------------------------------------------+ Enter String Trade = "Trade Management" ; //+================ Trade Management================+ Enter double MM= 0.1 ; //Share of deposit in a transaction Enter the margin mode MMMode=LOT; //Lot size detection method Input unit Stop loss_= 1000 ; //Stop loss points Input unit profit_= 2000 ; //Profit in points Input string must trade = "Trade Permit" ; //+================ Trade Permit==============+ Enter integer Deviation_= 10 ; //Maximum price deviation (in points) Enter Boolean BuyPosOpen= True ; //Allow entry into long position Enter a Boolean value SELL OPEN = TRUE ; //Allow short positions to be opened //+------------------------------------------------+ //|Input parameters for filtering indicators | //+------------------------------------------------+ input string filter = "slow trend parameter" ; //+============== trend parameter==============+ Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; //1 chart period of the trend Input mode TrendMode=NewWay; //Display variants Enter the unit ATR_Period = 10 ; Enter the double ATR_Multiplier = 3.0 ; Enter the unit Signal column = 1 ; //Bar index to receive the entry signal Input boolean buy close = true ; //Allow exit of long positions on trend Enter a Boolean value Sell transaction close = true ; //Allow exit of short positions according to trend //+------------------------------------------------+ //|Input parameters of the entry indicator | //+------------------------------------------------+ input string input = "input parameter" ; //+================ input parameter==============+ Enter ENUM_TIMEFRAMES time range_= PERIOD_M30 ; //2 chart period for entry Input mode TrendMode_=NewWay; //Display variants Enter the unit ATR_period_= 10 ; Enter the double ATR_multiplier_= 3.0 ; Enter the unit signal column_= 1 ; //Bar index to receive the entry signal Enter boolean BuyPosClose_= false ; //Allow closing of long positions via signal Enter boolean SellPosClose_= False ; //Allow closing of short positions via signal
The string variable containing the text from the input code is only for better visualization of the EA input window.
The Kolier_SuperTrend_HTF indicator in the EA is only used for more convenient visualization of trends in the strategy tester, they are inactive in other operating modes.
In order for the generated Expert Advisor to run correctly, please place the Kolier_SuperTrend.ex5 and Kolier_SuperTrend_HTF.ex5 compiled files into
Please note that the TradeAlgorithms.mqh library file allows trading Expert Advisors with non-zero spreads and the option to set Stop Loss and Take Profit along with opening positions with brokers that offer the following services. You can download more variants of this library via the following link: Trading Algorithms .
The input parameters of the default Expert Advisor were used in the test shown below. Stop Loss and Take Profit were not used during testing.

Figure 1. Example of trade on chart
The test results of EURUSD in 2015, H6 is a slow trend and M30 is a fast trend entry:

Figure 2. Test result chart
Attachment download
📎 tradealgorithms.mqh (179.85 KB)
📎 kolier_supertrend.mq5 (23.58 KB)
📎 exp_kolier_supertrend_x2.mq5 (20.15 KB)
Source: MQL5 #18160
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •