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

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian