Mastering Close At Time: Your Go-To EA for MetaTrader 4

Mike 2015.12.02 21:48 24 0 0
Attachments

If you're trading on the MetaTrader 4 platform, you might want to check out the Close At Time Expert Advisor (EA). This handy tool is designed to help you manage your trades by closing open positions, deleting pending orders, or doing both with ease. You can customize how it operates by specifying the symbol, magic number, or ticket number for the trades you want it to handle. Plus, you can set a precise local time for when the EA should take action on your selected orders.

One of the standout features of this EA is its resilience. If it encounters any issues while trying to close a trade or order, it won’t throw in the towel. Instead, it’ll keep trying until it succeeds, operating on the next tick. Just a heads up, though: if new trades open after your selected time and meet your conditions, the EA will also close those trades. But don’t worry, this doesn’t compromise its primary function.

Input Parameters:

Close Settings:

extern bool bAllClose = false; //Close All
extern bool bSymClose = false; //Close by Symbol
extern bool bMNClose = false; //Close by Magic Number
extern bool bTNClose = false; //Close by Ticket Number
extern bool PO = false; //Close Pending Orders
extern bool MO = false; //Close Market Orders
extern string TimeToClose="YYYY.MM.DD HH:MI"; //Local time to close

Close Parameters:

extern string SymClose=""; //Symbol to close
extern int MNClose = 0; //Magic Number to close
extern int TNClose = 0; //Ticket Number to close
List
Comments 0