Moving Average Crossover

 

Whats up Everyone!

Could someone give me the simple code for entering when price closes above the 5 period EMA and exiting when it closes below? Also... I want it to always be in the market. So when it exits... it immediately enters a Short. I can figure out all the other stuff later... but I just need this simple code. Thanks.