Close Orders

0
(0)
Name:
Close Orders
Author: robbieruan (2011.07.27 10:20)
Downloaded: 9854
Download:
Close Orders 1
 Close Orders V0.02.mq4 (6.5 Kb) View

Description:

This is a tool for you to automatically close all orders when you have dozens of pending orders and open orders.

For example, if now have 20 pending EUR/USD long and short orders, and have 20 open ones, and you now want to close them all, you should set as the following:

  • CloseOpenLongOrders = true;
  • CloseOpenShortOrders = true;
  • ClosePendingLongOrders = true;
  • ClosePendingShortOrders = true;
  • JustCloseSpecificMagicNumber= 0; // if set JustCloseSpecificMagicNumber to 0, will close all MagicNumber orders; if just want to close specific MagicNumber orders, set JustCloseSpecificMagicNumber to you magic value ;
  • CloseAllSymbols = true; // if set CloseAllSymbols = true, it will close all symbols satisfying the settings, if set CloseAllSymbols = false, just close the symbol you are applying this EA to;
  • JustCloseOrdersWithinTheRange = false; //if set JustCloseOrdersWithinTheRange = true, just close orders whose open prices are within the range CloseRangeHigh to CloseRangeLow.

Close Orders 2

Close Orders 3

4 comments  To post a new comment, please log in or register

Hello!

I need that my EA close all trades and stop to work at 23:30 hrs. server time and work again at 24:00 hrs.
Do you know how to do it?

Thank you!

26.08.2013 16:09 sara01

thank's
07.06.2013 02:11 emf4hrudin

Works great, absolutely essential tool, thnks!
15.10.2012 09:55 petdane

nice work....

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.