OPEN-SOURCE SCRIPT

Price Action

This Pine Script code creates an indicator that plots price channels for volatility analysis:

The main parameter is the period length (default is 30), used to calculate volatility with ATR (Average True Range). Data retrieval: The indicator takes the closing price and uses it for calculations. Channel calculation: Based on volatility, three levels of channels are created: the first is the base channel, while the second and third are expanded by 8% and 16%.

First-level channels: The upper and lower boundaries of the channel are calculated based on volatility. This uses the previous bar's closing price, adjusted by a volatility coefficient.

Second and third-level channels: These channels expand by 8% and 16%, respectively, from the base channel. This creates zones that can indicate increasing or decreasing market volatility.

Each channel uses different colors and transparency levels:

  • The upper and lower boundaries of the first channel have solid colors.
  • The second channel boundaries are more transparent to denote extended levels.
  • The third channel boundaries are also transparent, indicating the widest range of deviation.
  • Visualization: Channels are displayed with different colors and transparency levels to illustrate price ranges and volatility changes.


Purpose: The indicator helps traders visualize price ranges and assess market volatility, which is useful for making trading decisions.

Practical application: This indicator assists traders in evaluating market volatility and building trading strategies based on price ranges. The extended channels can be used to identify potential reversal or trend continuation zones.
Bands and Channels

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?


🔹Академия инвестиций FINOMEN Премия «Образовательный проект года» по финансовой грамотности в 2021 по версии Investment Leaders Award) - finomen.academy
🔹Подписывайтесь в Instagram (50к подписчиков) - instagram.com/ask_kutsenko
Juga pada:

Penafian