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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


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

Clause de non-responsabilité