OPEN-SOURCE SCRIPT

Supertrend + Stochastic RSI

303
The Supertrend + Stochastic RSI indicator is designed for scalping and short-term trading, combining the trend-following power of the Supertrend with the momentum insights of the Stochastic RSI to generate reliable buy and sell signals. This indicator aims to reduce false signals by requiring confirmation from both trend direction and momentum, making it suitable for traders targeting quick, high-probability trades in fast-moving markets on lower timeframes (e.g., 1-minute to 15-minute charts).

How It Works
The indicator integrates two technical components to produce actionable signals:

  • Supertrend for Trend Direction:
    The Supertrend, calculated with a default length of 10 and a factor of 3.0, identifies the prevailing trend. It plots a line above or below the price, turning green when the trend is bullish (price above Supertrend) and red when bearish (price below Supertrend). This helps traders stay aligned with the market’s direction, reducing trades against the trend.


  • Stochastic RSI for Momentum Confirmation:
    The Stochastic RSI, computed over a 14-period RSI with 3-period smoothing for %K and %D lines, measures momentum. A buy signal is generated when the %K line crosses above the oversold level (default: 20), indicating potential upward momentum, while a sell signal occurs when %K crosses below the overbought level (default: 80), suggesting downward momentum.


Signal Generation
Signals are produced only when both conditions align, using the previous bar’s values to prevent repainting:

  • Buy Signal: The Stochastic RSI %K crosses above the oversold level, and the Supertrend confirms a bullish trend (price above Supertrend). Displayed as a green upward triangle below the bar.


  • Sell Signal: The Stochastic RSI %K crosses below the overbought level, and the Supertrend confirms a bearish trend (price below Supertrend). Displayed as a red downward triangle above the bar.


Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.