Yep, but the critical part, IMO, is missing . . . for example, error 130 . .
Stops are too close, or prices are ill-calculated or unnormalized (or in the open price of a pending order). The attempt can be repeated only if the error occurred due to the price obsolescense. After 5-second (or more) delay, it is necessary to refresh data using the RefreshRatesfunction and make a retry. If the error does not disappear, all attempts to trade must be stopped, the program logic must be changed.
I'll go through a little later and fix the broken links.
Yep, but the critical part, IMO, is missing . . . for example, error 130 . .
I'll go through a little later and fix the broken links.
Yes, but you would have thought that the documentation re GetLastError() would have a link to the error codes, but the link only details codes of 4000+
Unbelieveably typing "error codes" into the documentation search does not take you to the list of error codes
Yep, but the critical part, IMO, is missing . . . for example, error 130 . .
I'll go through a little later and fix the broken links.

Yes, but you would have thought that the documentation re GetLastError() would have a link to the error codes, but the link only details codes of 4000+
Unbelieveably typing "error codes" into the documentation search does not take you to the list of error codes
I noticed that this is no longer present in the current mql4 documentation so I though I would add the "old" documentation here for future reference . . .
Trade Server Return Codes https://docs.mql4.com/en/constants/errorswarnings/enum_trade_return_codes
Yep, but the critical part, IMO, is missing . . . for example, error 130 . .
Stops are too close, or prices are ill-calculated or unnormalized (or in the open price of a pending order). The attempt can be repeated only if the error occurred due to the price obsolescense. After 5-second (or more) delay, it is necessary to refresh data using the RefreshRatesfunction and make a retry. If the error does not disappear, all attempts to trade must be stopped, the program logic must be changed.
Got it, not the code but the text.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I noticed that this is no longer present in the current mql4 documentation so I though I would add the "old" documentation here for future reference . . .