- ago
The WL Extension API Reference (Section IndicatorLibrary) says:

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.
0
240
Solved
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 10.83% )
- ago
#1
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.
2
Best Answer

Reply

Bookmark

Sort