From a Strategy, how can I access an Indicator property (which requires an argument)?
Technically, the Indicator property is not a "property", as the only type of parameterized property you can define in C# is indexers. The Indicator property is a public method. It is only required to return (get) a value, not accept (set) a value.
When the Indicator is added to a Strategy using the NinjaScript Add(), the Indicator's public method can not be accessed. Using .net notation, it is possible to instantiate the Indicator and access the public method. However, I have concerns on how the Indicator would behave with each Stategy OnBarUpdate.
Any guidance would be appreciated.
Thanks and regards
Shannon


Comment