OPEN-SOURCE SCRIPT

BB-EMA-MA

Wikipedia: Bollinger Bands are a type of statistical chart characterizing the prices and volatility over time of a financial instrument or commodity, using a formulaic method propounded by John Bollinger in the 1980s. Financial traders employ these charts as a methodical tool to inform trading decisions, control automated trading systems, or as a component of technical analysis. Bollinger Bands display a graphical band (the envelope maximum and minimum of moving averages, similar to Keltner or Donchian channels) and volatility (expressed by the width of the envelope) in one two-dimensional chart.

If you set Type = 2 then it will use EMA average for Bollinger bands .
If you set Type = 1 then it will use MA average for Bollinger bands .
Default settings is moving average with period 50

When price move to standard Deviation (std) +2 and std +3 is signal for sell ( selling zone)
When price move to standard Deviation (std) -2 and std -3 is signal for sell ( buying zone)
Nota Keluaran
Add one more Bollinger Band, change some default settings
Bands and ChannelsBB

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