Reflection with MQL

To add comments, please log in or register
Rudinei Felipetto
1468
Rudinei Felipetto  
Is there any means of reflection (such as on C# or Generics on Java) in MQL5 with OOP?
Stanislav Korotky
25201
Stanislav Korotky  
Rudinei Felipetto:
Is there any means of reflection (such as on C# or Generics on Java) in MQL5 with OOP?
No (for run-time reflections). MQL is a programming language with strict typing. What is your task? Maybe you can try templates - this is much the same as generics in Java.
Documentation on MQL5: Language Basics / Object-Oriented Programming / Class templates
Documentation on MQL5: Language Basics / Object-Oriented Programming / Class templates
  • www.mql5.com
Language Basics / Object-Oriented Programming / Class templates - Reference on algorithmic/automated trading language for MetaTrader 5
Rudinei Felipetto
1468
Rudinei Felipetto  
Stanislav Korotky:
No (for run-time reflections). MQL is a programming language with strict typing. What is your task? Maybe you can try templates - this is much the same as generics in Java.
I want to load indicators dynamically.
To add comments, please log in or register