'elo!

I am using sth like
MAPrevious
MACurrent
PipsForRange

if ((MAPrevious PipsForRange * Point) gt; MACurrent) SignalSell

and vice versa for buy.