OPEN-SOURCE SCRIPT

Trend Following Trigger

This is a basic trend following system that using 5, 13, 34 EMAs cross-overs as triggers.

The 5,13 EMA pair is tracking the short-term momentum, when 5 EMA crosses over 13 EMA up or down, the script will develop a bullish "fast pivot" point or "FP", which can be used as the first entry of a position.
The 13, 34 EMA pair is tracking the mid-term trend, when the 13 EMA crosses over 34 EMA up or down, the script will develop a bullish "slow pivot" point or "SP", which can be used as the second entry of a position.

And the exit would be when a bearish "Slow Pivot" is created.

Note that the basic assumption of trend following is that you should trade with the trend, not against the trend. Thus I added the 50, 60 MA pair, as well as 200, 220 MA pair for long-term trend reference, which is an idea that I learned from the Vegas Tunneling Trading System.

Example,

Demo of using "Trend Following Trigger" System
Moving Averagestrigger

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer