marcuskhlim

Trendinator Lite

marcuskhlim Telah dikemas kini   
The Trendinator Lite indicator detects whether the crypto price is trending up or down. It is based on a set of rules developed by Scott Phillips.

According to the rules, trending is a two stage process (bollinger bands are 20 bar, 2 std):
1) Touch of the upper bollinger band for uptrend or touch of lower bollinger band for downtrend.
2) Look for a subsequent candle that makes both a higher high and a higher close since the upper bollinger touch in 1). When this happends, uptrend is confirmed. The reverse is true for down trend - look for a subsequent candle that makes both a lower low and a lower close since the lower bollinger touch in 1).

Trending stops when one of two things happens:
1) When we touch the lower bollinger band (in case of uptrend), or we touch the upper bollinger band (in case of downtrend).
2) When we continue for 20 bars without making a higher high (lower low for downtrend) than any of the preceding candles since we started trending.

The indicator is overlaid on top of the main chart - green for trending up, red for trending down, yellow for no trend.

Note, the upper bollinger and lower bollinger values are available as upper_bb and lower_bb respectively. Alerts can be set using these values if required.
Nota Keluaran:
The Trendinator Lite indicator detects whether the crypto price is trending up or down. Once added to the chart, you will be able to tell at a glance, whether a chart is trending up or down or not trending.

The trending rules were first introduced by the trader Scott Phillips.

According to the trending rules, trending is a two stage process (bollinger bands are 20 bar, 2 std):
1) Touch of the upper bollinger band for uptrend or touch of lower bollinger band for downtrend.
2) Look for a subsequent candle that makes both a higher high and a higher close since the upper bollinger touch in 1). When this happends, uptrend is confirmed. The reverse is true for down trend - look for a subsequent candle that makes both a lower low and a lower close since the lower bollinger touch in 1).

Trending stops when one of two things happens:
1) When we touch the lower bollinger band (in case of uptrend), or we touch the upper bollinger band (in case of downtrend).
2) When we continue for 20 bars without making a higher high (lower low for downtrend) than any of the preceding candles since we started trending.

The indicator is overlaid on top of the main chart - green for trending up, red for trending down, yellow for no trend.

Note, the upper bollinger and lower bollinger values are available as upper_bb and lower_bb respectively. Alerts can be set using these values if required.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?