I was replicating a strategy and found a bug in CCI indicator.
I think there is a bug in AvgDev calculation.
This line:
Should be:
AvgDev = AvgDev + AbsValue( Price[Counter] - Mean[Counter] );
Description changed:
I was replicating a strategy and found a bug in CCI indicator.
I think there is a bug in AvgDev calculation.
This line:
Should be:
AvgDev = AvgDev + AbsValue( Price[Counter] - Mean[Counter] );
Status changed from New to Refused
based on what I've found online I think our way of calculation is the right one.
Plus the values of SQ CCI indicator match values from MetaTrader and NinjaTrader default CCI implementations.
Best regards,
Tomas