OPEN-SOURCE SCRIPT

Stoch RSI Super BUY only indicator (SRS)

2 790
Overview
The Stoch RSI Super Strategy (SRS) Combined is a comprehensive, multi-layered momentum and trend-following indicator. It is designed to identify high-probability exhaustion zones, track price divergence, and validate potential entries using price action breakouts and dynamic Moving Average (MA) trend filtering.

Instead of generating basic crossover signals, this indicator operates on a "state-tracking" logic system. It requires a specific sequence of momentum shifts before generating an actionable breakout line and subsequent buy signal, reducing false entries in choppy markets.

How It Works (Under the Hood)
The script is built on three primary components:

Smoothed Stochastic RSI (%K): The script calculates a standard RSI, applies a Stochastic oscillator to that RSI, and then smooths it to create the %K line.

State-Tracking Logic: The indicator looks for a specific sequence of events:

Phase 1 (Overbought Setup): The %K must cross above the 80 level while the RSI is concurrently at or above 70. This plots a small Green Circle, indicating the market has reached extreme momentum.

Phase 2 (Oversold Trigger): After Phase 1 is validated, the indicator waits for the %K line to cross below the 20 level. When this happens, a Red Circle is plotted, and the corresponding price candle is colored black.

Price Action Breakout & Trend Filter: Once the black candle is established, a horizontal breakout line is drawn at its High. For a long signal to trigger, the closing price must break above this horizontal line AND close above the 21-period Simple Moving Average (SMA).

Divergence Detection: The script records the low price and %K value at each "Red Circle" event. If a new setup forms with a lower price but a higher %K value, the script flags a Bullish Divergence ("D" label).

Core Features

Dynamic MA 21: Plotted directly on the main chart, this Moving Average changes color (Green/Red) based on whether the current close is above or below it, providing an immediate visual cue for the baseline trend.

Smart Breakout Line: A dynamic horizontal line that tracks the high of the setup candle. It colors red while waiting for a breakout and locks to green once the price successfully closes above it.

Exit Logic: Once a trade is active, the script tracks the %K line. An exit signal (Red Downward Triangle) is generated when %K pushes back above 70 and subsequently crosses under it, signaling fading bullish momentum.

Built-in Alerts: Fully configured alertconditions for when the breakout line is generated and when a validated buy signal occurs.

How to Use This Indicator

Monitoring: Watch for the sequence to unfold in the sub-pane. A Green Circle followed by a Red Circle means the setup is actively being monitored.

Entry Validation: Do not enter blindly on the Red Circle. Wait for the price to close above the dynamic horizontal line and the 21 SMA. If the Buy label includes a "D", it indicates the setup is backed by hidden bullish divergence, adding confluence.

Trade Management: Use the dynamic 21 SMA as a potential trailing dynamic support, or utilize the built-in exit triangle as a signal to scale out or close the position.

Disclaimer: This script is for educational and analytical purposes only. It is highly recommended to use this indicator in conjunction with broader market structure analysis, support/resistance levels, and strict risk management. Past performance is not indicative of future results.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน