HTF CE [TakingProphets]

OVERVIEW
HTF CE [TakingProphets] marks one level and nothing else: the Consequent Encroachment of higher-timeframe fair value gaps.
It detects three-candle fair value gaps across up to five higher timeframes, then instead of drawing the full gap box it draws a single horizontal line at the gap's 50% midpoint, the Consequent Encroachment. Each timeframe gets its own color, line style, width, and timeframe tag.
This indicator does not provide trading signals, entries, or forecasts. It is a focused visualization aid for studying how price interacts with the midpoint of higher-timeframe fair value gaps within an ICT-style analytical framework.
Consequent Encroachment (CE) refers to the 50% level of a fair value gap. Within ICT-style education, price is commonly studied for how it reacts at this midpoint rather than the gap boundaries. This tool isolates that level so it can be reviewed without the visual weight of full gap boxes stacked across multiple timeframes.
WHY CE ONLY
-----------------------------------------------------------------------------------------------
A standard higher-timeframe fair value gap tool draws the full gap as a shaded box. Stack five timeframes of those boxes on one chart and the price action disappears underneath them.
HTF CE keeps the same detection engine but renders only the level that is being studied. The result is a clean chart with up to ten reference lines (a bullish and a bearish gap midpoint per timeframe), each tagged with its source timeframe, and nothing obscuring the candles.
Only the single closest bullish and closest bearish gap per timeframe is drawn at any time, so the chart stays relevant to current price rather than cluttered with historical gaps.
PURPOSE AND SCOPE
-----------------------------------------------------------------------------------------------
The tool serves as a research and study aid to document and analyze price behavior at higher-timeframe gap midpoints.
It is commonly used to:
Track the CE of the nearest higher-timeframe fair value gaps without chart clutter.
Study how price reacts at the 50% level versus the gap boundaries.
Review multi-timeframe CE confluence when several midpoints align at a similar price.
Journal how often CE levels hold or fail.
Teach the Consequent Encroachment concept in a mentorship or training context.
LOGIC STRUCTURE
-----------------------------------------------------------------------------------------------
HTF CE uses a rule-based sequence run independently on each selected higher timeframe.
Gap Detection
A three-candle fair value gap is identified on each higher timeframe.
Gaps that straddle a weekend are excluded.
Gap Size Filter
Each gap must exceed a minimum size measured relative to the average range of the three candles that formed it.
A single Gap Size Filter preset (Sensitive, Normal, Strict) controls this threshold, from catching small gaps to only large, clean ones.
CE Rendering
For each qualifying gap, a line is drawn at the midpoint between the gap boundaries.
Only the single closest bullish and closest bearish gap per timeframe is displayed, measured by distance from current price.
An optional label tags each line with its source timeframe.
Invalidation
A gap is removed when the higher timeframe closes through it, so stale levels clear automatically.
COMPONENTS AND VISUALS
-----------------------------------------------------------------------------------------------
CE Line — A horizontal line at the 50% midpoint of a higher-timeframe fair value gap.
CE Label — An optional label tagging each line with its source timeframe.
Per-Timeframe Styling — Independent bullish and bearish colors, line style, and width for each of the five timeframe slots.
INPUT CATEGORIES
-----------------------------------------------------------------------------------------------
General — Gap Size Filter preset (Sensitive, Normal, Strict).
CE Line — Label visibility, label color, and label size.
HTF1 through HTF5 — Each slot has its own on/off toggle, timeframe selector, bullish and bearish colors, line style, and line width.
USAGE GUIDELINES
-----------------------------------------------------------------------------------------------
HTF CE is suited for clean multi-timeframe review of gap midpoints.
Recommended educational workflows:
Enable two or three higher timeframes and study how price behaves as it approaches each CE.
Look for areas where CE levels from different timeframes cluster at a similar price.
Compare how price responds at CE versus at the outer boundaries of a gap.
Adjust the Gap Size Filter to study only larger, cleaner gaps.
Teach Consequent Encroachment in mentorship or training sessions.
The tool works across forex, futures, and crypto markets.
OPERATIONAL NOTES AND LIMITATIONS
-----------------------------------------------------------------------------------------------
Higher-timeframe gaps update on their own timeframe's data and will appear stepped relative to the chart.
A timeframe slot only renders when its selected timeframe is higher than the current chart timeframe.
Only the closest bullish and closest bearish gap per timeframe are shown by design.
Gaps are removed when the higher timeframe closes through them.
This tool draws CE lines only. It does not include gap boxes, setups, entries, or targets.
The CE lines are visual study aids only.
Enabling more timeframes increases the number of drawings and the calculation load.
ORIGINALITY AND ATTRIBUTION
-----------------------------------------------------------------------------------------------
The detection and rendering engine is written from scratch in Pine v6, using a three-candle gap detector, a range-relative gap-size filter, weekend-gap exclusion, per-timeframe proximity selection, higher-timeframe close invalidation, and a CE-only drawing system with independent per-timeframe styling.
Core concepts such as fair value gaps and Consequent Encroachment are publicly taught within ICT-style market education. This implementation was designed and engineered by TakingProphets.
TERMS AND DISCLAIMER
-----------------------------------------------------------------------------------------------
This indicator is for educational and informational use only. It does not provide financial advice or predictive output. Historical patterns do not guarantee future results. All users remain responsible for their own decisions. Use of this script implies agreement with TradingView's Terms of Use.
HTF CE [TakingProphets] marks one level and nothing else: the Consequent Encroachment of higher-timeframe fair value gaps.
It detects three-candle fair value gaps across up to five higher timeframes, then instead of drawing the full gap box it draws a single horizontal line at the gap's 50% midpoint, the Consequent Encroachment. Each timeframe gets its own color, line style, width, and timeframe tag.
This indicator does not provide trading signals, entries, or forecasts. It is a focused visualization aid for studying how price interacts with the midpoint of higher-timeframe fair value gaps within an ICT-style analytical framework.
Consequent Encroachment (CE) refers to the 50% level of a fair value gap. Within ICT-style education, price is commonly studied for how it reacts at this midpoint rather than the gap boundaries. This tool isolates that level so it can be reviewed without the visual weight of full gap boxes stacked across multiple timeframes.
WHY CE ONLY
-----------------------------------------------------------------------------------------------
A standard higher-timeframe fair value gap tool draws the full gap as a shaded box. Stack five timeframes of those boxes on one chart and the price action disappears underneath them.
HTF CE keeps the same detection engine but renders only the level that is being studied. The result is a clean chart with up to ten reference lines (a bullish and a bearish gap midpoint per timeframe), each tagged with its source timeframe, and nothing obscuring the candles.
Only the single closest bullish and closest bearish gap per timeframe is drawn at any time, so the chart stays relevant to current price rather than cluttered with historical gaps.
PURPOSE AND SCOPE
-----------------------------------------------------------------------------------------------
The tool serves as a research and study aid to document and analyze price behavior at higher-timeframe gap midpoints.
It is commonly used to:
Track the CE of the nearest higher-timeframe fair value gaps without chart clutter.
Study how price reacts at the 50% level versus the gap boundaries.
Review multi-timeframe CE confluence when several midpoints align at a similar price.
Journal how often CE levels hold or fail.
Teach the Consequent Encroachment concept in a mentorship or training context.
LOGIC STRUCTURE
-----------------------------------------------------------------------------------------------
HTF CE uses a rule-based sequence run independently on each selected higher timeframe.
Gap Detection
A three-candle fair value gap is identified on each higher timeframe.
Gaps that straddle a weekend are excluded.
Gap Size Filter
Each gap must exceed a minimum size measured relative to the average range of the three candles that formed it.
A single Gap Size Filter preset (Sensitive, Normal, Strict) controls this threshold, from catching small gaps to only large, clean ones.
CE Rendering
For each qualifying gap, a line is drawn at the midpoint between the gap boundaries.
Only the single closest bullish and closest bearish gap per timeframe is displayed, measured by distance from current price.
An optional label tags each line with its source timeframe.
Invalidation
A gap is removed when the higher timeframe closes through it, so stale levels clear automatically.
COMPONENTS AND VISUALS
-----------------------------------------------------------------------------------------------
CE Line — A horizontal line at the 50% midpoint of a higher-timeframe fair value gap.
CE Label — An optional label tagging each line with its source timeframe.
Per-Timeframe Styling — Independent bullish and bearish colors, line style, and width for each of the five timeframe slots.
INPUT CATEGORIES
-----------------------------------------------------------------------------------------------
General — Gap Size Filter preset (Sensitive, Normal, Strict).
CE Line — Label visibility, label color, and label size.
HTF1 through HTF5 — Each slot has its own on/off toggle, timeframe selector, bullish and bearish colors, line style, and line width.
USAGE GUIDELINES
-----------------------------------------------------------------------------------------------
HTF CE is suited for clean multi-timeframe review of gap midpoints.
Recommended educational workflows:
Enable two or three higher timeframes and study how price behaves as it approaches each CE.
Look for areas where CE levels from different timeframes cluster at a similar price.
Compare how price responds at CE versus at the outer boundaries of a gap.
Adjust the Gap Size Filter to study only larger, cleaner gaps.
Teach Consequent Encroachment in mentorship or training sessions.
The tool works across forex, futures, and crypto markets.
OPERATIONAL NOTES AND LIMITATIONS
-----------------------------------------------------------------------------------------------
Higher-timeframe gaps update on their own timeframe's data and will appear stepped relative to the chart.
A timeframe slot only renders when its selected timeframe is higher than the current chart timeframe.
Only the closest bullish and closest bearish gap per timeframe are shown by design.
Gaps are removed when the higher timeframe closes through them.
This tool draws CE lines only. It does not include gap boxes, setups, entries, or targets.
The CE lines are visual study aids only.
Enabling more timeframes increases the number of drawings and the calculation load.
ORIGINALITY AND ATTRIBUTION
-----------------------------------------------------------------------------------------------
The detection and rendering engine is written from scratch in Pine v6, using a three-candle gap detector, a range-relative gap-size filter, weekend-gap exclusion, per-timeframe proximity selection, higher-timeframe close invalidation, and a CE-only drawing system with independent per-timeframe styling.
Core concepts such as fair value gaps and Consequent Encroachment are publicly taught within ICT-style market education. This implementation was designed and engineered by TakingProphets.
TERMS AND DISCLAIMER
-----------------------------------------------------------------------------------------------
This indicator is for educational and informational use only. It does not provide financial advice or predictive output. Historical patterns do not guarantee future results. All users remain responsible for their own decisions. Use of this script implies agreement with TradingView's Terms of Use.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.