I see that AddChartIndicator(); is not supported on indicators :/
So I added this code, which works fine and displays the FIRST indicator, but not the second. What am I missing?
P.S. - This is for an indicator crossover situation.
P.S.2 - See attached for the full code.
protected override void OnStateChange() {
AddPlot(Brushes.Gray, "SHORT_ATR");
AddPlot(Brushes.Blue, "LONG_ATR");
}
protected override void OnBarUpdate() {
SHORT_ATR[0] = ATRTrailing(SHORT_ATRTimes,SHORT_Period,.005)[0];
LONG_ATR[0] = ATRTrailing(LONG_ATRTimes,LONG_Period,.005)[0];
}
#region Properties {
[Browsable(false)]
[XmlIgnore]
public Series<double> SHORT_ATR
{
get { return Values[0]; }
}
[Browsable(false)]
[XmlIgnore]
public Series<double> LONG_ATR
{
get { return Values[0]; }
}
#endregion
}

Comment