Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Exp_XPeriodCandleSystem_Tm_Plus - MetaTrader 5 Expert

author EAcpu | 5 reads | 0 comments |

Exp_XPeriodCandleSystem_Tm_Plus - expert for MetaTrader 5

Exp_XPeriodCandleSystem_Tm_Plus - expert for MetaTrader 5

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.

Exp_XPeriodCandleSystem_Tm_Plus - expert for MetaTrader 5

Figure 1. Example of trade on chart

2017 USDJPY H4 test results:

Exp_XPeriodCandleSystem_Tm_Plus - expert for MetaTrader 5

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

Verification code Refresh