If I wanted to call an indicator that has enums as part of it's properties (i.e. user settable from the ui) how could they be set from within the calling code?
For example, in the example code "SampleUniversalMovingAverage" the moving average type, which drives a switch/case block within the indicator, is not shown within the method's signature.
Is there an elegant way to use enums so they can be set from within other calling methods and optimized later also? Or do I need to remove enums and use something like an int with various values being equivalent to each enum (but this approach obviously is not ideal)....
Thanks in advance.
Comment