luisf:
Hi Guys,
I'm wondering if is it possible to create an Abstract Class in mlq5?
For example, like we use in Java:
http://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
There is no abstract class in mql5. But you can use a "normal" class and declare its method as virtual. The only difference, I think, is you can instantiated this class in mql5.
Please read the documentation.
angevoyageur:
That was exactly what I was looking for. Also I found this very useful article that has a section talking about virtual functions: https://www.mql5.com/en/articles/351There is no abstract class in mql5. But you can use a "normal" class and declare its method as virtual. The only difference, I think, is you can instantiated this class in mql5.
Please read the documentation.
Thanks!!

The Basics of Object-Oriented Programming
- 2011.12.07
- Dmitry Fedoseev
- www.mql5.com
You don't need to know what are polymorphism, encapsulation, etc. all about in to use object-oriented programming (OOP)... you may simply use these features. This article covers the basics of OOP with hands-on examples.
I have yet to use classes in my EA. I think my EA are very simple.
doshur:
I have yet to use classes in my EA. I think my EA are very simple.
I have started to learn and can recommed these.
I have yet to use classes in my EA. I think my EA are very simple.

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
Hi Guys,
I'm wondering if is it possible to create an Abstract Class in mlq5?
For example, like we use in Java:
http://docs.oracle.com/javase/tutorial/java/IandI/abstract.html