This piece of code:
protected override void OnBarUpdate()
{
//Add your custom indicator logic here.
if (CurrentBar < 1) return;
if (Close[0]>Close[1])
Draw.TriangleUp(this, "tag2", true, 0, Low[0] - 1*TickSize, Brushes.Blue);
}
compiles just fine, but does nothing to the chart. The triangles (or dots) are not being drawn as they are in NT 7 where I use this piece of code:
DrawTriangleUp(CurrentBar.ToString(), true, 0, Low[0] - 1*TickSize, Color.Blue);
What is wrong here? Any help in resolving this issue would be appreciated.
Thanks.
Comment