[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 787

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
If you are starting from scratch, which language is best?
hello....
i decided to start learning mql4 (i'm a complete beginner in this business) but i found the mql5 language .... can someone tell me what the main differences are.... and if i'm starting from scratch, which language is better to use? .... thanks for answers
How to make the bar numbering not change when scrolling, i.e. to link the numbering to the window
How to make the bar numbering not change when scrolling, i.e. to link the numbering to the window
If you want to find the bar you want, save the time of the bar, and then you can use the function to find out its new sequence number
Yes, I made an indicator with bar numbers. I thought there might be another way.
So my question is: in MQL5 we can unite all functions of lot calculation, for example, into one class, all trawl variants into another class, etc., i.e. group all functions for similar actions into one class? And then what are the other advantages of using classes?
You can do it in MQL4 by combining some semantic functions in one place. What prevents you from creating a library file such as LotCount.mqh and putting all known methods of lot calculation into it. Or for example Trailing.mqh with trailing functions?
This can be done in MQL5 and MQL4. And you don't have to use OOP. Here is an example of such a library https://www.mql5.com/ru/code/7108
Of course, you can also use OOP for the sake of OOP itself and for the "practice". But that's another story.
I was reading articles on MQL5 yesterday (I especially liked the article called "Writing EAs in MQL5 using object-oriented approach"), and one question arose. In MQL4 we are writing, for example, money management - one function (or more, depending on complexity), signal receiving function, order opening function, trailing stop etc. So my question is: in MQL5, can we group all the lot calculation functions, for example, into one class, all trailing stop options into another class, etc., i.e. group all functions for performing similar actions into one class? And then what are the other advantages of using classes?
Yes, all this is possible, but even now you can take all variants of trawls and lot calculations and group them into one library. In general, classes and structures are needed for more convenient manipulation of some objects, they do not give anything super-natural or new. As they say, the processor only understands assembler and there are no classes there ))