Discussion of article "The checks a trading robot must pass before publication in the Market" - page 17
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You are not calculating your margin requirements properly. Use the OrderCalcMargin to properly adjust the order volume, or even not place the order at all, if the margin requirement is higher than the allowable minimum volume.
This is discussed in the second point of the article ... Insufficient funds to perform trade operation
Hi,
Can anyone help to fix the validation error? The EA can work on live trading account with trades opened & closed, but it cannot pass this. Please advise on what codes to be added, thank you.
Hi everyone, any idea why I'm getting the following, "no trading operations" and "tester takes too long time"? I've already loosened my settings so that trades get triggered. Also I don't actually encounter issues when I'm using strategy tester, GetLastError() always gives me "0" return. Is the validation against historical prices like in tester or randomly generated pricing?
Seek and ye shall find. Last clue: warrant check.
Do you mean the OrderCheck() function? The documentation says that it checks if there are enough funds for the transaction. I would also like a function to check market close, including for MT4
Do you mean the OrderCheck() function? The documentation says that it checks if there are enough funds for a transaction. I would also like a function to check market close, including for MT4
Not only sufficiency of funds. Here for example
10027
TRADE_RETCODE_CLIENT_DISABLES_AT
Autotrading is prohibited by the client terminal
Also wrong price in the request,
wrong stops and many other things, and as for the error 10018, yes, I hurried with the answer and did not check. And it turned out to be anything but 10018....
As per the Market product rules, you are not allowed to restrict or limit your EA to a single symbol. Your EA must work for all symbols, even if its intended use is for a single symbol.
Hello,
I was submitting a new version 1.28 of my EA and it is not get validated with "not enough money error", first I found it weird because I implemented the CheckMoneyForTrade function since version 1.0, and I didn't even get the error before. I also did my test before submitting the EA, and it is conclusive, it is not taking a trade if there is no free margin to cover it. Any idea?
The Error I am getting:
Log from my testing during same period as the above, no orders are place when no money/margin detected
Any one else in this case? Thanks in advance.
Best Regards
The Error I am getting: Log from my testing during same period as the above, no orders are place when no money/margin detected \ Any one else in this case?
One can clearly see in the your first image, that before the trade, the available free margin was -10.36. If your code did not correctly identify that, then the problem is in your code.