Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1086

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
You read the wrong example.
I've read it (of course it's interesting to understand it), but again, I don't know what it's for. And you can't do this kind of ahhing with a counter here, but do you have to write such expressions?
What does error 4024 mean as a result of ChartApplyTemplate()?
What is the Internal error?
And sometimes it works without error, sometimes 4024 and no template is applied. All the same - for the same template.
When I try to read a text file in MQL5 written from MQL4, I get a Chinese string.
Although everything is actually written in Latin characters.
The file and its output is shown on the screenshot:
Why is it so and how can it be fixed?
I've read the whole thing (it's interesting to understand it, of course), but again, I don't know what it's for. And you can't do this kind of ahhing with the counter here, but you have to write expressions like this, don't you?
Just write it that way:
It'll be the same.
When I try to read a text file in MQL5 written from MQL4, I get a Chinese string.
Although everything is actually written in Latin characters.
The file and its output is shown on the screenshot:
Why is it so and how can it be fixed?
apparently the file is written in unicode, experiment with the flags
there's even a whole article searchableat https://www.mql5.com/ru/articles/2720#z10
Hi @ Artyom Trishkin,
Tell me, please, how can I understand if it is a hedge account or a net account?
I know in MQL5:
But I do not know how to understand it in MQL4.
Please help me.
Hi @ Artyom Trishkin,
Tell me, please, how can I understand if it is a hedge account or a net account?
I know in MQL5:
But I do not know how to understand it in MQL4.
Please help me.
In MQL4, the type of account is always a hedge.
In MQL4, the type of account is always a hedge.
Ouch. I didn't know. I'm new to MT4. I tried MT5. Still learning. Thank you for your help.
Question on testing (see picture from the tester)
- we open a Sell order (green arrow in the picture), it has a Take Profit of 1.10439;
- we add a pending Sell Stop order (yellow arrow in the picture) with the price 1.10441;
Question, why was not take profit at 1.10439 and Sell stop (red arrow) at 1.10441 triggered?