an indicator is controlled via parameters.
If you insert an indicator into a strategy, how can you control the parameters of the indicator?
Example
protected override void OnStateChange()
{
if (State.DataLoaded == State)
{
MyIndicatorVariable = MyIndicator(Param1, Param2, etc. );
AddChartIndicator(MyIndicatorVariable);
}
}
Do I now have to implement all parameters in the strategy in order to control the indicator via the strategy?
Or is there an elegant solution?
Comment