The WL Extension API Reference (Section IndicatorLibrary) says:
This implies that I can use more than two constructors. But how to handle this in GenerateParameters if the parameters are different (in type and number)? For example if I have different calculation methods.
QUOTE:
Each Indicator should have at least two constructors...The second constructor should contain parameters that match the Parameter instances that you create in the GenerateParameters method
This implies that I can use more than two constructors. But how to handle this in GenerateParameters if the parameters are different (in type and number)? For example if I have different calculation methods.
Rename
GenerateParameters should always generate the same set of parameters. An indicator might have multiple constructors if one of the parameters might be represented in different ways, like either a string or an enum value. It's just a way to add more flexibility for C# strategies.
Your Response
Post
Edit Post
Login is required