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
Hello all! Who was able to bypass the check with a balance of $ 1, I have in my code is check if not enough money trade operations do not perform. Accordingly I get the following validation log
Where is it written that with a $1 balance an EA is obliged to open trades? With 500:1 leverage, the margin requirement for the minimum lot 0.01 on major pairs is at least $2; with 1000:1 leverage, it must be at least $1; and the stop-out will be almost instantaneous because of the spread. I think it is absurd to run an EA with such a balance, even in the tester.
it turns out to be this condition, I remove it and the validation is successful
{
rezult="Check in the terminal settings permit automated trading!";
return(false);
}
....
it turns out to be this condition, I remove it and the validation is successful
{
rezult="Check in the terminal settings permit automated trading!";
return(false);
}
It seems to be a necessary condition, but it's not right without it either...
What guys, does anyone have any information on how to solve the problem with this.
What guys, does anyone have any information on how to solve the problem with this.
start removing checks in the code for trading one at a time, that's how I found my problem was in this condition
The other day I posted a version of EA for mt5 with such a condition, the test passed the first time....
I did, according to the market robot should be tested with both clicked and unswitched button to allow trading by Expert Advisors, I just prescribed this check in the code so that in case of testing in the tester this robot was not checked and the robot passed the test in the market.
Good afternoon, could you tell me what exactly you put in the code for this? Thank you in advance.
Thank you for your reply.
Now I know I'm not the only one who doesn't understand it :)
You're not the only one. I have exactly the same questions about the testing algorithm. In addition, there may be robots that do not work in principle without installing a number of indicators on the chart. When tested on the market this robot will definitely be rejected.
All of the custom indicators must be included into the body of the Expert Advisor as a resource using #resource - the Expert Advisor in the Market should not require the additional installation of additional indicators, but must be delivered fully assembled.