XAUUSD RSI Swing Structure [MatsukazeAlgo]🇬🇧 ENGLISH
Most Market Structure indicators use price pivots alone. This one uses RSI extremes to filter which swings actually matter.
A swing high only forms when RSI reaches overbought. A swing low only forms when RSI reaches oversold. Small pullbacks that never push RSI to extremes are ignored. What remains are momentum-confirmed structure shifts.
Based on RSI Swing Structure Indicator by ergunoz . Gold-optimized with 6 additions.
How RSI-Based Swing Detection Works
The indicator tracks RSI state transitions, not price pivots.
When RSI moves from oversold to overbought, a new swing high is confirmed. It is classified as HH (Higher High) or LH (Lower High) by comparing against the previous swing high. When RSI moves from overbought to oversold, a new swing low is confirmed. It is classified as HL (Higher Low) or LL (Lower Low) by comparing against the previous swing low.
While RSI remains in an extreme zone, the swing updates to the highest high or lowest low within that zone. Once RSI leaves the extreme, the swing is locked.
Session-Adaptive RSI Thresholds
Gold produces different swing patterns per session. The indicator adjusts RSI sensitivity to match.
Asia (19:00–03:00 ET): RSI 65/35. Softer thresholds detect more swings. Gold's Asia session is dominated by stop runs and reversals. Catching these smaller swings early helps identify the structure that London will break or respect.
London (03:00–09:00 ET): RSI 70/30. Standard thresholds filter for momentum-backed swings only. Breakouts during London carry real institutional flow.
NY (09:00–17:00 ET): RSI 70/30. Same as London. NY momentum is real.
Daily and higher timeframes use the standard 70/30 regardless of session.
The dashboard shows the active RSI thresholds (e.g. "Asia 65/35") so you always know which sensitivity is running.
CHoCH and BOS Detection
The indicator tracks the sequence of swing types to detect structural shifts.
CHoCH (Change of Character): The swing sequence breaks the current trend. A bullish structure producing a Lower High or Lower Low signals CHoCH. Labels turn gold-colored.
BOS (Break of Structure): The swing sequence continues the current trend. A bullish structure producing another Higher High confirms continuation. Labels turn blue-gray.
The dashboard shows the current structure bias (BULLISH / BEARISH / NEUTRAL).
DXY Bias
Swing labels include a "$" marker when the swing aligns with the US Dollar trend. Higher Lows and Higher Highs formed while DXY weakens get the marker, confirming that Gold strength has macro support. Lower Highs and Lower Lows formed while DXY strengthens get the marker, confirming bearish pressure.
Psych Level Awareness (off by default)
When enabled, swings near $50 or $100 round numbers display a ★ marker. Gold respects round numbers. A CHoCH at $3,300 carries more weight than one at $3,317.
Dashboard
Top-right panel shows current session with RSI thresholds, DXY state, structure bias, last swing types, and current RSI value.
Credits
Original RSI swing detection concept by ergunoz .
Session-adaptive thresholds, CHoCH/BOS detection, DXY integration, psych level awareness, and Gold-specific tuning by MatsukazeAlgo.
---
🇯🇵 日本語
ほとんどのMarket Structureインジケーターは価格のピボットだけを使う。このインジケーターはRSIの極値でスイングをフィルターし、本当に意味のあるスイングだけを検出する。
RSIが買われすぎに到達した時だけスイングハイが形成される。RSIが売られすぎに到達した時だけスイングローが形成される。RSIが極値まで振れない小さなプルバックは無視される。残るのはモメンタムで確認された構造変化のみ。
ergunozのRSI Swing Structure Indicatorをベースに、ゴールド専用の6つの改良を追加。
RSIベースのスイング検出
RSIが売られすぎ → 買われすぎに遷移 = 新しいスイングハイ確定(HH or LH)
RSIが買われすぎ → 売られすぎに遷移 = 新しいスイングロー確定(HL or LL)
RSIが極値にいる間、スイングは最高値/最安値に更新される。RSIが極値を離れたらスイングが確定。
セッション別RSI閾値
アジア(19:00–03:00 ET):RSI 65/35。緩い閾値でより多くのスイングを検出。ストップ狩りと反転が多いアジアの構造を早期に捕捉。
ロンドン(03:00–09:00 ET):RSI 70/30。標準閾値。モメンタムが伴ったスイングのみ通す。
NY(09:00–17:00 ET):RSI 70/30。ロンドンと同じ。
日足以上は標準70/30。
CHoCH / BOS検出
CHoCH(Change of Character):スイング構造がトレンドを崩す。Bullish構造でLHまたはLLが出現 = 転換。ゴールド色ラベル。
BOS(Break of Structure):スイング構造がトレンドを継続。Bullish構造で再びHH = 継続。ブルーグレーラベル。
DXYバイアス
DXYが弱い時のBullスイングに「$」マーカー。DXYが強い時のBearスイングに「$」マーカー。マクロ環境との整合を視覚化。
心理的価格帯(デフォルトOFF)
ONにすると、$50/$100付近のスイングに「★」マーカー。$3,300でのCHoCHは$3,317でのCHoCHより重みがある。
ダッシュボード
Session + RSI閾値 / DXY / Structure(BULLISH/BEARISH) / Last Swing / RSI値。
Indicatore Pine Script®






















