Just confused a lot now,
I tried to set (example)
Values[0][1] = 1.0; // CurrentBar is high and Values[0].Count is High
via button press asyncronously just using some of those example indicators (added that line and needed plot and so on.)
And there are plenty of values set and this is okay at OnBarUpdate no problem
and as well if I set Values[0][0] from the button press, (but can't modify earlier ones via button press but okay during OnBarUpdate or any other like OnMarketUpdate)
And even if I add my own custom series, same problem! (index is totally okay = 1)
Just typical problem: Unhadled Exception: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Any idea?
Comment