Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1621
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
Valery, pay attention to the line
in my code... I've been using hex functions for a while now, but a similar function
gave a stale 0.
So, think where the cockroaches are... And since mt4 refuses to support it, you can assume that it will never be fixed...
Everything else has to be checked. I haven't bothered with it for so long that I don't even want to remember.
Hmmm... The time is emulated) I'll have to get into it)
Result
ZZY works on getting bar data from other characters)))) But the story needs to be loaded specifically, going outside the array only so on an unloaded instrument or requesting data from a distant bar.
ZS ZS
Really works!!! I had to upload the quote archives of all !!! necessary currency pairs and it works on a minute from June of 21, on the older and later starts)
Can you suggest where I can learn MQL5 (in Russian)?
Hello. Trying to find the opening price of the penultimate order, but it works fine if there are no Sell orders, Can you tell me what the error is? I think it counts them too. MQL4
Hello. Trying to find the opening price of the penultimate order, but it works fine if there are no Sell orders, Can you tell me what the error is? I think it counts them too. MQL4
Thank you. Re-checked, still counts Sell too(
Thank you. Re-checked, still counts Sell too(
Probably because you're subtracting from the total number of orders
and only look in
Thank you. Re-checked, still counts Sell too(
Unprint before the second if and inside the second if the number, ticket and order type.
There are two constructors. When I call the first one from the second one and set values for the variables above, when I return from it to the second one these variables go to NULL.
But if I just copy the code from the first constructor to the second one and don't call it, everything works. What is the problem?
But if I just copy the code from the first constructor to the second one and don't call it, everything works. What is the problem?
The problem is in MQL.
In such situations, I put initialization in separate method which I pull from different constructors.
---
There is also a problem with calling the parent constructor.
Print before the second if and inside the second if the number, ticket and order type.
Thank you. I'll check it out later today.