- Subscribe to a trade signal straight from MetaTrader 5
- How to copy deals of successful traders in MetaTrader 5
- Instant notifications and alerts in MetaTrader 5
With regard to C++, even though MQL5 represents a sizeable proportion of C++, in my opinion it would be somewhat confusing to try to learn C++ on the path to learning MQL5. Far better to read the MQL5 help files from end to end, and learning from the now extensive set of example code.
The confusion in learning C++ at the same time as MQL5 would come from the many aspects of C++ not supported in MQL5, for instance, in order of how much I would like to see them introduced:-
- Operator overload (this is the C++ feature which I most often miss - it allows the development of much cleaner and easier to read code)
- Pre-processor directives such as #ifdef
- Parameter replacement in macro expansions like #define ADD(a,b) (a+b)
- Parameters in constructors (would avoid the frequently necessary Init() function call)
- Polymorphism
- Templates
- True pointers
Rosh - can you comment on whether any of these may be introduced in future?
Paul
- 2012.06.14
- Paul
- paulsfxrandomwalk.blogspot.com
With regard to C++, even though MQL5 represents a sizeable proportion of C++, in my opinion it would be somewhat confusing to try to learn C++ on the path to learning MQL5. Far better to read the MQL5 help files from end to end, and learning from the now extensive set of example code.
The confusion in learning C++ at the same time as MQL5 would come from the many aspects of C++ not supported in MQL5, for instance, in order of how much I would like to see them introduced:-
- Operator overload (this is the C++ feature which I most often miss - it allows the development of much cleaner and easier to read code)
- Pre-processor directives such as #ifdef
- Parameter replacement in macro expansions like #define ADD(a,b) (a+b)
- Parameters in constructors (would avoid the frequently necessary Init() function call)
- Polymorphism
- Templates
- True pointers
Rosh - can you comment on whether any of these may be introduced in future?
As far as I know:
- Not now, may be later (It's difficult to promise)
- Never
- Hardly ever (I think it won't)
- Not planned (may be changed ?)
- Present
- Never
- Never
Latin, and other languages, but programming language is very hard.
- metatrader5.blogspot.com
rodrigoarthur posted # :
Hi rodrigoarthur,
thanks for reading my blog. I think I was referring to C in the context of using Doxygen to document MQL4, which is a C derivative.
C++ is the Object Oriented superset of C. Because it is OO, there are a number of parts of C that are rarely used in C++ coding even though they are still available, such as the acquisition of memory (malloc). One can write in C++ in a procedural C style, but the best way to write C++ code is very different. If you really want to learn C++, then the book "The C++ Programming Language" by one of the original architects of C++, Bjarne Stroustrup, is an excellent choice, and very readable. For MQL5 purposes though you would need to skip over the differences I mentioned earlier.
Paul
and
https://www.mql5.com/en/articles/12
Your blog is very good
- 2009.11.09
- Paul
- paulsfxrandomwalk.blogspot.com
rodrigoarthur posted # :
Rosh,
I can buy more books, do you have some recommendention?
I have:
C++ How to Programam, Deitei, 3º Edition
C: The Complete Reference, Prentice-Hall, 3º Edition
Rosh,
I can buy more books, do you have some recommendention?
I have:
C++ How to Programam, Deitei, 3º Edition
C: The Complete Reference, Prentice-Hall, 3º Edition
Don't buy any more books, those are enough.
Personally I think there is no point learning MQL5 via a C++ book. Obviously the place to learn it is via the MQL5 book. Unfortunately it's not out yet, which puts u in a tough spot. Anybody who already knows C++ will have no problem learning MQL5 via the documentation only, but for u it would be extremely difficult.
My recommendation is to either wait for the MQL5 book to come out or just stick to learning C++ as a separate language (and forget about MQL5 for the time being, you can come back to it later).
One question, I noticed that there is a metatrade5 framework for python, can I get one for c ++, I am making a robot with high performance artificial intelligence but I wanted to develop it exclusively in C ++ because of Cuda, I know it is possible to use OpenCV in mql5 but did not have the performance that I would like, Python even having many artificial intelligence frameworks I do not like as much as C ++ in terms of performance, I found this link that has some guys that serve as a framework, but as they could see I am terrible with Human languages kkkk. I prefer the machine ones, so I have a little trouble finding this blessed framework for C ++.
Link of some frameWorks
https://github.com/topics/metatrader5
- RandomKori
- github.com
One question, I noticed that there is a metatrade5 framework for python, can I get one for c ++, I am making a robot with high performance artificial intelligence but I wanted to develop it exclusively in C ++ because of Cuda, I know it is possible to use OpenCV in mql5 but did not have the performance that I would like, Python even having many artificial intelligence frameworks I do not like as much as C ++ in terms of performance, I found this link that has some guys that serve as a framework, but as they could see I am terrible with Human languages kkkk. I prefer the machine ones, so I have a little trouble finding this blessed framework for C ++.
Link of some frameWorks
https://github.com/topics/metatrader5
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use