OPEN-SOURCE SCRIPT
Stochastics + VixFix Buy/Sell Signals

This script is designed for long-term investors using ETFs on a weekly timeframe, where catching high-probability bottoms is the goal. It combines the Stochastic Oscillator with the Williams VixFix to identify moments of extreme fear and potential reversals.
A Buy signal is triggered when:
Stochastic %K drops below 20
VixFix forms a green spike (suggesting a panic-driven market flush)
A Sell signal is triggered when:
Stochastic %K rises above 90
VixFix falls below 5 (indicating excessive complacency)
Catching tops is much harder than catching bottoms.
These Sell signals are not designed to fully exit positions. Instead, they suggest trimming a small portion of ETF holdings — simply to free up liquidity for future opportunities.
This strategy is ideal for:
Long-term ETF investors
Weekly charts
Systematic decision-making in volatile markets
Use in conjunction with macro indicators, sector rotation, and valuation frameworks for best results.
A Buy signal is triggered when:
Stochastic %K drops below 20
VixFix forms a green spike (suggesting a panic-driven market flush)
A Sell signal is triggered when:
Stochastic %K rises above 90
VixFix falls below 5 (indicating excessive complacency)
Catching tops is much harder than catching bottoms.
These Sell signals are not designed to fully exit positions. Instead, they suggest trimming a small portion of ETF holdings — simply to free up liquidity for future opportunities.
This strategy is ideal for:
Long-term ETF investors
Weekly charts
Systematic decision-making in volatile markets
Use in conjunction with macro indicators, sector rotation, and valuation frameworks for best results.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.