KAMA Fx

0
(0)
Name:
KAMA
Author: brother3th (2009.08.30 10:16)
Downloaded: 4197
Download:
KAMA Fx 1
 KAMA.mq4 (2.3 Kb) View
Kaufman’s Adaptive Moving Average.

 

KAMA Fx 2

3 comments  To post a new comment, please log in or register

Thanks!
11.04.2012 15:18 excelf

KAMA[i] = KAMA[i+1] + sc * (Close[i] - KAMA[i+1]);

...it should be instead:

KAMA[i] = (1-sc) * KAMA[i+1] + sc * (Close[i] - KAMA[i+1]);

Wrong. The formula is

KAMA[i] = (1-sc) * KAMA[i+1] + sc * Close[i]

but that has significant problems with floating point round off. The first equation is equivalent but without the problems.

21.01.2010 19:12 WHRoeder

I think you got something wrong here...
Coefficients used for calculation of filters should always sum up to 1.
When you calculate the output of this filter you use:

KAMA[i] = KAMA[i+1] + sc * (Close[i] - KAMA[i+1]);

...it should be instead:

KAMA[i] = (1-sc) * KAMA[i+1] + sc * (Close[i] - KAMA[i+1]);

 

 

Cheers,
Zyp 😉

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.