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

Mike 2015.12.02 21:48 63 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:

externbool bAllClose = false; //Close Allexternbool bSymClose = false; //Close by Symbolexternbool bMNClose = false; //Close by Magic Numberexternbool bTNClose = false; //Close by Ticket Numberexternbool PO = false; //Close Pending Ordersexternbool MO = false; //Close Market Ordersexternstring TimeToClose="YYYY.MM.DD HH:MI"; //Local time to close

Close Parameters:

externstring SymClose=""; //Symbol to closeexternint MNClose = 0; //Magic Number to closeexternint TNClose = 0; //Ticket Number to close
List
Comments 0