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

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?


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

免責事項