Fast MA close to Slow MA
-
What is the effective way to avoid a situation where the fast and slow MAs kiss each other for some ars?

-
It is natural and is some type of support and resistance.
-
It is impossible unless you are using extremely different periods for both MA.
-
@l-andorrà @sktsec
I am actually asking what is the effective way to code a program that will recognize this situation -
You can compare the value of both MA every single tick and then wait for a minimum distance between both to trigger an action.
-
yes, this is the basic way.
I just wounder if there are other approaches -
Probably, but the one I suggested is easy to implement.