Language Basics / Data Types / Structures, Classes and Interfaces - Reference on algorithmic/automated trading language for MetaTrader 5
Exactly a limited abstract class, syntactic sugar. No need for Abstract Classes and Pure Virtual Functions, implicitly pure virtual functions.
I learned that MQL5 implemented the interface keyword.
Could someone bring me some insight how it could be helpful? I did not find any use of it, it seemed more like a limited abstract class than the interface (as known in Java).
Without it, it's a half way.
If metaquotes will add the possibility of a class to inherit a class and at the same time implement an interface it will be useful.
Without it, it's a half way.
Yes, this is the (only) way the interface can be used.
Just recieved an update from metaquotes saying it will be allowed to do so.
Probably, though I am afraid it won't happen this life.
It's actually problematic and easier to achieve taking the regular route.
It's actually problematic and easier to achieve taking the regular route.
Are you talking about implementation or about coding? As for coding, the only workaround I have been using are wrappers. So instead of adding a single method, I need to define a new class.
I created one item and tried to replicate it multiple times which was dramatic so i ended up writing the entire thing in classical terms which worked fine.
The problem was in the (string) identifiers they got mixed up maybe i will find a solution in the future but for now i tend to stay away.
I created one item and tried to replicate it multiple times which was dramatic so i ended up writing the entire thing in classical terms which worked fine.
The problem was in the (string) identifiers they got mixed up maybe i will find a solution in the future but for now i tend to stay away.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I learned that MQL5 implemented the interface keyword.
Could someone bring me some insight how it could be helpful? I did not find any use of it, it seemed more like a limited abstract class than the interface (as known in Java).