Here is an example movie about the best way best to create a moving average crossover. You may easily setup any expert advisor, without coding: