indicator results in MC are different from which in excel

Questions about MultiCharts and user contributed studies.
yoyo1990
Posts: 6
Joined: 15 Jul 2014

indicator results in MC are different from which in excel

Postby yoyo1990 » 16 Jul 2014

hi,i got a problem when i calculated an indicator in MC8.5 build 8299.
the code is about adaptive moving average,from the formular,the value of the parameter changes according to the ratio of current bar's volatility and last bar's volatility:

Code: Select all

lookBackDays = lookBackDays * (1 + deltaVolatility);
lookBackDays = Minlist (lookBackDays, CeilingAmount);
lookBackDays = Maxlist (lookBackDays, FloorAmount);

intlookBackDays = Intportion (lookBackDays);

as in test.xlsx data file in attachment,at 2014-4-21 14:30,the parameter "intLookBackDays" result from the code is 22,the same as which from excel,but at 14:40,there comes the differnce,the result from the code is 22,while the result from excel is 25,more differences are following after this point.
from the formular in the indicator,the value of deltaVolatility is higher than 0,so the value of intLookBackDays should be higher than its previous value,that's,the results from excel are correct.
Attachments
test.rar
(1.56 MiB) Downloaded 102 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: indicator results in MC are different from which in exce

Postby Henry MultiСharts » 16 Jul 2014

Hello yoyo1990,

This case is similar to this one. It will be resolved in MultiCharts 9.0 Release Candidate.


Return to “MultiCharts”