Exp_XPeriodCandleSystem_Tm_Plus - MetaTrader 5 Expert


The trading system is based on the XPeriod candle system and can set indicator signals for a fixed holding time. If the channel breaks, a signal is formed when the bar closes. Once the position holding time exceeds the preset fixed limit, the position will be closed immediately:
Input boolean time trading = true ; //enable closing positions by time Input unit n time = 96 0 ; //Position time (minutes)
The Expert Advisor operates using the compiled indicator file XPeriodCandleSystem.ex5 . Place it in <terminal data folder>\MQL5\Indicators.
The input parameters of the default Expert Advisor have been used during testing, as shown below.

Figure 1. Example of trade on chart
2017 USDJPY H4 test results:

Figure 2. Test result graph
Attachment download
📎 Exp_XPeriodCandleSystem_Tm_Plus.mq5 (20.05 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 TradeAlgorithms.mqh (229.96 KB)
📎XPeriodCandleSystem.mq5 (28.49 KB)
Source: MQL5 #21539
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •