OPEN-SOURCE SCRIPT
Average Top / Bottom Channels

This script is designed to simplify price action by creating an average top and average bottom channel around the market. Instead of focusing on every candle, wick, and short-term price fluctuation, the indicator calculates recent swing highs and swing lows, averages them, and displays a clean visual range where price is moving over time.
The upper line represents the average of recent price tops, while the lower line represents the average of recent price bottoms. The area between them acts like a simplified trend channel, helping identify whether price is moving higher, lower, sideways, or stretching outside its normal range.
My preferred way to use this script is to hide the regular price chart after adding the indicator. This removes visual noise from the candles and makes it easier to focus on the overall direction, structure, and trend behavior. After that, I adjust the settings to fit the market and timeframe I am viewing.
Lower sensitivity settings make the channel react faster to recent price movement, while higher sensitivity settings create a smoother channel for broader trend analysis. The goal is not to predict every candle, but to simplify the chart so the larger trend and average price range become easier to see.
The upper line represents the average of recent price tops, while the lower line represents the average of recent price bottoms. The area between them acts like a simplified trend channel, helping identify whether price is moving higher, lower, sideways, or stretching outside its normal range.
My preferred way to use this script is to hide the regular price chart after adding the indicator. This removes visual noise from the candles and makes it easier to focus on the overall direction, structure, and trend behavior. After that, I adjust the settings to fit the market and timeframe I am viewing.
Lower sensitivity settings make the channel react faster to recent price movement, while higher sensitivity settings create a smoother channel for broader trend analysis. The goal is not to predict every candle, but to simplify the chart so the larger trend and average price range become easier to see.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.