OPEN-SOURCE SCRIPT

RSI(14) Divergence — Enhanced Hidden Detection (v6) — exterm hid

84
Title:

RSI(14) Divergence — Regular + Hidden + HTF EMA Filter (Scalping Edition)

🔹 Description:

This indicator automatically detects RSI(14) divergences — both Regular (Reversal) and Hidden (Continuation) — and plots them directly on the chart for precision scalping and intraday trading.
It’s optimized for low timeframes (1-minute) such as Bank Nifty, Nifty 50, and Sensex, where spotting early divergence can help confirm short-term momentum shifts.

⚙️ Core Features:

Regular Divergence Detection

Bullish Divergence: Price makes a lower low while RSI makes a higher low → potential reversal upward.

Bearish Divergence: Price makes a higher high while RSI makes a lower high → potential reversal downward.

Hidden Divergence Detection

Hidden Bullish Divergence: Price makes a higher low while RSI makes a lower low → continuation of bullish trend.

Hidden Bearish Divergence: Price makes a lower high while RSI makes a higher high → continuation of bearish trend.

HTF EMA Trend Alignment (Smart Filter)

Optional feature that aligns signals with the higher timeframe (HTF) trend using a 200 EMA.

Example: Only shows bullish divergences when the 5-minute price is above the 5-minute 200 EMA (uptrend alignment).

Helps filter false signals and keeps divergence trading directional.

Chart Visualization

Regular divergences: Bold solid lines (Green for bullish, Red for bearish).

Hidden divergences: Thin dashed lines (Teal for hidden bull, Maroon for hidden bear) — subtle enough to stay unnoticed by casual chart viewers.

Optional labels (“Bull Div”, “Bear Div”, etc.) and minimalistic markers for scalping clarity.

Option to extend divergence lines for future reference.

Custom Alerts (for all divergence types)

Get instant alerts when any regular or hidden divergence is detected.

Works seamlessly for both long and short bias setups.

📈 Recommended Usage:

Timeframe: 1-Minute (Scalping) or 3-Minute (Micro Intraday)

Markets: Bank Nifty, Nifty 50, Sensex, or any high-volatility index/stocks

Combine With:

Higher timeframe structure (H1/H4 bias)

Volume spikes or order block retests

Key support/resistance zones

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。