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

Exp_NRTR_ATR_STOP_Tm - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Exp_NRTR_ATR_STOP_Tm - expert for MetaTrader 5

Exp_NRTR_ATR_STOP_Tm - expert for MetaTrader 5

Exp_NRTR_ATR_STOP_Tm EA sends signals based on the NRTR_ATR_STOP indicator and offers the possibility to set strict trading time intervals.

If a large colored star appears, a signal is formed 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 compiled indicator file NRTR_ATR_STOP.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_NRTR_ATR_STOP_Tm - expert for MetaTrader 5

Figure 1. Example of trade on chart

2015 EURJPY H1 test results:

Exp_NRTR_ATR_STOP_Tm - expert for MetaTrader 5

Figure 2. Test result graph


Attachment download

📎 tradealgorithms.mqh (185.34 KB)

📎 nrtr_atr_stop.mq5 (20.73 KB)

📎 exp_nrtr_atr_stop_tm.mq5 (18.22 KB)

Source: MQL5 #19343

Verification code Refresh