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

Exp_BlauErgodicMDI_Tm - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

Exp_BlauErgodicMDI_Tm - expert for MetaTrader 5

Exp_BlauErgodicMDI_Tm - expert for MetaTrader 5

The trading system using the oscillator Blue Ergo MDI has the option of strictly setting the trading time intervals.

A trading decision is made when the histogram changes direction, breaks the zero line, or the color of the signal line cloud changes. The following input parameters are used to select input algorithm options:

 Input AlgMode Mode=Twisted; //Market Entry Algorithm

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

 input boolean timetrading= true ; //Allow trading by time interval
Enter hour start H=ENUM_HOUR_0; //Transaction start (hour)
Enter the minute StartM=ENUM_MINUT_0; //Transaction starts (minutes)
Enter the end of hour H=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 compile the EA correctly, the indicator's compiled file Blue Traversal MDI.ex5 must be located in the terminal_data_directory\MQL5\Indicators folder. After compiling the EA, the indicator exists as a resource in the EA code, so it does not need to exist in the relevant terminal folder.

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 along with opening positions with brokers that offer the following services. You can download other versions of this library trading algorithms at.

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_BlauErgodicMDI_Tm - expert for MetaTrader 5

Figure 1. Example of trade on chart

2016 AUDUSD H4 test results:

Exp_BlauErgodicMDI_Tm - expert for MetaTrader 5

Figure 2. Test result graph


Attachment download

📎 Exp_BlauErgodicMDI_Tm.mq5 (23.6 KB)

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 TradeAlgorithms.mqh (223.62 KB)

📎 BlauErgodicMDI.mq5 (18.62 KB)

Source: MQL5 #21013

Verification code Refresh