
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
Exactly MT5...
They say only MT4 is the problem.
Maybe it's a sabotage to switch to MT5...
If it helps anyone, here's how I passed the validation. EA without stops and order modifications but on all timeframes.
Validator gave error 131 (wrong lot) and no trades. This is my first EA, so there were probably all the mistakes I made.
First I've added all English comments to check trading functions, i.e. if EA does not trade, it should output error in Print().
I also added check for free margin and removed ExpertRemove() but it didn't help, errors still remained the same.
I made several other changes at once, and I do not know which of them helped.
I reset errors at the beginning and at the end of the Expert Advisor, checked quotes for all TFs
and lot calculation is recalculated for all cases, if the step is (0,1), (0,01) and even (0,001)
as a result i can say i managed to fix everything fast, only 2 days and about 10 tries
1. After recompiling old EA from Market and trying to upload to the site, the error "there are no trading operations" appeared:
2. Checking the availability of quotes for all TFs did not show any error (I used division by 0).
3. Then I started to check the volume of trading operations, but all the same time I got the error "there are no trading operations".
4. Then changed the number of lots in all OrderSend to SYMBOL_VOLUME_MIN - "there are no trading operations"
5. Clearly something is wrong with the validator tester. And tried to add position opening in OnInit():
and this is what I got (by the way, this is the first time I've seen it so detailed in the validator):
The error "there are no trading operations" is already clear here. If we have a balance of 1.00, we obviously cannot open an order with 0.20 (SYMBOL_VOLUME_MIN). Checking the balance in the code does its job and does not allow placing such an order and displays a print in the journal saying there is not enough balance (only the validator does not see it).
How do you think the validator is OK?
We will wait until the validator is fixed.
Free margine doesn't bother me, I'm sick of Honduras.
Difficult? I'm talking about expression.
I found the problem, by default I have a limit on the maximum lot of positions in the input parameters.
That's why it didn't allow opening positions if SYMBOL_VOLUME_MIN in the validator is 0.20. You cannot set such a small limit on the maximum lot of positions by default for the validator.