This TMA strategy is called rollercoaster for the rounded ways it follows the moving average. Tried pinpointing entry/exit points as well as I could. Included alertconditions as well as syntax at the bottom for use with Autoview in a margin or spot trading environment. There is also the Study side for syntax and alertconditions use :) (autoview users and more!)
As usual, free to use, change it to suit your needs, please don't resell for profit.