OPEN-SOURCE SCRIPT
Vix FIX / StochRSI Strategy

Vix FIX / StochRSI Strategy — Smart Gold Trading with Market Fear Detection
Pine Script Version 6 | Timeframe: 1H | Supports Long & Short
🔍 Strategy Overview:
This strategy is designed for trading gold and other highly volatile assets. It combines three powerful components:
Williams VIX Fix (WVF) – A fear-based volatility indicator inspired by the CBOE VIX Index, adapted for non-index assets.
Stochastic RSI – Measures overbought and oversold momentum, used as an exit trigger.
Price Action Filters – Confirms strong bullish or bearish bars to trigger high-conviction entries.
📌 Entry Conditions:
✅ Long Entry
WVF indicates the end of fear (mean reversion signal).
Bullish momentum bar (upRange).
Price is higher than n bars ago but still below medium/long-term recent highs.
✅ Short Entry
WVF indicates the market just cooled down from fear.
Bearish momentum bar (downRange).
Price is lower than n bars ago but still above recent lows.
📌 Exit Conditions:
🔴 Exit Long when Stochastic Overbought + %K cross below %D
🔵 Exit Short when Stochastic Oversold + %K cross above %D
📊 Key Features:
Dual-side entries (Long & Short)
Timeframe-limited to 1 Hour (60 minutes) for consistent signal quality
Ideal for gold and volatile assets (crypto, index CFDs)
Backtested with strong performance across major pairs
Pine Script Version 6 | Timeframe: 1H | Supports Long & Short
🔍 Strategy Overview:
This strategy is designed for trading gold and other highly volatile assets. It combines three powerful components:
Williams VIX Fix (WVF) – A fear-based volatility indicator inspired by the CBOE VIX Index, adapted for non-index assets.
Stochastic RSI – Measures overbought and oversold momentum, used as an exit trigger.
Price Action Filters – Confirms strong bullish or bearish bars to trigger high-conviction entries.
📌 Entry Conditions:
✅ Long Entry
WVF indicates the end of fear (mean reversion signal).
Bullish momentum bar (upRange).
Price is higher than n bars ago but still below medium/long-term recent highs.
✅ Short Entry
WVF indicates the market just cooled down from fear.
Bearish momentum bar (downRange).
Price is lower than n bars ago but still above recent lows.
📌 Exit Conditions:
🔴 Exit Long when Stochastic Overbought + %K cross below %D
🔵 Exit Short when Stochastic Oversold + %K cross above %D
📊 Key Features:
Dual-side entries (Long & Short)
Timeframe-limited to 1 Hour (60 minutes) for consistent signal quality
Ideal for gold and volatile assets (crypto, index CFDs)
Backtested with strong performance across major pairs
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。