OPEN-SOURCE SCRIPT
Güncellendi MSS Boxes

What it is
The MSS Boxes indicator finds Market Structure Shifts (a decisive break in structure with displacement) and draws actionable zones (“boxes”) from the candle that caused the shift. Those boxes then act as mitigation / continuation areas for the rest of the session (or until they’re invalidated). It’s designed to be clean, non-repainting, and to work as a confluence layer with your SD and ATR Trigger grids.
What you’ll see on the chart
Green boxes for bullish MSS (demand); red boxes for bearish MSS (supply).
A compact label at the box origin (e.g., BOS↑ / BOS↓, or CHOCH) with the time-frame tag if you enable MTF.
Optional status badge on the right edge:
active (untouched), mitigated (tapped and respected), invalid (closed through), expired.
Clean behavior: once a box is printed it does not slide; coordinates are fixed to the confirmed signal candle.
Inputs (quick guide)
Swing detection
Swing length (for swing highs/lows), lookback for break validity, strict wick rule on/off.
Displacement factor (0 = off; typical 1.2–2.0).
Box recipe
Use full wick vs. use body for top/bottom.
Minimum box height (ticks), auto-merge overlapping (joins adjacent boxes of the same side).
Max lifetime (bars), session reset (e.g., clear on NY 18:00).
MTF alignment
Toggle H1 / M15 filters; choose “Plot only when aligned” vs “Plot all but alert only when aligned.”
Visuals
Fill/outline colors, opacity, label size, extend style (full-width vs to last bar).
The MSS Boxes indicator finds Market Structure Shifts (a decisive break in structure with displacement) and draws actionable zones (“boxes”) from the candle that caused the shift. Those boxes then act as mitigation / continuation areas for the rest of the session (or until they’re invalidated). It’s designed to be clean, non-repainting, and to work as a confluence layer with your SD and ATR Trigger grids.
What you’ll see on the chart
Green boxes for bullish MSS (demand); red boxes for bearish MSS (supply).
A compact label at the box origin (e.g., BOS↑ / BOS↓, or CHOCH) with the time-frame tag if you enable MTF.
Optional status badge on the right edge:
active (untouched), mitigated (tapped and respected), invalid (closed through), expired.
Clean behavior: once a box is printed it does not slide; coordinates are fixed to the confirmed signal candle.
Inputs (quick guide)
Swing detection
Swing length (for swing highs/lows), lookback for break validity, strict wick rule on/off.
Displacement factor (0 = off; typical 1.2–2.0).
Box recipe
Use full wick vs. use body for top/bottom.
Minimum box height (ticks), auto-merge overlapping (joins adjacent boxes of the same side).
Max lifetime (bars), session reset (e.g., clear on NY 18:00).
MTF alignment
Toggle H1 / M15 filters; choose “Plot only when aligned” vs “Plot all but alert only when aligned.”
Visuals
Fill/outline colors, opacity, label size, extend style (full-width vs to last bar).
Sürüm Notları
Updated so the boxes don't change until candles closeSürüm Notları
Updated to a clean published image and new nameAçık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.