This is more curiosity than anything. I wrote an indicator for use with my strategy. I wrote it as an indicator because I will also use it natively on a chart.
When I was writing the code to add it to my strategy Intellisense showed 4 constructors. Contructor 3 is the constructor as I intended it, constructor 4 is just the same but showing the IDataSeries input; this is what I expected.
I also have two more constructors (one a duplicate of the other but with an IDataSeries as an input). The extra constructor (set) looks like it has optional parameters as it matches a prior version of the indicator before I added some additional parameters.
This got me to thinking; I have been under the assumption that the call to an indicator from a strategy had to match the signature of the public properties in the indicator. Is this correct and if so why do I have the extra set of constructors?
Thanks,
Scott

Comment