Effortlessly Close All Your Orders in MetaTrader 4

Mike 2011.07.27 17:20 22 0 0
Attachments

Description:

Managing multiple orders can be a hassle, especially when you have a mix of open and pending trades. That's where this handy tool comes in! With this feature, you can automatically close all your orders in one fell swoop.

Let’s say you've got 20 pending EUR/USD long and short orders along with 20 open ones. If you're looking to tidy things up and close them all at once, here’s how you can set it up:

  • CloseOpenLongOrders = true;
  • CloseOpenShortOrders = true;
  • ClosePendingLongOrders = true;
  • ClosePendingShortOrders = true;
  • JustCloseSpecificMagicNumber = 0; // Setting this to 0 will close all orders with any Magic Number. If you want to close just specific Magic Number orders, input your unique number here.
  • CloseAllSymbols = true; // When set to true, this option will close all orders matching your criteria. If set to false, it will only close orders for the symbol you’re currently working with.
  • JustCloseOrdersWithinTheRange = false; // If you set this to true, it will only close orders whose open prices fall between the specified CloseRangeHigh and CloseRangeLow.


List
Comments 0