In the NT8 Language reference - OnStateChange(), the tips section states:
With this knowledge, is the below code snippet ill-advised?
public class HostIndicator : Indicator
{
private ChildIndicator _childIndicator;
protected override void OnStateChange()
{
...
else if (State == [B]State.Configure[/B])
{
_childIndicator = new ChildIndicator();
_childIndicator.Calculate = this.Calculate;
}
}
}
Should the ChildIndicator be instantiated and set in State.Historical?
Is State.DataLoaded also ill-advised? (Embedded indicators within a strategy - Calculate property)
Thanks
Shannon

Comment