Is it possible to save values in an enum instead of an array?

 
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()
 
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?
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...
Reason: