I'm tryingto intoduce some additional C# class structure into my strategy.
It appears that BarsArray[] and Times[] are protected members of StrategyBase? So any class that does not derive from StrategyBase can not access them. Or are they public?
So my question is:Should "helper" classes also derive from Strategy in order to have access to BarsArray[] and Times[]? Is it OK to instantiate a Strategy within a Strategy, or will bad things happen?
What I'm trying to do with my code base is refactor it to make use of the State design pattern from Gamma, Helm et al. This willentailthe creation of many additional classes into the script which will all require access to BarsArray[] and Times[]
Any thoughts? Am I missing something?
Thanks,
Jim


Comment