- What OOP code can do that procedural code can't ?
- How to Start with MT5, a summary !
- How to start with MetaTrader and forex, the beginning
I sucks at OOP
maybe my EA are too simple to the extent that did not requires OOP
Your poll lacks an option for those that prefers nothing. I mean, this is not only a matter of preference, that makes no sense to use OOP for a little script or even an simple EA. OOP always add work and is only advantageous for complex project and code re-usability (same code used in several projects). Complex is not the same is large, if someone has a large project but relatively simple this does not automatically mean that he must use OOP.
You can see the great potential of OOP with MQL5 Wizard developped by Metaquotes, it would be very difficult to develop such a tool with procedural programming, although it is feasible.
- 2011.01.11
- MetaQuotes Software Corp.
- www.mql5.com
Well I taught thats why I included the option to just see the results ;). From what I've read about the subject. Allot of programmers would say "it depends". How am I suppose to pull upon that? :) Any_Hoo its intended to make people think about a preference in general. Ps: from what I understand about java (just example) its all oop; how does someone create a small program in java?
The thing is we are all constantly learning and trying out new stuff so I do not see how we can make headway without OOP.
Having said that a procedural style language like SQL could go someways in improving mql5 especially if we start storing symbol price data in databases... probably in MQL6... :-)... This would not only offer more security to one's trading system but the issue of history price quality and the liability that comes with it, could be resolved.
I would Prefer Object-oriented programming, or OOP, is an approach to problem-solving where all computations are carried out using objects.
Source:http://en.wikipedia.org/wiki/Object-oriented_programming
I would Prefer Object-oriented programming, or OOP, is an approach to problem-solving where all computations are carried out using objects.
Source:http://en.wikipedia.org/wiki/Object-oriented_programming
It depends what experience you have. If you have only the procedural programming experience, then do not start with OOP in MQL5.
If you have been coding JAVA or C++, then you would not like going back, because even simple OOP design cannot be ported to the procedural development.
The trouble with OOP in MQL is that it lacks implementation of system support packages. I mean the very basic patterns, like sets, iterators, comparators, maps, vectors, event listeners etc. So the newcomer with no OOP experience has nothing to start with, and even the advanced programmer has to spend hard times with implementing the very basics. It may take months to have a good basic package, and every one would have it completely different, therefore incompatible.
As the result - you will probably never see a good and complete OOP example for the MQL, as nobody would want to share his/her system framework, and also every one would have it very different and mutually incompatible.
Effectively Java is all OOP, I thought we was talking about MQL5. However the implementation of OOP is not the same for all languages, with MT5 it's not mandatory, and if we are talking about a learning curve, I think it's not worth to learn OOP with MQL5 if you have only one simple project. For a project like yours on other side it's certainly useful.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use