For example I want to be able to do
AddDataSeries("ES 06-16", Data.BarsPeriodType.Volume, currentVolume, Data.MarketDataType.Last);
AddDataSeries("ES 06-16", Data.BarsPeriodType.Volume, currentVolume / 2, Data.MarketDataType.Last);
I have tried to set currentVolume = BarsArray[0].GetVolume(CurrentBar); and then set State = State.Configure; and then call OnStateChange();. But this does not seem to change anything.
Any ideas on how to dynamically change data series? I can provide better example code if it would help you understand what I am trying to do.
Comment