Bug in Multicharts Indicator SQ_CCI

I was replicating a strategy and found a bug in CCI indicator.

I think there is a bug in AvgDev calculation.
This line:

AvgDev = AvgDev + AbsValue( Price[Counter] - Mean );

Should be:
AvgDev = AvgDev + AbsValue( Price[Counter] - Mean[Counter] );

Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Refused
  • Priority Normal

History

KP
#1

CooleRnax

07.09.2019 18:39

Task created

KP
#2

CooleRnax

08.09.2019 22:25

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:

AvgDev = AvgDev + AbsValue( Price[Counter] - Mean );

Should be:
AvgDev = AvgDev + AbsValue( Price[Counter] - Mean[Counter] );

KP
#3

CooleRnax

11.09.2019 15:03
Voted for this task.
TB
#4

Tomas Brynda

15.10.2019 08:28

Status changed from New to Refused

Hi CooleRnax,

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


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please