Errors, bugs, questions - page 2068
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
A rather interesting overview of the new WebAssembly technologyat https://habrahabr.ru/post/342180/
WebAssembly (WASM) — новый бинарный формат, позволяющий запускать код в браузере...
Applications of WebAssembly:
-Lower load time
-Higher computation speed
-Use C/C++ ready code
Considering the medium rumors about a possible web service for MQL code compilation,
there is a reasonable question about the feasibility of implementing the project of running custom Expert Advisors directly from a browser based on WebAssembly.
Put out the logs, it will make more sense. Both the Expert Advisor and the terminal.
Terminal tab
Tab Expert
No closing really takes place after Error 3. I have understood it.
Expert Advisor #1 is closing and the second one was trying to close the same position at the same time.
I fixed the working logic and there are no errors now.
BUT: The error number changes from #3 to #4108 when the parameters passed to OrderClose() inside the loop remain unchanged.
Why first error #3 and then #4108 is thrown? - This is the question that remains.
{If we look at the timings, then we have an attempt to close a locked order (in which case error 139 itself is not shown), but after it is closed (and the order is unlocked accordingly) we get error 3 }.
Why does the terminal not give us a specific error that the order is blocked and instead we get too general error 3 ?
BUT: Change error number from #3 to #4108 when parameters passed to OrderClose() inside the loop are unchanged.
Why is Error #3 first and then #4108? - This is the question that remains.
This is the version of the code where there was 1 OrderSelect, isn't it? Then 4108 is justified.
3 is when another EA closes a position and 4108 is when we try to close an already closed position.
This is the version of the code where there was 1 OrderSelect, isn't it? Then 4108 is justified.
3 is when another EA closes a position, 4108 is when we try to close an already closed position.
Right.
But why is error 139 not generated when trying to close an order that has already been closed?
After all, we rather have the situation of error 139. Isn't it so?
Incorrect error text
Correct.
But why doesn't the error 139 come out when trying to close an order that has already been sent to close?
After all, we rather have the situation of error 139. Isn't it so?
I do not know. But it cannot be called a bug either.
I don't know. But it's hard to call it a bug either.
If you look at the terminal log, error message 3 is generated after the position is closed, not when the lock on the server should have been detected.
The error message 139 could have been shown almost 0.5 seconds earlier. All this time, the Expert Advisor "hangs" to get error 3 after the order is closed.
And by the way, error 3 Invalid Parameters is in the terminal log and 4108 only due to its output and only in the EA tab. Looks like 4108 is client side processing.
Just want to know/understand the logic in order to put it in the code rather than fumbling with the scientific gauge method... )
In what other situation would one get an error 139 than this...?
What better situation to get an error 139 than this...?
When a pending order/SL/TP is triggered or a position is closed by a stop out (also on the server).
I don't know about 4108.
But again, I see no reason to look into it - if 2 EAs simultaneously give an order to close, one of them will definitely have an error (what difference does it make?).
Processing is very simple - do OrderSelect and check OrderCloseTime.
wtf?
from the moderator:
Unfortunately, due to a technical glitch, the description text has been deleted. Please write it again and send the product for verification.
We apologise for the inconvenience caused.
It's not just an inconvenience, it's a pain in the neck a few times (each time - a 10 day wait), and then delete and say: oops, sorry, we erased, somehow restore it yourself, then wait another 10 days. - And when I try to do it the site crashes...
What the hell is this? What kind of glitch has to happen for this to get lost? that there's no history to recover? The description message has been in storage for a few days.
Why didn't the message from the moderator pop up this time?
I know for a fact that this wiping problem doesn't happen one time. This alleged glitch, in fact it is not a glitch (Probably delayed), because it happens not only to me and not at the same time (the problem exists for more than half a year)! - Please comment...
And please fix it. If you can't, hire me. I'll do it in a week, for 2,000 euros.
What a fiasco.
In fact, will they restore the erasure? Half my correspondence with the moderator is gone. The messages from the forum are gone. And the moderators have deleted messages that have gone blank.
Why is there no maintenance mode? - It is better to say in such an order: first mode is activated, then the work is in progress, then mode is restored.
As soon as I posted a message, the site is down. I decided to refresh - the site is down...
This is no way to work - well it's not serious...
In a new comment to the moderator I duplicated the description that was missing so as not to lose any more.
what to do with the product? send it by email? attach it to the comments? or try again and wait 24 hours?