Exp_IBS_RSI_CCI_v4_X2 - MetaTrader 5 Expert - MT4/MT5 Resources




Exp_IBS_RSI_CCI_v4_X2 Trend following trading system is based on two signals IBS_RSI_CCI_v4 indicator. 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 to start trading when the line is crossed or touched. A signal is formed when the bar closes if two conditions are met:
//+------------------------------------------------+ //|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_H8 ; //1 trend chart period //---- Centerline parameters Input unit IBS period = 5 ; Input ENUM_MA_METHOD MA type = mode_SMA ; //---- RSI parameters Input unit RSIP period = 14 ; Input ENUM_APPLIED_PRICE RSI price = PRICE_CLOSE ; //---- CCI parameters Input unit CCIP period = 14 ; Input ENUM_APPLIED_PRICE CCI price = PRICE_MEDIAN ; Input integer Porog = 50 ; // Critical point //---- VKWB line filter parameters Input ENUM_MA_METHOD MAType_VKWB= mode_SMA ; Input integer RangePeriod_VKWB = 25 ; Input integer SmoothPeriod_VKWB = 3 ; //---- Input unit signal column = 1 ; //Get the bar index of the received 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_H1an>; //2 Chart period for entry //---- Centerline parameter input unit IBS period_= 5 ; Input ENUM_MA_METHOD MA type_= mode_SMA ; //---- RSI parameter input unit RSIPeriod_= 14 ; Input ENUM_APPLIED_PRICE RSI price_= PRICE_CLOSE ; //---- CCI parameter input unit CCIPeriod_= 14 ; Input ENUM_APPLIED_PRICE CCI price_= PRICE_MEDIAN ; Input integer Borog_= 50 ; //порог //---- VKWB line filter parameter input ENUM_MA_METHOD MAType_VKWB_= Mode_SMA ; Input integer RangePeriod_VKWB_ = 25 ; Input integer SmoothPeriod_VKWB_ = 3 ; //---- Input unit signal column_= 1 ; // Input Boolean value of bar index to receive entry signal BuyPosClose_= wrong ; //Allow long position closing through signal Enter boolean value SellPosClose_= wrong ; //Allow short position closing through signal //+------------------------------------------------+
The string variable containing the text from the input code is only for better visualization of the EA input window.
The IBS_RSI_CCI_v4_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 compiled Expert Advisor to work correctly, you should add the compiled IBS_RSI_CCI_v4.ex5 and IBS_RSI_CCI_v4_HTF.ex5 indicator files to
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 USD/CHF in 2015, H8 is a slow trend and H1 is a fast trend entry:
Figure 2. Test result chart
Attachment download
📎 tradealgorithms.mqh (178.46 KB)
📎 ibs_rsi_cci_v4.mq5 (18.33 KB)
📎 ibs_rsi_cci_v4_htf.mq5 (21.75 KB)
📎 exp_ibs_rsi_cci_v4_x2.mq5 (21.86 KB)
Source: MQL5 #17692
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •