In NT7, i used the following to add a EMA chart to the strategy and change the color of each:
protected override void Initialize()
{
Add(EMA(Fast));
Add(EMA(Slow));
EMA(Fast).Plots[0].Pen.Color = Color.Black;
EMA(Slow).Plots[0].Pen.Color = Color.Blue;
}
In NT 8 I was able to use AddChartIndicator to get the EMA indicator, but how do I change the color of the various added indicators?
else if (State == State.Configure)
{
AddChartIndicator(EMA(Fast));
AddChartIndicator(EMA(Slow));
EMA(Fast).Plots[0].Pen.Color = Color.Black;
EMA(Slow).Plots[0].Pen.Color = Color.Blue; ??
Thanks for the help,
Regards,
Lee
Comment