Is there a way to trap this error below?
Error on calling 'OnCalculateMinMax' method on bar 0: The calculation results in unrenderable values.
It's thrown on an indicator and can't be caught using try catch (at least I haven't been able to). The indicator uses a number of data series and timeframes so is very difficult to track down (I've tried print statements etc....). Example of the value being set is below.
var roundedValue = Math.Round(Values[barsInProgress][1] + currencyChange, 1);
Values[BarsInProgress][0] = roundedValue;
I use BarsInProgress in the Values series as earlier in the indicator I've created a number of plots using a loop.
Thanks
Comment