OPEN-SOURCE SCRIPT
Stress & Recovery Daily Stock/BTC

This indicator is a stress → recovery regime tool designed for Daily charts (Bitcoin and equities). It combines Williams Vix Fix (WVF) to detect panic/capitulation conditions (potential bottoms) with RSI vs EMA(RSI) to confirm the start of a recovery phase — but only when that recovery occurs within a configurable number of bars after a WVF panic event.
It is not a generic trend indicator. It focuses on one specific sequence:
Panic spike (WVF) → Recovery confirmation (RSI crossing above EMA(RSI)).
What it Shows
1) Red Bottom Shadow (Panic Zone)
A red shaded area below the baseline appears when WVF triggers a panic condition. This highlights periods where downside pressure and “panic-like” behavior are elevated.
To avoid clutter, the red triangle marker (▼) is plotted only once per red cluster, specifically on the last bar of the panic cluster (end of the WVF signal streak).
2) Green State Ribbon (Recovery Regime)
A green ribbon above the baseline indicates a recovery regime. You can choose how the green signal behaves:
Crossover only: green is active only on the single bar where RSI crosses above EMA(RSI).
State (RSI > EMA): green stays active as long as RSI remains above EMA(RSI).
3) Amber Ribbon (Conflict State)
If panic (WVF) and recovery (green state) overlap, the ribbon turns amber.
This indicates a mixed condition: panic is still present, but momentum is attempting to reverse.
4) Green Triangle Marker (▲) — Validated Recovery Start
A green triangle (▲) appears only when RSI crosses above EMA(RSI) AND that crossover happens within N bars from the most recent WVF panic zone. This time-window filter helps avoid unrelated RSI crossovers that occur far from capitulation events.
How to Use
- Treat red shadow as a “panic/stress zone”.
- Look for the green triangle (▲) as the first validated recovery trigger after panic.
- Use green ribbon as a recovery regime filter (especially in “State” mode).
- Use amber ribbon as a caution zone (overlap = mixed signals).
This indicator is best used as a context and timing filter, not as a complete trading system by itself.
Notes:
- Designed and tuned for Daily timeframe usage.
- Signals may behave differently on intraday timeframes or illiquid assets.
It is not a generic trend indicator. It focuses on one specific sequence:
Panic spike (WVF) → Recovery confirmation (RSI crossing above EMA(RSI)).
What it Shows
1) Red Bottom Shadow (Panic Zone)
A red shaded area below the baseline appears when WVF triggers a panic condition. This highlights periods where downside pressure and “panic-like” behavior are elevated.
To avoid clutter, the red triangle marker (▼) is plotted only once per red cluster, specifically on the last bar of the panic cluster (end of the WVF signal streak).
2) Green State Ribbon (Recovery Regime)
A green ribbon above the baseline indicates a recovery regime. You can choose how the green signal behaves:
Crossover only: green is active only on the single bar where RSI crosses above EMA(RSI).
State (RSI > EMA): green stays active as long as RSI remains above EMA(RSI).
3) Amber Ribbon (Conflict State)
If panic (WVF) and recovery (green state) overlap, the ribbon turns amber.
This indicates a mixed condition: panic is still present, but momentum is attempting to reverse.
4) Green Triangle Marker (▲) — Validated Recovery Start
A green triangle (▲) appears only when RSI crosses above EMA(RSI) AND that crossover happens within N bars from the most recent WVF panic zone. This time-window filter helps avoid unrelated RSI crossovers that occur far from capitulation events.
How to Use
- Treat red shadow as a “panic/stress zone”.
- Look for the green triangle (▲) as the first validated recovery trigger after panic.
- Use green ribbon as a recovery regime filter (especially in “State” mode).
- Use amber ribbon as a caution zone (overlap = mixed signals).
This indicator is best used as a context and timing filter, not as a complete trading system by itself.
Notes:
- Designed and tuned for Daily timeframe usage.
- Signals may behave differently on intraday timeframes or illiquid assets.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Maurizio A.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Maurizio A.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.