Close all multi currency open orders and cancel pending orders according to various scenarios. Slippage for open orders is calculated for each currency. Choose only one scenario per visit, the script processes the first menu item selected.
21 comments:123
To post a new comment, please log in or register
Mico, Execution of scripts does not depend on incoming quotes. Scripts complete
all their work independently in one go except if there is an error (refer to "Program
Run" in the dictionary on various methods to stop it). Take care.
Rich, Deleting the line with "#property show_confirm" in the following
script will make it faster but be very careful as you will not be reminded to confirm.
Take care.
sxTed wrote:
Rich, You could use the "Load" and "Save" (from an Expert Set
file) options under the "Inputs" tab, but I think the programmers of
MT4 included them to modify many parameters at the same time, whereas in your case
for loading the value of just one parameter will require extra key strokes. Alternatively
copy just the code required for the "CloseOpenOrders" option to run into
a new script.
I realize that your reply probably makes imminent sense but to one who is lacking
any software coding skills, it reads like Sanskrit. Is it possible to speak slower
using real short words for this programming-challenged seeker of Forex trading
tools?
I'm new to the Meta Trader platform and not at all conversant at the MQL4 language.
Heck, I was proud of myself for figuring that there might be a way to go beyond
the basic tool set in Meta Trader 4 and then finding this website and then finding
your script and then figuring out how to incorporate that script into my trading
platform and then getting it work with absolutely no instructions. Meta Trader's
help files and support really suck if you don't already know how to do something.
Hey, and thanks for your programming skills, willingness to share and quick reply.
Whew - my brain hurts. Rich
Rich, You could use the "Load" and "Save" (from an Expert Set
file) options under the "Inputs" tab, but I think the programmers of
MT4 included them to modify many parameters at the same time, whereas in your case
for loading the value of just one parameter will require extra key strokes. Alternatively
copy just the code required for the "CloseOpenOrders" option to run into
a new script.
Thank you for the Close Orders script. I have been using it for awhile, especially
to close multiple open orders and I really appreciate its features.
Would it be possible to add another feature that would allow the script to 'remember'
the previous settings? Many times with a fast moving market I want to be able to
quickly open your script and always use the same settings, ie: CloseOpenOrders:
true. But I am slowed down by the need to make the same multiple mouse moves and
clicks just to do the same thing each time.
Perhaps it would be possible for there to be a setting such as "Keep these
settings".
Thank you Rasoul for the compliment and of the idea of adding error handling code
is very good. Matthew Kennel certainly has been busy. Version 2 of _CloseOrders
will #include a library of functions with error handler.