Buy when price closes above 50 SMA Sell short when price closes below 50 SMA
*use parameter 'Sell Short' to enable short sells not just long trades*
Improvements. This strategy is pretty dumb and simple. Whipsaws will cost you. To improve it you could add risk management or a separate trade exit rule.