@Thong Chee Sing#: Out of curiosity, how would the Validator react, says for example, when EA detected that there is "insufficient-funds-to-perform-trade-operation" issue?
Your EA should not even attempt to trade if there are insufficient funds. Calculate and check your risk and margin requirements beforehand.
Also, use OrderCheckbefore attempting to send out an order to make sure there will be no other problems.
Thong Chee Sing #: EA will only keep "printing" error message on every tick. Without rectification, no order will get to be sent.
Keep track of your prints, and don't repeat redundant log messages.
Here's a concise blog wherein Stanislav Korotky posted a defensive workaround for product validation. He explains that the MQL5 Market validator uses the logic of the MT5 tester, and how to exclude non-tester-compliant code from executing during validation. If your code has genuine bugs in it, you obviously should not use the workaround because it will only cause problems with your customers in the Market. If however your code simply has a dozen or so moving Objects such as floating price labels, it can be handy.
If you're distributing some products for MetaTrader 4/5 via the Market, you probably know that a special "welcome" stage of automatic product validation has been added recently by MetaQuotes on the
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Your EA should not even attempt to trade if there are insufficient funds. Calculate and check your risk and margin requirements beforehand.
Also, use OrderCheck before attempting to send out an order to make sure there will be no other problems.
Keep track of your prints, and don't repeat redundant log messages.
Here's a concise blog wherein Stanislav Korotky posted a defensive workaround for product validation. He explains that the MQL5 Market validator uses the logic of the MT5 tester, and how to exclude non-tester-compliant code from executing during validation. If your code has genuine bugs in it, you obviously should not use the workaround because it will only cause problems with your customers in the Market. If however your code simply has a dozen or so moving Objects such as floating price labels, it can be handy.
Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market - Other - 11 January 2017 - Traders' Blogs