I got the error "Index was outside the bounds of the array." when accessing the 6 range voluemtric bar dataseries.
After debugging I found that the error is come from accessing the range bar with all zero data (datafeed error?).
The function I use is barsType.Volumes[CurrentBar].TotalVolume
Is there any ways in Ninjascript that I can skip the errors? As I need to use these functions for calculation, thanks.

Comment