I have implemented several indicators, which basically run well.
However if I want to draw a line on the chart in OnBarUpdate() if certain conditions are met
e.g.
protected override void OnBarUpdate() { ... if( val1 != 0) { Draw.Line(this, "Line_" + _id false, 5, val1, 0, val1, Brushes.Green, DashStyleHelper.Solid, 4); _id++; } ... }
Debugging results that the Drawing of the line gets stuck in DrawingTool.GetTagorNew.
In the attachment you can see that the 24th line causes the freeze.
Sometimes all line are there and everything is ok, sometime it gets stuck in the xxth line drawing or the xxxth line drawing.
Comment