Pine Script v6 · Strategy

IQ-ICT-SMC — Institutional Quant ICT SMC

Full multi-timeframe ICT / Smart Money Concepts strategy for XAUUSD intraday. Close-confirmed, no repaint, no look-ahead. Research and education only — not investment advice.

IQ_ICT_SMC.pine
1 221 lines · 68 489 bytes · md5 b14032…070f2 · rev 1.1
↓ Download .pine

Direct file URL: ./IQ_ICT_SMC.pine

Verified contents

Check Result
First line//@version=6
Declarationstrategy(...) overlay=true
Inputs139 input.*() calls
Orders4 strategy.entry · 12 strategy.exit · 12 strategy.close
Alerts8 alert() calls with JSON payload
HTF data8 request.security() calls
Bracket balance0 unmatched · 0 unclosed
Format patterns0 unquoted braces · payload built by concatenation

Install on TradingView

  1. Open an XAUUSD M5 chart.
  2. Bottom panel → Pine Editor → Open → New strategy.
  3. Delete the template, then paste the entire file contents.
  4. Save, then Add to chart.

Revision log

rev 1.1 — alert payload fix

The JSON alert payload was assembled with str.format() using patterns that contained unquoted { and } characters. The Pine reference requires every curly brace inside a format pattern to be balanced or quoted, so the first alert to fire raised “Error on bar N: Unmatched braces in the pattern” and stopped the script. The payload and the human-readable text are now built by plain string concatenation, so no format pattern is involved.

Known limitations

No access to real interbank order flow, order books, real delta or CVD — every "flow" figure is a bar-based proxy. Pine Script has no native economic calendar, so the news blackout window is a manual list. The Pine compiler is not available in this environment: syntax was checked statically (bracket balance, duplicate names, use-before-definition), not by compiling.

Research and education only. Not investment advice. No guaranteed profit.