This strategy is based on the AlphaTrend indicator by KivancOzbilgichttps://www.tradingview.com/v/o50NYLAZ/ A full description of this algorithm functionality may be found by clicking the linked image above. Changes and/or additions:
It is now a backtestable strategy
Updated alert trigger logic
Easy integration with ProfitView to use this algorithm for automated trading
When you create an alert, and you are using ProfitView, select "alert() function calls only" as the condition option. If you would rather set your own custom alert message, select "Order fills only" instead. There is a selectable setting in the options to trigger alert() function calls immediately, that you may use to see what text it will send.