Errors, bugs, questions - page 1179
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
Hi. I locked the EA in OnInit function and it must be the reason why the terminal hangs when I turn off the EA and change timeframe (timeframe does not change after the brakes). So my question is: Is it caused by hangs? If so, is it corrected if I move the algorithm to OnTick? If no, what would help?
PS: The loop has a function Sleep, so that the terminal is not overloaded. The input fields are read in the loop.
The loop must go like this: while(true){}? Yes?
It should go like this: while(!isStopped()) {}. But that would cause another issue - it would exit for some unknown reason. It should be done at the start. If we need to speed up startup, we can call startup from init.
It's better to not loop at all, now there is a timer, we should use timer.
If you need to speed up the start, you can call start from the init.
And how would that be better than a looped init? Nothing.
Try reading my entire post without skipping a single sentence, it's all there.
Thanks for the message, fixed.
Ok, and here's a follow up:
When importing this library we always get: Read Size = 0
You need to seriously deal with importing functions, because there is a bug upon bug. In some cases variables spontaneously change values, etc. In short, it is completely unusable.
Honestly, I read it. If you're referring to the last sentence, I agree. And the second one, I don't agree, so I asked a question.
Actually, there were only seven sentences in that post. The second sentence was "Yes?"
Either way you have the right to agree or disagree, freedom of religion hasn't been abolished yet. Maybe you don't agree with the fact that the earth rotates either, please.
Ok, and here's a follow up:
When importing this library we always get: Read Size = 0
You need to seriously deal with import of functions, because there is a bug on bug. In some cases, variables spontaneously change values, etc. In short, completely unusable.
Hello. I downloaded the advisor https://www.mql5.com/ru/code/8087 - but it doesn't work, if I try to compile it it writes about errors. Can someone please explain why. Thank you in advance!
Because there have been big changes in the MQL4 language since then.
And is it difficult to fix it to make it work?