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

Exp_ColorJFatl_Digit_Tm - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Exp_ColorJFatl_Digit_Tm - expert for MetaTrader 5

Exp_ColorJFatl_Digit_Tm - expert for MetaTrader 5

Exp_ColorJFatl_Digit_Tm Expert Advisor emits signals based on the ColorJFatl_Digit indicator and offers the possibility to set strict trading intervals.

If the indicator color changes, a trading signal is formed when the bar closes.

Trading times can be specified in the input parameters to trade at specified intervals:

 Input boolean value TimeTrading= True ; //Allow trading within the specified range
Enter HOURS start H=ENUM_HOUR_0; //Transaction starts (hour)
Enter the minute StartM=ENUM_MINUT_0; //Transaction starts (minutes)
Enter the hour EndH=ENUM_HOUR_23; //End of transaction (hour)
Enter minutes EndM=ENUM_MINUT_59; //End of transaction (minutes)

Provide two variables (hours and minutes) for the operation start time and two similar variables for the end time.

The default settings enable the Expert Advisor to trade for the entire trading session starting from 0:00, while all positions are closed at 23:59.

If the start time is later than the specified end time, the Expert Advisor will close the position at the specified time the next day.

In order to operate the Expert Advisor correctly, you should save the indicator file compiled by ColorJFatl_Digit.ex5 to \MQL5\Indicators.

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 with brokers that offer the following services during position opening . You can download more variants of this library via the following link: Trading Algorithms .

The default input parameters of the Expert Advisor were used during the tests shown below. Stop Loss and Take Profit were not used during testing.

Exp_ColorJFatl_Digit_Tm - expert for MetaTrader 5

Figure 1. Example of trade on chart

2015 EURUSD H4 test results:

Exp_ColorJFatl_Digit_Tm - expert for MetaTrader 5

Figure 2. Test result graph


Attachment download

📎 Exp_ColorJFatl_Digit_Tm.mq5 (19.06 KB)

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 TradeAlgorithms.mqh (185.34 KB)

📎 ColorJFatl_Digit.mq5 (8.82 KB)

Source: MQL5 #18424

Verification code Refresh