To test this I created a new indicator, with one line, and set it to just plot Close[1]. When I do that, nothing is plotted. If I change it to Close[0] it plots as expected.
Here is my code if that helps:
///<summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
///</summary>
protectedoverridevoid Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Sienna), PlotStyle.Line, "PChange"));
Overlay = false;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
// Use this method for calculating your indicator values. Assign a value to each
// plot below by replacing 'Close[0]' with your own formula.
PChange.Set(Close[1]);
}
Comment