Exp_ClosePositionsByTime - MetaTrader 5 Expert - MT4/MT5 Resources
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
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •