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

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 slight correction... There won't be a critical error, just the boolean OrderSelect will return false... and that's all... But of course it's better to avoid... Because if you don't use the features of the code correctly, it's hard to predict the potential pitfalls...
Yes, of course. But only when using regular, terminal arrays, which are not visible to anyone and are accessed by regular functions, which have overrun protection and return error flags. I was referring to working with my arrays, after all:
But as soon as one realizes that one should cache data from regular arrays and starts working with one's own arrays, that's where one needs to get accustomed to handling arrays carefully.
And everything that people have been doing lately, using their own data caches (historical and market ones) is much easier and faster - there you can sort as you want and select whatever you want, and get new arrays with only required data, and sort them as you want and select whatever you want from them.
But this is the next level of using possibilities of the terminal and its API - MQL.
The first order is given magic = 1 by default. Then a loop is started:
Start of iteration magic = 1 unique = 0, at the end (when there is already one order with magic = 1 ) magic is still 1 and unique = 0
Second iteration magic = 2 unique = 0, at the end, magic = 2 and unique = 1 (no match) and the retorn is assigned to the 2nd order magic = 2.
The third should be the same...
I wanted to print the whole process, but something went wrong:
h ttps://www.mql5.com/ru/articles/5687
Can you please tell me a trick (maneuver) to make the terminal remember several values?
The terminal remembers everything anyway... the quotes archive!
And for an Expert Advisor or indicator, you need this
Makar, thank you for your reply. Unfortunately, I have not mastered this page so far. How to solve this problem through the arrays, I do not understand.
Makar, thank you for your reply. Unfortunately, I haven't mastered the above page yet. I don't understand how to solve this problem with arrays.
I'm not good with arrays yet...
Maybe one of the experts can help you.
Otherwise we get nonsense in the topic, instead of consultations on the platform and algorithms, primary schools level dialogues - where to put ; what is a loop and why indexes are 0.
For example, there is a site intuit.ru - there are courses on C and algorithms, take your time, a couple of weeks at most. At the same time you may get a paper :-)
The best motivation to study something, when there's a need. I used to try to learn C, C++ from textbooks, but I don't know where the motivation to do the tasks should come from, for example: convert degrees Celsius to Fahrenheit, etc. But when there is a real need, as I have, to write an EA, it's a different matter. I've learned more in a week as needed: classes, structures, etc. At the same time, I also had to learn and apply git. Now I'm looking at mastering some kosher editor such as vim or emacs.
P.S.I have a video course on mql4, but I don't even have the energy to watch it, because it doesn't write the right owls for me. Yes, the ideal course is the one where they write your EA.
I've got a video course on mql4 but I even don't have enough strength to watch it, because it's not written by those owls, that I need. Yes, the ideal course is the one where they write your EA.
How creepy... What are "those" owls? Not Chernobyl? As far as I know, owls can't write. Not only that, they don't have a clue about it at all.
How creepy... What are "those" owls? Not Chernobyl? As far as I know, owls can't write. Not only that, they don't have a clue about it at all.
Let's read it. I don't know why the magician needs to be encrypted, serial numbering is enough for me. The option of assigning the biggest magician + 1 is fine, but I need to figure out why my code doesn't work.
Good evening, help me to rewrite a code section in MQL4 for MQL5 compiler, if it's not difficult, thank you!