I wanted to draw a line or circle in the indicator code it compiles but nothing is actually drawn on chart.
Example code:
protected override void Initialize()
{
Overlay = true;
this.CalculateOnBarClose = false;
}
protected override void OnBarUpdate()
{
this.DrawLine("line1",20,9740, 5, 9740, Color.Red);
}
The price is currently around this level - 9740, but when adding the indicator to chart I didn't see any line. How can I fix this ?
Thanks in advance.
Tomasz
Comment