I am working with a very very simple indicator, but High[0] Close[0] Low[0] seem to return the same value, Close[0]. I am sure that the data is not the problem because the candles are drawn correctly with different High and Low values.
Did I do something wrong? I have attached a picture to show the point.
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "High"));
Add(new Plot(Color.FromKnownColor(KnownColor.Purple), PlotStyle.Line, "Close"));
Add(new Plot(Color.FromKnownColor(KnownColor.Blue), PlotStyle.Line, "Low"));
Overlay= false;
}
protected override void OnBarUpdate()
{
High.Set(High[0]+300);
Close.Set(Close[0]+200);
Low.Set(Low[0]+100);
}
Comment