i am using an indicator which draws a dot when i double click somewhere on the chart.
in more detail, i am using a mouse event which calls a method which does all the calculactions and then adds a dot using the Draw.Dot method.
Since NT 8.0.6 the indicator fires an exception if the barsAgo method parameter is greater than 0 but even with barsAgo at 0, the dot is not drawn on the chart, just the expections isnt triggered.
The Exceptions is:
Unhanded Exception: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
When i move the whole logic to the OnBarUpdate method, everything works fine with the disadvantage that i have to wait for the next OnBarUpdate Event to take place until the dot is drawn. I also can't use the indicator while the market is closed because there are no new OnBarUpdate events fired.
Is there any way to fix this or does the Draw.Dot method only work from OnBarUpdate after NT 8.0.6?
And on another note, the Dots are really getting huge since 8.0.6...
Thank you and Best regards,
Mike
looks like this one here is about the same issue:
Comment