Exp_ColorPEMA_Digit_Tm_Plus - MetaTrader 5 Expert


The color of the trading system PEMA_Number based on the indicator signal can be set to a fixed holding time. If the indicator color changes, 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 = 240 ; //Position time (minutes)
In order for the generated EA to run correctly, the compiled ColorPEMA_Digit.ex5 indicator file should be located in the <terminal data directory>\MQL5\indicator folder.
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
2017 EURUSD H4 test results:

Figure 2. Test result graph
Attachment download
📎 Exp_ColorPEMA_Digit_Tm_Plus.mq5 (16.89 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 TradeAlgorithms.mqh (242.04 KB)
📎 ColorPEMA_Digit.mq5 (22.39 KB)
Source: MQL5 #23441
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •