OPEN-SOURCE SCRIPT
Williams %R Intensity

Overview
"Williams %R Intensity" is a unique indicator that combines the classic Williams %R with a dynamic intensity-based visualization. This indicator helps traders identify overbought and oversold conditions with enhanced clarity while also predicting potential future crossovers using smoothed slope calculations. It is tailored for traders seeking a more nuanced approach to trend detection and momentum analysis.
Features and How It Works
Core Calculation:
Williams %R: Measures the current closing price relative to the highest high and lowest low over a user-defined length (default: 14).
Exponential Moving Average (EMA): Smoothens the %R values for better trend tracking (default length: 14).
Overbought/Oversold Zones:
Upper and lower threshold levels are set at -20 (overbought) and -80 (oversold), making it easier to identify extreme conditions.
Intensity Visualization:
Crossover Signals:
The background color changes (lime for bullish, red for bearish) to highlight these critical moments when enabled via the "Show Cross & Predicted Cross Signal" option.
Future Cross Prediction:
How to Use
Chart Information
For clarity and compliance with publishing standards:
"Williams %R Intensity" is a unique indicator that combines the classic Williams %R with a dynamic intensity-based visualization. This indicator helps traders identify overbought and oversold conditions with enhanced clarity while also predicting potential future crossovers using smoothed slope calculations. It is tailored for traders seeking a more nuanced approach to trend detection and momentum analysis.
Features and How It Works
Core Calculation:
Williams %R: Measures the current closing price relative to the highest high and lowest low over a user-defined length (default: 14).
Exponential Moving Average (EMA): Smoothens the %R values for better trend tracking (default length: 14).
Overbought/Oversold Zones:
Upper and lower threshold levels are set at -20 (overbought) and -80 (oversold), making it easier to identify extreme conditions.
Intensity Visualization:
- The intensity is calculated based on the absolute distance between Williams %R and its EMA.
- The closer the value is to extreme levels, the more pronounced the visual intensity, capping at 90% transparency.
- Overbought conditions are highlighted in red; oversold conditions in teal.
Crossover Signals:
- Bullish Cross: When Williams %R crosses above its EMA in the oversold zone.
- Bearish Cross: When Williams %R crosses below its EMA in the overbought zone.
The background color changes (lime for bullish, red for bearish) to highlight these critical moments when enabled via the "Show Cross & Predicted Cross Signal" option.
Future Cross Prediction:
- Uses the smoothed slope of %R to estimate future values over a customizable number of steps.
- Predicts potential bullish or bearish crosses based on the interaction between the predicted Williams %R and EMA.
- Light green and light red background colors indicate predicted bullish and bearish crosses, respectively.
How to Use
- Trend Detection: Use the Williams %R and its EMA to identify ongoing trends and confirm their strength.
- Overbought/Oversold Analysis: Pay attention to crosses in extreme zones (-20 and -80) for potential reversals.
- Intensity-Based Filtering: The intensity visualization helps to focus on the most significant conditions, reducing noise.
- Cross Prediction: Enable "Show Cross & Predicted Cross Signal" to anticipate future turning points and plan trades proactively.
- Example Applications
- Scalping: Monitor rapid crossovers in lower timeframes for quick entries and exits.
- Swing Trading: Use the overbought/oversold zones and cross predictions to identify longer-term reversal opportunities.
- Risk Management: The intensity visualization can be used to filter out weak signals, ensuring higher-quality trade setups.
Chart Information
For clarity and compliance with publishing standards:
- The chart should display the full symbol, timeframe, and the script name ("Williams %R Intensity").
- Ensure the indicator is visible and properly configured for the chart.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.