Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1109
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
Why can't you share the code?
I'm getting an error: DLL usage detected
Please let me know how I can share the code.
I saw this: https://www.mql5.com/en/code/7673
And my code is similar.
Hello. What am I doing wrong?
There is a histogram indicator. It shows the difference in the number of ticks up and down.
I am trying to use indicator values on 1, 2 and 3 bars in my EA.
In the tester, I get an error: tickbs EURUSD,M1: array out of range in 'tickbs.mq4' (26,19)
Thank you.
Hello. What am I doing wrong?
There is a histogram indicator. It shows the difference in the number of ticks up and down.
I am trying to use indicator values on 1, 2 and 3 bars in my EA.
In the tester, I get an error: tickbs EURUSD,M1: array out of range in 'tickbs.mq4' (26,19)
Thank you.
again and again.... A class is first and foremost a data type, like int, double...
You want an array of data of that type? - declare an array, if the array is dynamic, then resize it, then initialize EVERY ELEMENT with the necessary data - you need pointers, then initialize them with pointers to the class, you need class instances, then each element of the array will not be a pointer, but the object itself
that's the essence of OOP, any class is first of all a user data type.... i don't know how much to say about it, but the methodology is the same as with a regular data type, but what you will write inside the class is a personal matter, but the initialization of a new instance will always start with a constructor, and what constructor - by default, with parameters or without parameters - you can choose how to initialize the object...... ugh, but still read books, there is no way to do it in this way
Please advise what to read about OOP with examples for MT4. Or in general, with examples. The syntax and logic of the language is difficult to follow, and the language manual is not always clear to the end.
Please advise on what to read about OOP with examples for MT4. Or with examples in general. The syntax and logic of the language is difficult to grasp, and the language manual is not always completely clear.
Go to the Articles section here and browse - there is a lot on OOP, including for beginners.
Please go to the Articles section here and browse through them - there are a lot of articles on OOP including those for beginners.
Thank you. That's helpful. Someone might need it.
PLO
https://www.mql5.com/ru/articles/357
https://www.mql5.com/ru/articles/703
https://www.mql5.com/ru/articles/116
https://www.mql5.com/ru/articles/70
https://www.mql5.com/ru/articles/351
GA
https://www.mql5.com/ru/articles/55
MQL4
https://www.mql5.com/ru/articles/1483
I liked it too)))
https://www.mql5.com/ru/articles/1499
Also a question, when you click on the articles, 18 pages of articles and the title appear:
Articles on Programming in MQL4 and MQL5
When I click on the second page MQL4 disappears. When I press on MT4, 6 pages will appear. And they are not in the initial selection.
Buffers are indexed from scratch.
Thank you.
when clicking on the second page of MQL4 disappears. When you click on MT4 6 pages appear. And they are not in initial selection.
MQL4 and MQL5 are 99% identical (without SQlITE, OpenCL, DirectX), so you can feel free to read articles in MQL5, but considering that in terminals 4 and 5 the work with orders is different and there are nuances of working with timeseries
Since MQL4 and MQL5 are 99% identical (without SQlITE, OpenCL and DirectX), you may read the articles on MQL5, but taking into account that in terminals 4 and 5 the work with orders is different and there are nuances of working with timeseries.
This is not the case, there are no articles on mql4 in the initial selection. This is misleading. By the way the same logic is in kodobase. But the headers just don't change there. I had to use the gut method to figure it out). Thank you, let's read)))