OPEN-SOURCE SCRIPT
מעודכן Williams Vix Fix Bottoms and Tops - DUAL MODE

Williams Vix Fix Bottoms and Tops - DUAL MODE
This is a DUAL implementation of Williams Vix Fix that evaluates both:
- LOWS: potential downside exhaustion / bottom conditions.
- HIGHS: potential upside exhaustion / top conditions.
The goal is to combine statistical extremes with price-action confirmation and clear visual signaling.
Core calculations
LOWS mode:
WVF_LOWS = ((highest(close, pd) - low) / highest(close, pd)) * 100
HIGHS mode:
WVF_HIGHS = ((lowest(close, pd) - high) / lowest(close, pd)) * 100
For each mode, the script computes:
- statistical bands (SMA + stdev multiplier),
- percentile thresholds (lb with ph/pl),
- extreme-state conditions,
- and price-action/context filters (ltLB, mtLB, str).
Signals and bar coloring
Bars can be highlighted by 5 classes:
- Aggressive
- Filtered
- Entry
- Above Lines
- All Bars
In DUAL mode, LOWS and HIGHS are processed together with signal-priority layering to keep chart reading consistent.
Histogram and lines
- LOWS histogram: “Extreme” color in extreme conditions, “Normal” otherwise.
- HIGHS histogram: “Extreme” color in extreme conditions, “Normal” otherwise.
- Optional lines for statistical bands and percentile ranges.
Alerts
Includes:
- Williams Green Bar (LOWS)
- Williams Green Bar (HIGHS)
GreenBarLookBack controls lookback/consecutive logic for alert triggering.
How to use
- Tune parameters per symbol/timeframe.
- Use signals with structure confirmation and risk management.
- This is a decision-support tool, not a guaranteed-profit system.
Open-source reuse and credits
This script is based on the open-source indicator:
“Williams Vix Fix Bottoms and Tops” by theehoganator
Source:
This version adds and/or changes:
1) Dual simultaneous processing of LOWS and HIGHS.
2) Distinct visual logic for LOWS/HIGHS extremes and normal states.
3) Layered bar-color priority for signal classes.
4) Green-bar alert logic with configurable lookback.
5) Input/layout and signal presentation refinements.
Limitations
- Reversal signals can be early in strong trends.
- Behavior depends on volatility regime.
- Risk management is required.
This is a DUAL implementation of Williams Vix Fix that evaluates both:
- LOWS: potential downside exhaustion / bottom conditions.
- HIGHS: potential upside exhaustion / top conditions.
The goal is to combine statistical extremes with price-action confirmation and clear visual signaling.
Core calculations
LOWS mode:
WVF_LOWS = ((highest(close, pd) - low) / highest(close, pd)) * 100
HIGHS mode:
WVF_HIGHS = ((lowest(close, pd) - high) / lowest(close, pd)) * 100
For each mode, the script computes:
- statistical bands (SMA + stdev multiplier),
- percentile thresholds (lb with ph/pl),
- extreme-state conditions,
- and price-action/context filters (ltLB, mtLB, str).
Signals and bar coloring
Bars can be highlighted by 5 classes:
- Aggressive
- Filtered
- Entry
- Above Lines
- All Bars
In DUAL mode, LOWS and HIGHS are processed together with signal-priority layering to keep chart reading consistent.
Histogram and lines
- LOWS histogram: “Extreme” color in extreme conditions, “Normal” otherwise.
- HIGHS histogram: “Extreme” color in extreme conditions, “Normal” otherwise.
- Optional lines for statistical bands and percentile ranges.
Alerts
Includes:
- Williams Green Bar (LOWS)
- Williams Green Bar (HIGHS)
GreenBarLookBack controls lookback/consecutive logic for alert triggering.
How to use
- Tune parameters per symbol/timeframe.
- Use signals with structure confirmation and risk management.
- This is a decision-support tool, not a guaranteed-profit system.
Open-source reuse and credits
This script is based on the open-source indicator:
“Williams Vix Fix Bottoms and Tops” by theehoganator
Source:

This version adds and/or changes:
1) Dual simultaneous processing of LOWS and HIGHS.
2) Distinct visual logic for LOWS/HIGHS extremes and normal states.
3) Layered bar-color priority for signal classes.
4) Green-bar alert logic with configurable lookback.
5) Input/layout and signal presentation refinements.
Limitations
- Reversal signals can be early in strong trends.
- Behavior depends on volatility regime.
- Risk management is required.
הערות שחרור
Fixed the 'Flip Indicator' functionality.It now correctly inverts the histogram/indicator plot without affecting the signal logic.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.