double bp;
protected override void Initialize()
{
Add(new Plot(Color.White, PlotStyle . Dot, "bp"));
}
protected override void OnBarUpdate()
{
if (Bars == null)
return;
bp = (High[1]+Low[1]+Close[1])/3;
// What kind of statement do I use to reference my plot
// and have my dotted line
// drawn here at the bp value of bar[1]? (In such a way that
// it redraws as bp is recalculated with the next bar
// I can't seem to find any examples for this.
}
Comment