A comprehensive list is available at http://www.fxcodebase.com/documents/Ind ... rrors.html but the message that is returned is a text message and in general this will stop a strategy rather than allowing the strategy to parse the error.
For example if a limit entry order is placed that is too close to the current value (or the wrong side), you get the message "The value of the rate is incorrect. It must be a number < than 1.12345" or whatever.
I have checked the returns from
- Code: Select all
success, message = terminal:execute(OPEN_REQUEST, valuemap)
which would be the sensible place but there are only the two variables populated - the boolean success and text message. There are no further parameters to AsyncOperationFinished after message2.
It would be useful to know that this is error 20105 and what the max or min value is because the price may have changed while the order was being prepared.
Any ideas?