OPEN-SOURCE SCRIPT

Stochastic Pro+ Suite

126
📚 What Is the Stochastic Oscillator?

The stochastic oscillator is a momentum indicator comparing a security's closing price to its price range over a set number of periods. The %K line represents the raw stochastic value, while the %D line is a smoothed moving average of %K.

Stochastic helps identify:

Overbought and oversold conditions

Bullish and bearish crossovers

Momentum shifts before price reversals

It is widely used in both trending and ranging markets.

💡 What Makes This Suite Different?

This script supercharges the traditional stochastic with a multi-timeframe engine, divergence detection, and a highly customizable visual suite, including:

✅ Core Features:

- Multi-Timeframe (%K, %D, Spread): Pulls stochastic data from any higher timeframe for improved signal quality.
- Custom Overbought/Oversold Levels: Fully adjustable OB/OS thresholds (default: 80/20).
- %K-%D Spread Histogram: View the difference between %K and %D visually as a histogram.
- Color-coded Cross Highlights: Optional background shading for key crossover events in OB/OS zones (high probability reversal areas).

🔍 Divergence Detection (Optional):

- Bullish Divergence: Price makes lower lows while %K makes higher lows.
- Bearish Divergence: Price makes higher highs while %K makes lower highs.
- Customizable pivot lookbacks and range filters to control divergence strictness.
- Visual divergence labels plotted directly on the oscillator.

🎛️ Fully Toggleable Visuals:

Show/hide %K, %D, OB/OS lines, spread histogram, background highlight, and divergence — all via simple checkboxes.

🔔 Alerts:

Set alerts for both bullish and bearish divergences — ideal for swing, day, or trend reversal strategies.

⚙️ Use Cases

- Spot exhaustion in overbought/oversold zones
- Confirm or filter entries with divergence signals
- Monitor multiple timeframes without switching charts
- Use as a signal tool in confluence with price action or volume indicators

⚠️ Disclaimer

This tool is for educational and informational purposes only. It does not constitute financial advice, trading advice, or investment guidance. Always do your own research and consult a qualified financial advisor before making trading decisions.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.