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

Exp_Stopreversal_Tm - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

Exp_Stopreversal_Tm - expert for MetaTrader 5

Exp_Stopreversal_Tm - expert for MetaTrader 5

Exp_Stopreversal_Tm Expert Advisor is based on the following signals: Stop Reversal indicator and can set strict trading time intervals.

If a colored indicator arrow appears, a signal is generated at the close of the bar.

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.

For correct operation of the Expert Advisor, you should add the indicator file compiled by Stopreversal.ex5 to \MQL5\Indicators.

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

Figure 1. Example of trade on chart.

USDJPY test results in the first half of 2016:

Exp_Stopreversal_Tm - expert for MetaTrader 5

Figure 2. Test results chart.


Attachment download

📎 tradealgorithms.mqh (223.38 KB)

📎 stopreversal.mq5 (19.73 KB)

📎exp_stopreversal_tm.mq5 (20.7 KB)

Source: MQL5 #19425

Verification code Refresh