SMA Strategy for going long or short when a short sma crosses a long sma. This script was published by CaptJava. I added to it the ability to select a back testing date range and choose to go long, short or swap orders. You can enter automated trading buy and sell messages in the properties and then put {{strategy.order.alert_message}} in your webhook alert message and it will dynamically populate your buy or sell message.