I have thought about re-writing the OrderReliable suite to allow two additional defaulted paramters to be passed in. The first, errorCode, by reference so the client code can get a handle to the error and the second, a verbose variable, that when false, the library functions don't make a peep unless there is actually a problem. Now they chatter too much - "trying this", "apparently successful", blah blah lol
Thanks for pointing that out though.
Viper
Thanks for pointing that out though.
Viper
DislikedJust FYi, in your code, you cannot call GetLastError(). Here is a note in the OrderReliable code:
// OrderReliableLastErr()
// Returns the last error seen by an Order*Reliable() call.
// NOTE: GetLastError() WILL NOT WORK to return the error
// after a call. This is a flaw in Metatrader design, in that
// GetLastError() also clears it. Hence in this way
// this library cannot be a total drop-in replacement.
-FrozenIgnored