However if I try to reference the indicator in a strategy none of the new properties are updated. I do not want to add the indicator with the Add() method to the chart. I've tried defining the indicator as a variable and instantiating it in the strategy every way I could think of but the indicator never calls it's OnBarUpdate method. And if I reference it directly by Indicator(parameters)[barsAgo] it only returns the underlying double defined in the original indicator. None of my new properties are accessible.
The only way I have been able to get the indicator to work in a strategy as expected is to create a public method in the indicator called ForceUpdate() that manually calls it's OnBarUpdate. If I call ForceUpdate in the Strategy's OnBarUpdate method with the correct BarsInProgress I can get it to update correctly.
There must be a better way to get this to work. I am not doing anything that unusual.
Any help would be appreciated.


Comment