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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.