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:
  • 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
  1. Trend Detection: Use the Williams %R and its EMA to identify ongoing trends and confirm their strength.
  2. Overbought/Oversold Analysis: Pay attention to crosses in extreme zones (-20 and -80) for potential reversals.
  3. Intensity-Based Filtering: The intensity visualization helps to focus on the most significant conditions, reducing noise.
  4. Cross Prediction: Enable "Show Cross & Predicted Cross Signal" to anticipate future turning points and plan trades proactively.
  5. Example Applications
  6. Scalping: Monitor rapid crossovers in lower timeframes for quick entries and exits.
  7. Swing Trading: Use the overbought/oversold zones and cross predictions to identify longer-term reversal opportunities.
  8. 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.
Oscillators

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明