else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Minute, 10);
}
OnbarUpdate
if (BarsInProgress == 1)
{
//do my calcuations
}
Now this is my error
2018-04-22 21:46:17:047 Cbi.Instrument.RequestBars (to Provider): instrument='NQ 06-18' from='4/22/2018 12:00:00 AM' to='4/22/2018 12:00:00 AM' period='1 Minute'
2018-04-22 21:46:17:828 ERROR: Indicator 'MyIndicator': Error on calling 'OnBarUpdate' method on bar 7097: Object reference not set to an instance of an object.
How can this be on a 1000 volume chart AND the add data series is 10 minutes?
If I change the Dataseries to 15 minues, 30 minutes or 60 minutes it will work.
Comment