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

Exp_ClosePositionsByTime - MetaTrader 5 Expert - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

If the current server time exceeds the time limit specified in the input variable, the Expert Advisor will close all symbol positions currently opened on the account.

 //+------------------------------------------------------------------------+
//| EA transaction input parameters |
//+------------------------------------------------------------------------+
Enter date and time stop time = D'2030.01.01 23:59' ; //Close time
Input unit deviation_= 20 ; //Maximum price deviation (in points)



Attachment download

📎 exp_closepositionsbytime.mq5 (23.91 KB)

Source: MQL5 #17909

Verification code Refresh