Multi Timeframe Fractal Map [Herman]Multi Timeframe Fractal Map
This script is a multi-timeframe chart-reading framework that evaluates how the current candle interacts with the previous candle’s range across several timeframes, then combines that higher-timeframe context with intermarket comparison, structural execution levels, and session reference prices on one chart.
The core concept behind the script is a range interaction and acceptance/rejection model:
first, higher timeframe candles are reconstructed on the active chart,
then the current higher timeframe candle is compared with the previous higher timeframe candle,
then the script evaluates whether price is accepting expansion beyond that prior range or rejecting it,
then correlated markets are checked for confirmation or divergence,
and only after that are lower timeframe structural levels used for execution reference.
The script does not generate automated buy/sell orders.
Its purpose is to organize context first and execution second.
Why these components are combined
In discretionary intraday trading, traders often read:
higher timeframe structure on one chart,
range interaction and liquidity events on another,
intermarket confirmation separately,
execution levels on lower timeframes,
and session anchors such as PDH/PDL or Daily Open somewhere else.
This separation can lead to inconsistent interpretation.
This script combines these elements because each one evaluates a specific stage of price behavior: range interaction defines direction, intermarket comparison evaluates confirmation, and lower-timeframe structure is only used after that context is established.
The intended order is:
define higher timeframe structure,
classify current interaction with the previous higher timeframe range,
check whether correlated markets confirm or diverge,
establish current price location using reference levels,
use lower timeframe structural levels only after that context is already defined.
For that reason, the script is not intended as a group of unrelated tools. Each part is included to evaluate a different stage of the same chart-reading process.
1) Higher timeframe candle reconstruction
The script reconstructs multiple higher timeframe candles directly on the active chart.
For each selected higher timeframe, it maintains rolling values for:
open,
high,
low,
close,
and time.
These values are built dynamically from lower timeframe data, so the candles update while they are still forming.
This allows the script to show:
the current developing HTF candle body and wick,
prior completed HTF candles,
current HTF range expansion,
and countdown information for the active HTF candle.
The purpose of reconstruction is to keep higher timeframe structure visible on the execution chart instead of requiring the user to switch layouts.
2) Higher timeframe range interaction model
For each selected higher timeframe, the script compares the current candle with the previous candle’s range.
Using the previous candle as C1 and the current candle as C2, it evaluates:
sweep high when C2 high exceeds C1 high,
sweep low when C2 low breaks below C1 low.
It then evaluates where C2 closes relative to C1:
close above C1 high = acceptance above the prior range,
close below C1 low = acceptance below the prior range,
sweep without close beyond the boundary = rejection / failed expansion.
If neither side is swept, or if both sides are swept without clear directional acceptance, the state is treated as neutral.
This classification defines whether price is:
expanding and being accepted,
expanding but being rejected,
or not interacting with the prior range in a meaningful way.
3) Candle progression logic (Candle 2 / Candle 3)
The script evaluates sequential HTF candle behavior.
Candle 2
A Candle 2 condition is identified when:
the previous candle has a defined direction,
the current candle interacts with the prior extreme (high or low),
and the current candle closes back through or beyond that level.
This marks a potential reversal attempt.
Candle 3
A Candle 3 condition requires:
a valid prior Candle 2,
directional continuation,
and a close condition relative to the prior range (configurable strength).
This marks follow-through after the initial reaction.
The purpose of this progression is to distinguish between:
an initial reaction at a level,
and confirmed expansion following that reaction.
4) HTF classification table
The classification table summarizes the same range interaction logic across all active higher timeframes.
For each timeframe, the script uses:
C2 high, low, close,
and C1 high, low.
Classification rules:
LONG → C2 closes above C1 high
SHORT → C2 closes below C1 low
AVOID → all other cases, including:
both sides swept,
no sweep,
sweep without acceptance.
This output is deterministic and reflects current HTF behavior.
A combined bias is calculated by counting agreement across timeframes.
It summarizes alignment, not prediction.
5) Intermarket comparison (SMT)
The script compares correlated index markets to evaluate confirmation or divergence.
General conditions:
bearish divergence → one market forms a higher high while another does not confirm,
bullish divergence → one market forms a lower low while another does not confirm.
This comparison is aligned with the same reconstructed HTF structure.
Its purpose is to evaluate whether a move is supported across markets or shows relative weakness.
6) Sweep visualization
The script highlights sweep behavior directly on higher timeframe candles.
A sweep occurs when price moves beyond a previous HTF high or low.
The subsequent close determines whether that move is accepted or rejected.
This is part of the same range interaction model and is not a separate signal.
7) CISD structural execution levels
CISD levels are derived from changes in candle direction on lower timeframes, using the open price of the candle where the directional shift occurs.
The script tracks these levels as:
pending → identified but not yet confirmed,
confirmed → price closes beyond the level.
These levels represent local structure and are intended for execution reference only after higher-timeframe context is established.
For example, if a higher timeframe shows acceptance above the previous range and correlated markets confirm the move, a CISD break in that direction can be used as execution alignment.
8) HTF imbalance (FVG)
The script evaluates imbalance using non-overlapping price ranges:
bullish imbalance → earlier high is below a later low,
bearish imbalance → earlier low is above a later high.
If price trades back through the zone, it is considered invalidated.
These zones are shown in the context of reconstructed HTF candles.
9) Reference levels (location)
The script plots:
Previous Day High / Low,
Previous Day midpoint (50%),
Daily Open,
Midnight Open,
4H Open.
These levels define location only and are not used for directional classification.
10) Optional time segmentation
The script can divide the session into fixed time blocks and track their high and low.
This allows observation of:
compression,
expansion,
and failed expansion
within repeated time intervals.
How to use the script
The script is intended to be used in sequence:
Observe higher timeframe candles to define structure.
Evaluate how the current candle interacts with the previous HTF range.
Determine whether expansion is accepted or rejected.
Check intermarket comparison for confirmation or divergence.
Review multi-timeframe classification for alignment.
Use reference levels to determine location.
Use CISD levels for execution only if higher-timeframe context is aligned.
Lower timeframe signals should not be used independently.
Intended use
This script is intended for traders who:
use multi-timeframe analysis,
focus on range interaction and structural behavior,
use intermarket comparison as context,
and require structured decision-making on one chart.
Not intended as
an automated trading system,
a standalone signal generator,
or a guarantee of future performance.
Credits
Portions of the higher timeframe candle reconstruction were adapted from open-source work by Çağrı Dikici and are used with permission.
Disclaimer
This script is provided for analytical and educational purposes only.
It does not constitute financial or investment advice.
All trading involves risk.
Pine Script® indicator


