I have trivial strategy, that just outputs CCI(50) value.
It is Unmanaged + Multi-timeframe strategy.
It is failing on this line in @CCI.cs
mean += Math.Abs(Typical[idx] - sma0);
Cause of the exception is, that Typical cannot return value with provided index:
This is quick fix:
mean += Math.Abs( (High[idx] + Low[idx] + Close[idx])/3 - sma0);
DOWNLOAD THIS STRATEGY TO REPRODUCE
Tested on:
- NT8 v8.0.1.0
- Windows 10
Comment