OPEN-SOURCE SCRIPT
Daily & Weekly Closing Range % (Screener Compatible)

Overview
This indicator calculates the Daily Closing Range (DCR) and Weekly Closing Range (WCR) as a percentage. It measures where the price finishes relative to the session's high and low.
This is a staple metric for trend followers and "CANSLIM" style traders (popularized by platforms like Deepvue and MarketSmith) to identify institutional support. A high closing range (e.g., >80%) indicates that despite intraday volatility, buyers were aggressive enough to hold price near the highs.
Key Features
Screener Integration:
Designed specifically to work with the TradingView Stock Screener (Beta). You can now filter your universe for stocks closing in the top 10% or 25% of their range.
Dual Timeframe: Pulls both Daily and Weekly data regardless of the timeframe you are currently viewing.
Clean Visuals: Includes a histogram at the bottom of your chart for quick visual confirmation of price "tightness."
How to use for Screening:
Add this script to your chart.
Open the Stock Screener (Beta).
Add a filter and search for "Closing Range Tracker".
Select Daily Closing Range and set the value to Greater than 90 to find stocks finishing at the dead-highs.
This indicator calculates the Daily Closing Range (DCR) and Weekly Closing Range (WCR) as a percentage. It measures where the price finishes relative to the session's high and low.
This is a staple metric for trend followers and "CANSLIM" style traders (popularized by platforms like Deepvue and MarketSmith) to identify institutional support. A high closing range (e.g., >80%) indicates that despite intraday volatility, buyers were aggressive enough to hold price near the highs.
Key Features
Screener Integration:
Designed specifically to work with the TradingView Stock Screener (Beta). You can now filter your universe for stocks closing in the top 10% or 25% of their range.
Dual Timeframe: Pulls both Daily and Weekly data regardless of the timeframe you are currently viewing.
Clean Visuals: Includes a histogram at the bottom of your chart for quick visual confirmation of price "tightness."
How to use for Screening:
Add this script to your chart.
Open the Stock Screener (Beta).
Add a filter and search for "Closing Range Tracker".
Select Daily Closing Range and set the value to Greater than 90 to find stocks finishing at the dead-highs.
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.