It is basically to reduce the noise and not to enter position until two faster averages crossed slow average.
Nicolas, thank you for your replies. I also looked at your previous post on adaptive moving averages. Do you know if there is a way to code a difference between AMA(n),AMA(n-1) etc, where ‘n’ is a current bar? Is it possible to code change in direction of AMA as a signal?