OPEN-SOURCE SCRIPT

SMC Setup: Sweep + CHoCH + FVG v21.1

3 040
SMC Setup: Sweep + CHoCH + FVG v21.1 (Multi-Timeframe Execution Engine)
Introducing a complete, institutional-grade Smart Money Concepts (SMC) execution algorithm. This is not just a standard sweep indicator; it is a "3D" Top-Down Analysis Engine designed to flawlessly mimic how professional human traders track order flow across multiple timeframes, natively executing on your lower-timeframe charts.

Built to solve the common pitfalls of algorithmic SMC (such as repainting, MTF blindness, and zero-width visual crashes), this indicator tracks Major (External) and Minor (Internal) liquidity simultaneously and automates your entire entry and trade management visualization.

🔥 Core Features
Multi-Timeframe (MTF) "Time-Warp" Engine: Track 15-minute and 5-minute structural liquidity sweeps natively on the 1-minute execution chart. The script uses internal mathematical multipliers and a massive 5000-bar deep memory buffer to track HTF structure without relying on laggy or repainting request.security() calls.

Dual-Fractal Liquidity Tracking: * Solid Blue Lines: Tracks Major/External Higher Timeframe liquidity peaks.

Dotted Blue Lines: Tracks Minor/Internal Lower Timeframe pullbacks for aggressive continuation order flow.

Two Selectable Entry Models:

BOS Breakout: For aggressive momentum traders. Executes the exact millisecond the micro-structure BOS (Break of Structure/CHoCH) line is cracked.

FVG Pullback: For conservative traders. Waits for a Break of Structure, verifies a Fair Value Gap has formed, and sets a limit entry exactly at the FVG boundary.

Dynamic Visual Trade Management: The script automatically generates a physical Risk Zone Box (mimicking the native TradingView Short/Long Position tools) and projects dynamic, trailing lines for your Entry, Stop Loss, TP1, TP2, and Full Target based on customizable Risk:Reward settings.

Webhook-Ready Alerts: Generates highly detailed, once-per-bar-close alerts containing dynamic strings for Entry Price, Stop Loss, and all Take Profit targets, making it perfect for automated execution via 3Commas, PineConnector, etc.

⚙️ How It Works (The Logic Flow)
The Hunt: The algorithm maps higher timeframe peaks (e.g., 15m/5m) and local micro-peaks simultaneously.

The Sweep: When price sweeps a mapped liquidity line, the algorithm "arms" the setup and locks the Stop Loss to the highest point of the sweep.

The CHoCH/BOS: It tracks the immediate local pullback prior to the sweep. If price breaks this micro-structure support, the setup is confirmed.

The Execution: Depending on your selected model, it either triggers instantly on the BOS breakout or waits for a bearish FVG pullback.

The Management: Target lines trail alongside price action and automatically lock into place the moment the trade hits the Full Target or the Stop Loss.

💡 Best Practices
Optimal Use: Load this indicator on the 1-minute chart. Set the Major HTF Multiplier to 15 and the Minor HTF Multiplier to 5. This allows the script to see 15m and 5m market structure while leveraging the 1-minute candles for surgical entries.

Asset Classes: Highly effective on high-volume assets like Indices (NAS100, US30, SPX) and Forex (EURUSD, XAUUSD) during the London or New York sessions.

免責事項

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