MQL5: Validation :-( I've already racked my brain to find out what it is and how it's solved. - page 2
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
Other messages on margin shortage are coming.
I tried as described in the error to sum up all lots for the instrument in a given direction, taking into account pending orders and not to give a command to open, if exceeded taking into account the open order, to no avail.
The error is the same, my debug messages are not displayed in the report log during validation I don't know how to catch and debug this error or how to emulate this error in my terminal
Error.
....
The error is the same, my debug messages do not show up in the report logs during validation I don't know how I can catch and debug the handling of this or how to simulate that error in my terminal...
Try to open a position with a very large volume. See if your EA will catch this error or not.
Other messages on margin shortage are coming in.
I tried as described in the error to sum up all lots for the instrument in a given direction taking into account pending orders and not to give a command to open, if exceeded taking into account the open order, it is useless.
The error is the same, I don't know how to trace and debug this error or how to emulate it in my terminal.
You can check Margin Level. Let's say if it's less than 5000% then no trades will be executed.
Mistake.
Resolved.
The product then passed the checks successfully.Resolved.
The product was then successfully tested.:)
Oh, by the way, note in your calculations thatSYMBOL_VOLUME_LIMIT can be "0.0".
So as not to get caught in the check:
Oh, by the way, note in your calculations thatSYMBOL_VOLUME_LIMIT can be "0.0".
So as not to get caught in the check:
About this message, something is wrong:failed instant sell 3.30 EURUSD at 1.14380 [Volume limit reached].
I had a netting account and no limit or pending orders. All the checks were present.
Now I checkedSYMBOL_VOLUME_LIMIT, irrespective of whether there is an open order or not, it always returns 0. I always have one position (since I am a netting type) and this message only appears when I increase the lot and only when I auto-loop.
About this message, something is wrong:failed instant sell 3.30 EURUSD at 1.14380 [Volume limit reached].
I had a netting account and no limit or pending orders. All the checks were present.
Now I checkedSYMBOL_VOLUME_LIMIT, irrespective of whether there is an open order or not, it always returns 0. I always have one position (since I am a netting type) and this message appears only when I increase my lot and only when I am autotrading.
If you work on some server, it doesn't mean that all servers around have the same settings :) .
If you work on a certain server, it doesn't mean that all servers around have the same settings :) .
And so I check on different servers, about 5-6, where there are different execution types. Here on this post the execution type is Instant.
But that's not the main thing. Autovalidation gives little information, and it makes it difficult to find an error. And there is always a way around it.