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

Exp_ColorPEMA_Digit_Tm_Plus - MetaTrader 5 Expert

author EAcpu | 2 reads | 0 comments |

Exp_ColorPEMA_Digit_Tm_Plus - expert for MetaTrader 5

Exp_ColorPEMA_Digit_Tm_Plus - expert for MetaTrader 5

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.

Exp_ColorPEMA_Digit_Tm_Plus - expert for MetaTrader 5

Figure 1. Example of trade on chart

2017 EURUSD H4 test results:

Exp_ColorPEMA_Digit_Tm_Plus - expert for MetaTrader 5

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

Verification code Refresh