Indicator · Pine Script v6 · On the chart

Advanced ICT Theory - A-ICT

by wings4

Advanced ICT Theory - A-ICT identifies institutional market structure patterns based on Smart Money Concepts directly on the price chart.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code1,483
Settings40inputs
LicenceNone stated
Last update11 months ago23 Nov 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Advanced ICT Theory - A-ICT detects displacement candles, order blocks, fair value gaps, trap zones, and reversal zones, tracking their mitigation status via price crosses or candle closes. Main inputs control displacement thresholds, ATR sizing filters, pivot lookbacks, volume confirmation, and visual styling. It renders classification boxes, mitigation lines, origin levels, and an informational dashboard. Users should note that structural identification references lookahead data.

Details

Published by

wings4 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Support & resistance, Candlestick patterns, Screeners & dashboards

Markets

Forex, Crypto, Stocks

Timeframes

M1-M5, M15-H1, H4 and above

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Min Displacement Candlesint2minDisplacementCandles
Mitigation MethodstringCrossmitigationMethod
Min Element Size (ATR)float0.5minElementSize
Max History Barsint300maxHistoryBars
Age Thresholdint50brokenAgeThreshold
Pending Timeoutint10pendingTimeout
Min Quality Thresholdint30minQualityThreshold
Internal Structure Lookbackint3internalPivotLookback
External Structure Lookbackint10externalPivotLookback
Major Swing Lookbackint20majorSwingLookback
Require Volume ConfirmationbooltruerequireVolumeConfirm
Require Candle Pattern ConfirmationbooltruerequireCandleConfirm
Show all 40 settings
SettingTypeDefaultVariable
Max Active Elementsint10maxElementsToDisplay
Show Identification BoxesbooltrueshowIdentificationBoxes
Show Pattern LinesbooltrueshowPatternLines
Show Origin LevelbooltrueshowOriginLine
Show Mitigation LevelsbooltrueshowMitigationLevels
Show Element LinesbooltrueshowElementLines
Show Trade Quality ScorebooltrueshowTradeScore
Box StylestringSolidboxStyle
Order Block Colorcolor#2962FFtype1BoxColor
Trap Zone Colorcolor#FF6B00type2BoxColor
Reversal Zone Colorcolor#00E676type3BoxColor
FVG Colorcolor#9C27B0fvgBoxColor
Box Transparencyint85boxTransparency
Origin Widthint3originLineWidth
Mitigation Widthint2mitigationLineWidth
Pattern Line Widthint2patternLineWidth
Label Offsetint5labelPosition
ThemestringProfessionalcolorScheme
Custom Origincolor#FFD700customOriginColor
Custom Mitigationcolor#00BCD4customMitigationColor
Show Main DashboardbooltrueshowDashboard
SizestringLargedashboardSize
PositionstringBottom RightdashboardPosition
Transparencyint20dashboardTransparency
Show Narrative DashboardbooltrueshowNarrativeDashboard
PositionstringBottom LeftnarrativeDashboardPosition
Transparencyint20narrativeTransparency
Show HTF AnalysisbooltrueshowHTF
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

46 stars

This overlay indicator draws a set of higher-timeframe candles on the price chart. The user sets the timeframe or lets it select automatically, plus candle count, size, offset, margin, and whether the candles are standard or Heikin Ashi. A table can show the a

Indicator v6 Support & resistanceCandlestick patterns Repaints
Updated 7 weeks ago · None stated GitHub repository of HTF Sweep Model with CISD Table

Fractal Reclaim Strength

by selimgrsoy0-commits
12 stars

The indicator tracks four-bar fractal sweep and reclaim setups on chart timeframes of 15 minutes and above. It calculates Reclaim Strength based on where C2 closes relative to C1's range and plots level lines for the swept C1 extreme and C2 extreme. An on-scre

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Fractal Reclaim Strength
575 stars

The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy
56 stars

This indicator identifies fractal-based pivot highs and lows to map out market structure directly on the price chart. It detects bullish and bearish structure breaks, automatically labeling Break of Structure (BOS) and Change of Character (ChoCH) events when p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Market Structure (Fractal)
53 stars

Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Apex Trend & Liquidity Master

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers