OPEN-SOURCE SCRIPT

Swing Volume Structure [JOAT]

1 254
Swing Volume Structure [JOAT]

Introduction

Swing Volume Structure is an open-source market structure indicator focused on confirmed pivots, volume-backed breakouts, sweeps, retests, and compression. It is designed to keep structure analysis clean by confirming pivots with right-side bars and confirming actionable states on bar close.

The script helps traders distinguish ordinary swing movement from structure breaks that occur with volume expansion or sweep behavior.

スナップショット

Core Concepts

1. Confirmed Pivot Structure
Pivot highs and lows are confirmed using configurable left and right bars. Once confirmed, pivots are classified into structural context such as higher high, higher low, lower high, or lower low.

2. Volume Confirmation
Breakout states are scored using volume relative to a moving average. Expansion volume strengthens breakout quality, while quiet volume can mark compression.

3. Sweep and Reclaim Behavior
The script detects when price probes beyond a prior swing and then reclaims or rejects the level. This helps separate liquidity sweeps from clean breakouts.

4. Retest Logic
After a structural break, retest behavior can support continuation when price returns to the broken area and holds.

5. Entry and Exit Rails
Confirmed breakout or sweep states can draw entry, stop, TP1, and TP2 references using ATR and structure.

Features

  • Confirmed HH/HL/LH/LL structure: Pivots are classified after confirmation.
  • Volume-backed breakouts: Break quality is strengthened by relative volume expansion.
  • Sweep reclaim/reject states: Identifies failed breaks beyond prior swing levels.
  • Inside compression detection: Detects quiet, compressed conditions.
  • Supply/demand zones: Optional zones around important swing areas.
  • Entry/exit rails: Optional risk references for accepted states.
  • Candle tinting: Bars can reflect current structure state.
  • HUD: Shows state, bias, pivot class, volume, nearest support/resistance, score, and bar counts.
  • Alerts: Long breakout, short breakout, bullish sweep, bearish sweep, inside compression, and volume expansion.


Input Parameters

Structure: Pivot Left, Pivot Right, ATR Length, Zone ATR Thickness, Zone Extension Bars.

Volume and Signals: Volume Average Length, Expansion Multiplier, Quiet Compression Threshold, Minimum Breakout Score, State Cooldown Bars.

Risk and Visuals: Stop ATR Buffer, TP1 R, TP2 R, Rail Projection Bars, Tint Candles by State, Connect Confirmed Swings, Show Supply/Demand Zones, Pivot Labels, Active Support/Resistance, Structure HUD.

How to Use This Indicator

Step 1: Read structure bias
Use the HUD and swing context to identify whether structure is improving, deteriorating, or balanced.

Step 2: Separate breakouts from sweeps
A breakout shows acceptance beyond structure. A sweep shows a probe and rejection or reclaim. These are different conditions.

Step 3: Check volume
Volume expansion can increase the importance of a break. Quiet volume can identify compression or lower-conviction movement.

Indicator Limitations

  • Pivots confirm only after the configured right bars complete.
  • Volume confirmation depends on the quality of the symbol's volume feed.
  • Supply/demand zones are approximations around swing areas, not exact order book data.
  • Breakout and sweep states can fail during high-volatility reversals.


Originality Statement

Swing Volume Structure is original in how it combines confirmed pivot classification, volume expansion scoring, sweep/reclaim logic, retests, compression states, optional zones, candle states, and ATR risk rails into a single structure tool.

Disclaimer

This script is provided for educational and informational purposes only. It is not financial advice or a trade recommendation. Structure signals are based on historical candles and can fail. Use proper risk management.

Made with passion by jackofalltrades

免責事項

これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。