I am new to this platform. If some one could give me a example of a simple algo that scans the markets and goes long any stock that is over the 8 ema and shorts any stock that is under the 8 ema. Then gets out of a position if it hits 2 average true range and stops out if it hits 1 average true range.

Very basic just for learning the platform and quantconnects functionality.