look at my post: EA with 3 Moving Average
you can also find an example with a graph
Grazie.