If i use the currentBar for my indicator (MACD(12, 26, 9).Diff[0]), i can see the values.
For example, when i try to add the following indicator to my chart, I can't see any value.
thanks for your help.
protectedoverridevoid Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Dot, "Plot0"));
Overlay = false;
}
protectedoverridevoid OnBarUpdate()
{
Plot0.Set(MACD(12, 26, 9).Diff[1]);
}
#region Properties
[Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
[XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
public DataSeries Plot0
{
get { return Values[0]; }
}
#endregion
}
Comment