PROTECTED SOURCE SCRIPT

TRI - Support/Resistance Multi Timeframe

38
🎯 BREAKOUT STRATEGY:
This indicator identifies key S/R levels where momentum shifts occur.
Use these levels for high-probability breakout entries.

📈 LONG BREAKOUT SETUP:
  • Wait for price to approach a RESISTANCE level (above current price)
  • Look for increasing volume as price tests the level
  • Enter LONG when price closes decisively ABOVE the resistance zone
  • Set stop-loss just below the broken resistance (now support)
  • Target: next resistance level above, or 1:2 risk/reward


📉 SHORT BREAKOUT SETUP:
  • Wait for price to approach a SUPPORT level (below current price)
  • Look for increasing volume as price tests the level
  • Enter SHORT when price closes decisively BELOW the support zone
  • Set stop-loss just above the broken support (now resistance)
  • Target: next support level below, or 1:2 risk/reward


⚡ PRO TIPS:
  • Higher timeframe levels (D, W) are STRONGER - breakouts more reliable
  • Use "Zones" mode to see the full breakout area, not just a line
  • Multiple levels clustered together = stronger S/R zone
  • Failed breakout (price returns inside zone) = potential reversal trade
  • Combine with volume confirmation for best results


🔔 ALERTS:
Set alerts for new levels on current TF to spot fresh momentum shifts in real-time.

🔗 COMBINE WITH OTHER INDICATORS:
For best results, use this indicator together with:
  • EMA (50/200) - Dynamic support/resistance for trend confirmation
  • Volume Profile - Confirms high-volume price levels
  • When price bounces from a static S/R level AND respects EMA = high-probability trade


📊 DETECTION METHODS:
Choose your preferred method in settings:

MACD MODE:
Uses MACD histogram to identify momentum-based S/R levels:
  • Histogram dips in positive territory = bullish momentum pausing = SUPPORT zone
  • Histogram peaks in positive territory = bullish momentum reversal = RESISTANCE zone
  • Histogram peaks in negative territory = bearish momentum pausing = RESISTANCE zone
  • Histogram dips in negative territory = bearish momentum reversal = SUPPORT zone
  • Only significant extremes are marked, filtering out noise


FRACTALS MODE:
Uses pivot high/low detection (similar to Williams Fractals):
  • Detects swing highs = RESISTANCE levels where price reversed down
  • Detects swing lows = SUPPORT levels where price reversed up
  • Uses ta.pivothigh/pivotlow for memory-efficient calculation
  • "Fractal Periods" setting controls lookback (higher = fewer, stronger levels)
  • Levels positioned at bar[1] for real-time detection

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.