Dual trading lots.

#1
My strategy is as follows:

If MA 10< CLOSE THAN BUY 1 LOT, BUT IF MA 10<CLOSE AND ALSO MA 20< CLOSE THAN BUY 2 LOTS.

Can any body help with AFL?

Thanks.