Indicator · Pine Script v6 · On the chart

HA Colidation Breakout Structure

by eddiebelaval

This indicator detects consolidation zones, fair value gaps, and breakaway gaps on the price chart using Heikin-Ashi price calculations.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code826
Settings40inputs
LicenceNone stated
Last update3 months ago24 Jul 2026

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

HA Colidation Breakout Structure tracks overlapping candles to identify consolidation ranges and marks subsequent structural breakouts. Users can display bullish and bearish fair value gaps, filter breakouts originating strictly from consolidation zones, configure detection lengths, and customize mitigation tracking or removal once levels are crossed.

Details

Published by

eddiebelaval on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

SMC / ICT / price action, Breakout, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
FairValuebooltruefvg_show_fairvalue
Breakawaybooltruefvg_show_breakaway
Historyint500fvg_history
Period Lengthint4fvg_period_length
Only Show Break-away from Consolidationbooltruefvg_filter_consolidation
Mitigated BystringCenterfvg_mitigate_line
Remove Mitigatedboolfalsefvg_mitigate_remove
FVG Bullishcolorcolor.new(#B2FF59, 50)FVG Bullish
colorcolor.new(#B2FF59, 80)
colorcolor.new(#9598A1, 50)
FVG Bearishcolorcolor.new(#FFAB40, 50)FVG Bearish
colorcolor.new(#FFAB40, 80)
Show all 40 settings
SettingTypeDefaultVariable
colorcolor.new(#9598A1, 50)
Breakaway Bullishcolorcolor.new(#26C6DA, 50)Breakaway Bullish
colorcolor.new(#26C6DA, 80)
colorcolor.new(#9598A1, 50)
Breakaway Bearishcolorcolor.new(#E040FB, 50)Breakaway Bearish
colorcolor.new(#E040FB, 80)
colorcolor.new(#9598A1, 50)
Showbooltrueconsolidation_show
Historyint500consolidation_history
Consolidation Lengthint4consolidation_length
Omit Consecutivebooltrueconsolidation_filter_consecutive
Recent Candidate Onlybooltrueconsolidation_filter_candidate_recent
Mitigated BystringCenterconsolidation_mitigate_line
Remove Mitigatedboolfalseconsolidation_mitigate_remove
Bullishcolorcolor.new(#3D5AFE, 50)Bullish
colorcolor.new(#3D5AFE, 80)
colorcolor.new(#9598A1, 80)
bearishcolorcolor.new(#F50057, 50)bearish
colorcolor.new(#F50057, 80)
colorcolor.new(#9598A1, 80)
STboolfalseswing_point_show_st
ITbooltrueswing_point_show_it
LTbooltrueswing_point_show_lt
Historyint500swing_point_history
Highcolorcolor.new(color.orange, 30)High
colorcolor.new(color.white, 0)
Lowcolorcolor.new(color.lime, 30)Low
colorcolor.new(color.white, 0)
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

This indicator tracks smart money market structure directly on the price chart. It calculates dual-period swing highs and swing lows to detect Changes of Character (CHoCH), Breaks of Structure (BOS), inducements, and liquidity sweeps. When structural levels ar

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Apache-2.0 GitHub repository of Market Structure with Inducements & Sweeps [LuxAlgo]
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 10 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B
13 stars

This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume

This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated yesterday · MIT GitHub repository of Modern Wyckoff State Machine Lite [WavesUnchained]
9 stars

This multi-timeframe indicator detects and visualizes Smart Money Concepts (SMC) and ICT market structures on the price chart. It maps higher-timeframe dealing ranges, premium and discount zones, break of structure (BOS), change of character (CHoCH), order blo

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of SMC/ICT Zones Pro Generalized

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