Is it possible to save values in an enum instead of an array?
Probably you must be wondering why I want this, simple is to use ParameterSetRange
And I listed some symbols and saved in an array however to use ParameterSetRange it is necessary that this list is in enum from the moment that I execute it in OnTesterInit()
In OnInit() I was able to do it using an array, but it does not make sense for it to run every pass but only at the beginning of the optimization that happens in OnTesterInit()
- How to translate the integer returned by functions to enum?
- Problems with multiply enum's
- How to get length of enum and item in MQL4/MQL5 ?
Fabio:
Is it possible to save values in an enum instead of an array?
I'm pretty sure that enums are created at compile time.
So no.
Also, please search for answers before asking on this forum.
https://www.mql5.com/en/forum/187740
Creating Enum from Array?
- 2017.03.22
- www.mql5.com
How to make custom Enumeration from TestEnum array values? I am really like using Enum, it simplify the input. Thanks for the help...
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