Multi-Timeframe Trend Matrix [JOAT]Multi-Timeframe Trend Matrix
Reads several timeframes with several methods at once and scores their agreement into a single alignment signal — without lookahead.
What it is
Trading a single timeframe blinds you to the larger context; watching many by eye is slow and inconsistent. This indicator evaluates a grid of timeframes and trend methods, turns the whole grid into one alignment score, and signals when top-down agreement forms. It is an original multi-timeframe aggregation tool built to avoid the common pitfalls of higher-timeframe requests.
How it works
• The matrix — a set of higher and lower timeframes is each assessed by several independent trend methods (such as a moving-average relationship, a directional trend measure and a momentum read). Each cell of the grid returns simply bullish or bearish, so the picture is easy to interpret.
• No lookahead — every higher-timeframe value is pulled with lookahead disabled, so the indicator never borrows future data from an unclosed higher-timeframe bar. This is a deliberate, disclosed design choice that keeps the signals honest and non-repainting on historical bars.
• Alignment score — the grid is condensed into one signed score representing how strongly all timeframes and methods agree. Full agreement produces a strong reading; a split grid produces a weak, near-neutral one.
• State-machine signals — a Buy fires when alignment turns sufficiently bullish from a non-bullish state; a Sell is the mirror. Requiring a state change means the matrix will not re-signal the same direction repeatedly — the signals are self-spacing.
Trade levels
Each signal draws a red risk box to the ATR stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable alignment-matrix panel displays every timeframe-by-method cell as bullish or bearish, a bipolar alignment-score headline, the active signal, a conviction estimate, and a live first-target-before-stop tally from closed bars only. The grid shows exactly which timeframes agree and which disagree.
How to use it
• Works on any asset; pick a base timeframe and let the grid supply the higher-timeframe context.
• Favour entries when the grid is broadly aligned; be cautious when it is mixed.
• Use it as a top-down filter alongside your own entry method, or take its aligned signals directly.
Settings
The set of timeframes, the methods and their lengths, the alignment threshold, ATR risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is the aggregation framework: a disciplined, lookahead-free multi-timeframe, multi-method grid condensed into one transparent alignment score with a state-machine trigger. Seeing the full grid — not just a final arrow — is what lets a trader trust or override the signal for themselves.
Notes and limitations
• Higher-timeframe values update only as those bars close, so alignment can shift when a higher-timeframe bar completes — this is expected and prevents lookahead bias.
• Strong alignment can still precede a reversal; agreement is context, not certainty.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
インジケーター

Dynamic HTF GapsAutomatically puts higher timeframe FVGs on screen.
Easily see higher timeframe Fair Value Gaps on any lower timeframe chart.
This helps you to understand why price reacts the way that it does, and also helps you to predict what may be coming ahead.
📈 Visual Behavior
Gaps actually change their appearance to reflect whether they have been entered and/or mitigated. This is incredibly useful for predicting behavior.
New, untouched, higher timeframe fair value gaps (FVGs) are purple with a solid border.
Once price has entered into a gap, the color is changed to blue, and the border becomes dotted. This is where we typically see price react sharply to the gap.
After the full FVG has been mitigated, the border becomes dashed, to indicate that the next expected behavior is a full exit (one full candle completely formed outside of the gap).
Once price has fully exited the gap, it turns to a faint gray box (for historical purposes) and this is where we typically see price begin its next move -- usually an aggressive move hunting for the next gap.
📈 Higher Timeframes
The higher timeframe is chosen dynamically based on whatever your current timeframe is.
1m -> 5m
2m -> 5m
3m -> 5m
5m -> 1h
10m -> 2m
15m -> 4H
1H -> 1D
4H -> 1W
1D -> 1W
1W -> 1M
1M -> 3M
3M -> 1Y
📈 Alert Conditions
This script also provides an alert condition for those who want to know when a new gap has been formed. For example, if your strategy involves looking for a higher timeframe gap to align with a lower timeframe gap for a futures or forex move. Or, perhaps you like to open an Options position betting on the gap to fill soon. インジケーター

ストラテジー

インジケーター

MTF Range Tracker+ (M1D)OVERVIEW
MTF Range Tracker+ draws the Daily, Weekly and Monthly trading ranges as clean, connected boxes directly on your chart, then projects each range's High, Low and Equilibrium into a compact Power-of-Three (PO3) candle stack on the right. It adds Average Daily / Weekly / Monthly Range levels (ADR / AWR / AMR) and a small dashboard that tells you, at a glance, how much of each average range the current period has already used.
It is a top-down, time-based framework tool. Instead of hunting individual signals, it lays out the higher-timeframe structure — where price is inside its daily, weekly and monthly range (premium vs discount), how much room is statistically left, and which levels are acting as liquidity or as a magnet — so you can build a bias and plan trades around it.
Everything is drawn on bar close and completed ranges do not repaint.
WHAT IT PLOTS
Period range boxes (Daily / Weekly / Monthly) — each completed period is boxed from its high to its low across its own bars. Consecutive periods share their vertical dividers, so a run of days (or weeks, or months) reads as one connected structure rather than separate rectangles. The current, still-forming period is drawn live and left open on the right so it visibly flows into the projection.
Range projection to the PO3 candles — the window High and window Low (the highest high and lowest low across the periods currently shown) are drawn from the exact origin candle where each extreme formed, straight across to a compact PO3 candle that represents the range.
PO3 candle stack — each displayed period is also rendered as one compact candle to the right of price, grouped by timeframe (Daily, then Weekly, then Monthly) — a fast higher-timeframe read without leaving your execution chart.
ADR / AWR / AMR levels — the Average Daily, Weekly and Monthly Range is projected from the current period's open as +/- the full average, with optional +/- 1/3 levels.
Dashboard (M1D™) — a small monospace table showing, per timeframe, the percentage of the average range already used this period and the average range itself in points.
KEY DEFINITIONS
Equilibrium (EQ) — the 50% level of a range. Above EQ is a PREMIUM (relatively expensive) area; below EQ is a DISCOUNT (relatively cheap) area. This premium/discount read is the backbone of building bias.
ADR / AWR / AMR (Average Daily / Weekly / Monthly Range) — the average of the last N completed period ranges (high minus low). ADR answers "how far does this market usually travel in a day?" AWR and AMR answer the same for a week and a month. Lengths are adjustable.
Used % (dashboard) — how far the current period has already travelled relative to its average range: (this period's high − low) / average range × 100. Example: "1D 58%" means today has already covered 58% of a typical daily range. A low reading means the period still has room to expand; near or over 100% means it's already extended for its type, and the value turns to the Low colour past 100% as a visual flag.
HOW TO USE IT
Monthly bias (the widest context)
Is price in the monthly PREMIUM (above MEQ) or DISCOUNT (below MEQ)? That frames whether you are, broadly, looking to sell rallies or buy dips within the monthly range.
MH and ML are the monthly liquidity extremes — obvious targets and obvious places for stops to rest.
The monthly Used % tells you whether the month is early (room to run) or already stretched.
Weekly bias (the swing context)
Same premium/discount logic against WEQ. A weekly discount that aligns with a monthly discount is a stronger location to look for longs, and vice-versa.
WH / WL frame the week's liquidity; AWR frames how much more the week can reasonably travel.
Daily bias and trade planning (the execution context)
Use the previous day's DH / DL as liquidity references and DEQ as a common draw / target.
Use ADR to plan realistic targets: if only ~40% of the ADR is used and price is in discount below DEQ, a move back toward DEQ or the ADR+ level is a measured objective. If ~90% of the ADR is already used, expectations for further same-direction travel should be lower.
The +/- 1/3 ADR levels give intraday interim objectives and areas where extended moves often pause.
Reading the PO3 stack
Glance at the daily PO3 candles for the recent daily rhythm (expansion vs consolidation, up-closes vs down-closes) and at the weekly / monthly candle for the dominant higher-timeframe direction — all without switching charts.
A simple top-down routine
Monthly: note premium/discount and month range used.
Weekly: note premium/discount and where price sits vs WH / WL.
Daily: check ADR used and whether price is reaching for DH / DL or drawing back to DEQ.
Drop to your execution timeframe and take entries only in the direction and location the higher-timeframe ranges support.
SETTINGS
Ranges — toggle Daily / Weekly / Monthly and set how many completed periods to show (Days 1–10, Weeks 1–3, Months 1–2). The forming period always draws.
Range Style — box outline, High / Low / EQ colours (blue high / red low by default; set both to black for a fully neutral chart), and whether to connect the ranges to the PO3 candles.
PO3 Candles — show/hide, offset, width, spacing, wick width, per-cluster timeframe tag, EQ tick, and the bull/bear body / border / wick colours.
Average Ranges — enable ADR / AWR / AMR lines, set each averaging length, and toggle the 1/3 levels.
Dashboard — show/hide, position, text size.
Text — compact labels and independent size controls for the per-box and the projection / average labels.
HOW IT IS CALCULATED (and repainting)
Period ranges are captured natively from the chart: on each Daily / Weekly / Monthly rollover the completed period's high, low, open and the bars where its high and low printed are stored, then a new period starts. Completed boxes are fixed and do not repaint.
The weekly period is anchored to the weekend reopen (the Sunday session), so a single mid-week market holiday will not split a week into two; daily and monthly periods roll on their normal calendar boundaries.
ADR / AWR / AMR use confirmed higher-timeframe values (previous completed bar), the standard non-repainting approach.
Because monthly and weekly boxes need enough chart history to cover those periods, run the tool on an intraday-to-daily timeframe with sufficient loaded history (best on 15-minute charts and higher).
NOTES & DISCLAIMER
This indicator is an analytical and planning tool. It does not generate buy/sell signals, does not predict future price, and makes no representation about trading performance. Average-range statistics describe typical past behavior and can be exceeded or undershot at any time. Nothing here is financial advice — always do your own analysis and manage risk. Use it as one input in your own process. インジケーター

インジケーター

HTF Candle PO3 AMD SessionsHTF Session Dashboard (Higher Timeframe Candles)
Core idea: This indicator allows you to view the price action of a Higher Timeframe (HTF) drawn as full candles directly on your current lower timeframe chart. It's designed to keep you aware of the macro market structure without needing to constantly switch timeframes.
How It Works
Instead of just showing standard HTF levels, this indicator dynamically builds and projects the current day's higher timeframe candles (e.g., 4-Hour candles) off to the right side of your active chart (e.g., a 1-minute or 5-minute chart).
The candles are constructed in real-time. As price moves on your lower timeframe, the active "current" HTF candle will grow its wicks and adjust its body live.
Key Features
Live HTF Candle Projection: Displays the sequence of HTF candles that make up the current trading day, spaced neatly to the right of the current price action.
Session Extremes: Automatically draws dotted reference lines stretching across your chart to highlight the absolute High, Low, Body High, and Body Low of the entire current session.
Live Countdown Timer: Shows a dynamic timer above and below the candle cluster indicating exactly how much time is left until the active HTF candle closes.
Hour Labels: Every HTF candle has a small label indicating its open hour (with an adjustable timezone offset setting) to help you quickly identify Kill Zones within the macro candles.
Visual Customization: Fully adjustable body width, transparency, spacing, offset distance, and bull/bear color schemes.
Clean Daily Reset: The indicator automatically clears the prior day's candles at midnight (exchange time) and begins building the new sequence, keeping your chart uncluttered.
Why Use This?
When trading intraday (like on a 1m chart), it's easy to get lost in the noise and trade right into a major 4-Hour support or resistance level. By projecting the 4-Hour candles directly onto your 1-minute chart, you always know exactly where you are relative to the higher timeframe narrative and structure.
Recommended Settings
HTF Setting: 240 (4 Hours) or 60 (1 Hour) when trading on a 1m–15m chart.
Hour Label Offset: Adjust this (e.g., +1 or -1) if you want the candle hour labels to match a specific local time zone (like EST) rather than exchange time.
インジケーター

インジケーター

CandelaCharts - HTF Mappings📝 Overview
The CandelaCharts - HTF Mappings indicator seamlessly overlays higher timeframe (HTF) candles directly onto your current chart. It allows traders to visualize the broader market context without switching timeframes, making it easier to spot macro trends, support/resistance, and price action dynamics.
📦 Features
Dual HTF Overlays : Display up to two distinct higher timeframe candles simultaneously.
Right-Side Panel : View the current state of your selected HTFs elegantly displayed on the right margin.
Volatility-Adjusted Opacity : Candle bodies dynamically adjust their opacity based on the Average True Range (ATR), giving you a visual representation of market volatility.
Historical Candles : Project a defined number of past HTF candles to analyze previous price action on a macro level.
HTF Sweeps : Automatically detect and project liquidity sweep lines from mapped HTF candles. Sweeps precisely anchor to the HTF high/low wicks and persist until crossed by current price action.
Trend Lines : Optionally draw a trend line connecting the open and close prices within each mapped HTF candle to track internal momentum.
Customizable Visuals : Full control over colors, wick widths, vertical separators, and timeframe/time labels.
⚙️ Settings
Timezone : Set the timezone used for displaying candle timestamps.
HTF I & II : Configure the timeframes, historical count, colors (bull/bear, body/border), wicks, separators, trend lines, and label visibilities for each HTF.
Sweeps : Customize sweep line colors, width, styling, and selectively display or hide invalidated (crossed) sweeps.
HTF Settings : Adjust the position, spacing, margin, and size of the right-side HTF panel.
⚡️ Showcase
Mapped HTF Candles
HTF Sweeps
HTF Overlays with Trend Lines
Dual HTF Overlays
🚨 Alerts
New HTF Candle : Triggers an alert whenever a new higher timeframe candle opens, keeping you updated on macro shifts without having to constantly monitor the chart.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
インジケーター

HTF Power of Three @SafarTradesHTF Power of Three
HTF Power of Three is a higher timeframe visualization framework designed to project a developing Daily, Weekly, or Monthly candle directly onto a lower timeframe chart.
The indicator is built around ICT's Power of Three (PO3) concept, allowing traders to monitor the current higher timeframe range and observe how price develops within that structure throughout the session.
Rather than repeatedly switching between execution and higher timeframes, traders can maintain awareness of the active higher timeframe candle while remaining focused on lower timeframe execution.
Many traders use the Daily, Weekly, or Monthly candle as a reference for directional bias, range analysis, and Power of Three development. However, viewing these structures traditionally requires frequent timeframe changes.
HTF Power of Three solves this by projecting the active higher timeframe candle directly onto the chart, allowing traders to continuously monitor:
• Current higher timeframe range
• Relative position of current price within that range
• Expansion of the active candle as new price data forms
• Potential accumulation, manipulation, and distribution development
• Higher timeframe context during lower timeframe execution
Power of Three Framework
The indicator is designed to help traders visualize how price is developing inside the active higher timeframe range.
As the higher timeframe candle evolves, the projected structure updates in real time, allowing traders to monitor changes in range expansion, directional movement, and overall delivery without leaving the execution chart.
By maintaining visibility of the active higher timeframe candle, traders can better understand where current price is trading relative to the projected range and how the developing structure aligns with their market narrative.
Higher Timeframe Reference Levels
The projected candle includes key higher timeframe reference points that help traders maintain context throughout the session.
Optional display elements include:
• Open
• High
• Low
• Current Close
• Range Information
• Price-Based Range Measurements
• Tick-Based Range Measurements
These references allow traders to quickly evaluate the state of the developing higher timeframe candle without requiring separate charts.
Customization
The indicator includes extensive display controls allowing users to customize:
• Daily, Weekly, or Monthly projections
• Projection positioning and offset
• Bullish and bearish candle appearance
• Wick, border, and body styling
• OHLC label visibility
• Range table visibility
• Table positioning
• Range display format
• Daily calculation method options
Intended Use
HTF Power of Three is designed for traders who combine lower timeframe execution with higher timeframe narrative and range analysis.
By projecting the active Daily, Weekly, or Monthly candle directly onto the chart, the indicator provides continuous visibility of higher timeframe structure while reducing the need for constant timeframe switching.
インジケーター

OhMyHtfLibraryLibrary "OhMyHtfLibrary"
HTF candle platform: timeframe alignment, profiles, and (future) packed OHLC / draw helpers. Import as `import daggerok/OhMyHtfLibrary/1 as omhl`. Sweep/OB domain → future `OhMyHtfSweepLibrary` (`omhsl`).
resolveHtfContext(chart_tf_seconds, default_htf, default_candle_count, align_ctf_max_seconds, align_htf, align_enabled, profile_ctf_exact_seconds, profile_htf, profile_enabled, profile_candle_counts)
Resolves HTF string, enable flag, and candle count from Timeframes Alignment + Profiles.
TFA: first alignment row where `chart_tf_seconds <= align_ctf_max_seconds ` wins.
Profiles: first enabled row where `chart_tf_seconds == profile_ctf_exact_seconds ` overrides TFA.
Parameters:
chart_tf_seconds (int) : Chart timeframe in seconds.
default_htf (string) : Fallback HTF when no alignment rule matches.
default_candle_count (int) : Default HTF candle count (HTF Candles input).
align_ctf_max_seconds (array) : Upper-bound CTF seconds per TFA row (length 14).
align_htf (array) : HTF string per TFA row.
align_enabled (array) : Enabled flag per TFA row.
profile_ctf_exact_seconds (array) : Exact chart TF seconds per profile row (length 12).
profile_htf (array) : HTF string per profile row.
profile_enabled (array) : Profile row enabled flags.
profile_candle_counts (array) : Candle count per profile row.
Returns: `HtfContext` with resolved settings.
HtfContext
Resolved HTF timeframe settings for the current chart.
Fields:
htf (series string) : Higher timeframe string for `request.security` and draw logic.
is_enabled (series bool) : Whether HTF features are active for this chart TF (TFA enable flag or profile override).
candle_count (series int) : Number of HTF candles to display (profile may override default).
profile_override (series bool) : True when a profile row matched (exact CTF). ライブラリ

FVG + HTF Equilibrium (True Mitigation V14.2)FVG + HTF Equilibrium (True Mitigation V14.2)
อินดิเคเตอร์บอก แนวแท่งคู่(ราคาปิดแท่ง และราคาเปิดของแท่งถัดไป ราคาใกล้เคียงกัน) และ FVG
2 กลไกหลักขับเคลื่อนระบบ
1. Fair Value Gaps (FVG) – โซนความไม่สมดุลของราคา
Bullish FVG (กล่องสี Teal): โซนแรงซื้อรุนแรง ราคาเกิดช่องว่าง (Imbalance) มักลงมาทดสอบแล้วเด้งขึ้นต่อ
Bearish FVG (กล่องสีชมพู/ม่วง): โซนแรงขายรุนแรง มักรีบาวด์ขึ้นมาทดสอบแล้วร่วงต่อ
Dynamic Resizing: กล่องจะหดตัวลงตามจริงเมื่อราคาเข้าถม (Filled) และจะลบออกทันทีหากราคาปิดทะลุโซน
2. HTF Equilibrium – แนวรับ-แนวต้านแท่งคู่
Concept: ระบบดึงข้อมูลข้ามไทม์เฟรม (5m, 15m, 30m, 1h, 4h, 1D) ตรวจจับแท่งเทียนคู่ขัดแย้งในอดีต (เช่น เขียวเต็มแล้วแดงทุบสวนทันที) ณ ระดับราคาที่มีคำสั่งซื้อขายหนาแน่น
True Mitigation 100%:
- ฝั่งไทม์เฟรมใหญ่ (HTF) จะสกรีนตัวเองก่อน หากแนวราคาเคยโดนเคลียร์ไปแล้ว จะไม่สร้างเส้นเด็ดขาด
- เส้นประที่ปรากฏบนจอ หากราคาปัจจุบันใน m1 วิ่งมาชนหรือสะบัดไส้โดน เส้นจะถูกลบทำลายทิ้งทันทีเรียลไทม์ (บนชาร์ตจะเหลือเฉพาะแนวสดใหม่ที่ยังไม่เคยโดนทดสอบเท่านั้น)
FVG + HTF Equilibrium (True Mitigation V14.2)
This indicator identifies paired-candle levels (where a candle’s close and the next candle’s open are at nearly the same price) and FVGs.
Two Core Mechanisms Driving the System
1. Fair Value Gaps (FVG) – Price Imbalance Zones
- Bullish FVG (Teal Box):** A zone of strong buying pressure where a price gap (imbalance) forms. Price often retraces to test the zone before continuing upward.
- Bearish FVG (Pink/Purple Box):** A zone of strong selling pressure. Price often rebounds into the zone for a retest before continuing downward.
- **Dynamic Resizing:** The box automatically shrinks as price fills the gap and is removed immediately if a candle closes beyond the zone.
2. HTF Equilibrium – Paired-Candle Support & Resistance
Concept:The system pulls data from higher timeframes (5m, 15m, 30m, 1h, 4h, 1D) and detects historical opposing candle pairs (e.g., a strong bullish candle immediately followed by a strong bearish candle) at price levels with concentrated buy/sell orders.
True Mitigation 100%:
- Higher timeframes (HTF) perform self-screening first. If a price level has already been mitigated, the system will not create that level under any circumstances.
- Any dashed line displayed on the chart will be removed instantly in real time if current M1 price touches it or even wicks into it. As a result, only fresh, untested levels remain visible on the chart.
インジケーター

インジケーター

HTF Session Sweep ModelHTF Session Sweep Model
The HTF Session Sweep Model is a session-based market structure tool designed to help traders observe how price interacts with the previous confirmed higher-timeframe candle during active trading sessions.
This script was created because session trading can become messy when traders manually mark multiple highs, lows, opens, boxes, sweeps, breakouts, and traps across different timeframes. Instead of adding unrelated indicators together, this model uses one central reference point: the previous confirmed HTF candle. Once an enabled session begins, the script maps that HTF candle’s high, low, midpoint, and optional session open level onto the chart. Price action during that session is then classified around that reference range.
The purpose of the script is not to predict price. The purpose is to provide a clean framework for reading session behaviour around a higher-timeframe range.
Core Concept
The script is built around the idea that the previous higher-timeframe candle can provide useful reference levels for intraday price behaviour. Its high and low can act as areas where liquidity may be taken, where breakouts may develop, or where failed breakouts may occur.
The model does not project the HTF candle before the session opens. It activates when an enabled session opens. At that point, it takes the most recent fully confirmed HTF candle and uses it as the active session reference.
This creates a consistent question for the trader:
How is price reacting around the previous confirmed HTF candle during the current session?
What Makes This Script Original
This script is not designed as a simple combination of unrelated indicators. The components are connected through one session-based model:
1. Session engine
The script allows users to enable Asia, London, and New York sessions. Each session can use its own time window and timezone setting.
2. HTF reference map
At the start of an enabled session, the script maps the previous confirmed HTF candle. This includes the HTF high, low, midpoint, optional candle body, and optional session open level.
3. Sweep model
The script checks whether price sweeps above the HTF high or below the HTF low. Users can choose between a basic wick sweep or a stricter sweep that requires price to close back inside the HTF range.
4. Delivery shift confirmation
After a sweep occurs, the script can wait for a delivery shift confirmation before marking a sweep entry. A bearish confirmation requires price to break below a recent low range after a high sweep. A bullish confirmation requires price to break above a recent high range after a low sweep.
5. Breakout model
If price closes and holds outside the HTF range, the script can classify the move as a breakout. Users can set how many bars price must hold beyond the range.
6. Displacement filter
The breakout model can optionally require stronger candle movement by comparing the candle body against ATR. This helps filter weaker breaks that do not show meaningful displacement.
7. Failed breakout trap model
If price breaks beyond the HTF high or low and then returns back inside the range, the script can classify that move as a failed breakout trap. A Bull Trap means price broke above the HTF high and failed back inside. A Bear Trap means price broke below the HTF low and failed back inside.
These parts work together because they all answer the same question: did price sweep the HTF range, accept beyond it, or fail after breaking it?
How The Script Calculates The Model
When a new enabled session begins, the script requests the previous confirmed candle from the selected higher timeframe. The selected HTF may be adjusted by the user, such as 1H, 2H, 4H, Daily, or Weekly.
The script then stores the following values:
* Previous HTF open
* Previous HTF high
* Previous HTF low
* Previous HTF close
* Previous HTF midpoint
* Current session open
These values become the session reference map.
During the active session, the script checks price against the HTF high and low.
High Sweep:
A high sweep is detected when price trades above the previous HTF high.
Low Sweep:
A low sweep is detected when price trades below the previous HTF low.
Close Back Inside Sweep Mode:
When this stricter mode is selected, a high sweep requires price to close back below the HTF high. A low sweep requires price to close back above the HTF low.
Sweep Entry:
A sweep entry is not triggered by the sweep alone. After a sweep, the script waits for a delivery shift confirmation using the selected lookback length.
Breakout Long:
A breakout long is detected when price closes above the HTF high and holds above it for the selected number of bars.
Breakout Short:
A breakout short is detected when price closes below the HTF low and holds below it for the selected number of bars.
Bull Trap:
A bull trap is detected when price breaks above the HTF high but later closes back below the HTF high.
Bear Trap:
A bear trap is detected when price breaks below the HTF low but later closes back above the HTF low.
Volume Filter:
The optional volume filter compares current volume against a moving average of volume multiplied by the selected volume multiplier. When enabled, sweep and breakout conditions must also pass the volume filter.
Bar Close Confirmation:
The script includes an option to confirm signals only after the bar closes. This is enabled by default to make signals more stable for alerts and historical review.
How To Use This Script
1. Choose the reference timeframe
Select the HTF candle you want to use as the session reference. Intraday traders may use 1H, 2H, or 4H. Higher-timeframe traders may prefer Daily or Weekly.
2. Enable the sessions you trade
The script supports Asia, London, and New York sessions. Users can enable or disable each session and adjust the session window and timezone.
3. Watch the HTF range during the session
Once the session opens, the script draws the previous confirmed HTF candle range. The high and low are the main reaction levels.
4. Read price behaviour around the range
If price sweeps a level and returns inside, it may indicate a liquidity sweep.
If price closes and holds outside the range, it may indicate breakout continuation.
If price breaks outside and then returns inside, it may indicate a failed breakout trap.
5. Use the labels as classifications, not automatic trade commands
The labels are designed to classify price behaviour. They are not guaranteed buy or sell signals.
6. Combine with your own confirmation
Users should combine this model with their own market context, risk management, higher-timeframe bias, and execution plan.
Main Visual Elements
HTF Range Box:
Shows the previous confirmed HTF candle range during the active session.
HTF Candle Display:
Optionally displays the previous HTF candle body and wick on the chart.
High and Low Lines:
Marks the previous HTF high and low.
Midpoint Line:
Marks the midpoint of the HTF range.
Session Open Line:
Marks the price at the open of the active session.
Sweep Marks:
Marks when price sweeps above or below the HTF range.
Sweep Entry Marks:
Marks when a sweep is followed by delivery shift confirmation.
Breakout Marks:
Marks when price closes and holds outside the HTF range.
Trap Marks:
Marks failed breakout conditions as Bull Trap or Bear Trap.
Dashboard:
Optional compact dashboard showing the current session, HTF reference, confirmation mode, state, high, low, and midpoint.
Important Settings
Reference HTF Candle:
Controls which higher timeframe is used for the previous confirmed candle reference.
Sweep Mode:
Choose between Wick Sweep or Wick Sweep + Close Back Inside.
Confirm Signals On Bar Close:
When enabled, signals confirm after candle close. This is recommended for cleaner historical review and alerts.
Delivery Shift Lookback:
Controls how many bars are used to confirm a shift after a sweep.
Breakout Hold Bars:
Controls how many bars price must remain outside the HTF range before a breakout is confirmed.
Displacement Filter:
Requires the candle body to be large enough compared with ATR before confirming a breakout.
Volume Filter:
Optional filter requiring current volume to exceed average volume by the selected multiplier.
Keep Historical Sessions:
When disabled, the chart stays cleaner by only showing the current/latest session map. When enabled, historical session maps can remain visible, with a limit to reduce chart clutter.
Visual Modes:
Clean mode is designed for normal use.
Stealth mode reduces visual intensity.
Debug mode makes internal reference levels easier to inspect.
Alerts
The script includes alert conditions for:
* HTF high swept
* HTF low swept
* Sweep short
* Sweep long
* Breakout long
* Breakout short
* Bull trap
* Bear trap
* Master alert for any model event
The master alert is included so users can create one alert condition instead of setting up many separate alerts.
Recommended Use
This script is best suited for traders who use session timing, higher-timeframe ranges, liquidity sweeps, breakout continuation, and failed breakout concepts.
It may be useful on intraday charts where Asia, London, and New York session behaviour matters. It can also be adjusted for different markets and timeframes by changing the reference HTF and session settings.
Limitations
This script does not predict future price movement. It classifies how price behaves around the previous confirmed HTF candle during active sessions.
A sweep does not guarantee a reversal.
A breakout does not guarantee continuation.
A trap does not guarantee a full trend change.
Volume data may behave differently depending on the market and symbol.
Session behaviour can vary across forex, crypto, futures, indices, and stocks.
This tool should be used as a market structure framework, not as a standalone trading system.
Originality And Usefulness Statement
The originality of this script is in how it combines session timing, previous confirmed HTF candle mapping, sweep classification, breakout confirmation, and failed breakout detection into one connected workflow.
The script is useful because it gives traders a structured way to observe whether price is taking liquidity, accepting outside a higher-timeframe range, or failing after a breakout attempt. Each component supports the same central model rather than acting as an unrelated indicator mashup.
Disclaimer
This indicator is for educational and analytical use only. It is not financial advice and does not guarantee trading results. Users are responsible for their own trading decisions, testing, and risk management.
インジケーター

HTF Candle Footprint [Cartel Console]# HTF Candle Footprint
HTF Candle Footprint is a higher-timeframe volume and delta visualization tool designed to help traders analyze the internal composition of a selected higher-timeframe candle directly on the chart.
The indicator reconstructs a footprint-style profile inside a dynamically generated higher-timeframe candle, allowing users to examine how volume and directional pressure were distributed throughout the candle's range. By combining volume distribution, delta estimation, Point of Control (POC), and higher-timeframe candle structure into a single visualization, traders can gain additional context about market participation and price acceptance within significant trading periods.
Unlike traditional volume profiles that focus on extended historical ranges, this indicator concentrates on the currently developing or recently completed higher-timeframe candle. This approach enables users to study how volume accumulates across price levels while simultaneously monitoring the relationship between bullish and bearish activity inside the candle body.
### Key Features
• Higher-Timeframe Candle Reconstruction
Displays a custom-rendered higher-timeframe candle directly on the chart, including body and wick structure.
• Integrated Footprint Visualization
Shows estimated buying and selling pressure across individual price levels within the selected higher-timeframe range.
• Volume Distribution Profile
Builds a horizontal volume profile that highlights where the greatest amount of trading activity occurred during the analyzed period.
• Delta-Based Pressure Analysis
Calculates directional volume estimates and displays positive and negative pressure zones using color-coded footprint cells.
• Point of Control (POC) Detection
Automatically identifies and plots the highest-volume price level within the profile.
• Dynamic High and Low Levels
Marks the extreme boundaries of the analyzed higher-timeframe candle for additional market structure reference.
• Real-Time Higher-Timeframe Bias Dashboard
Provides a compact dashboard showing the current directional bias of the selected higher-timeframe candle.
• Multi-Timeframe Support
Analyze volume and pressure behavior across Hourly, 4-Hour, Daily, Weekly, and Monthly structures.
### How Traders Use It
Many traders use higher-timeframe candles as key reference points for trend analysis, support and resistance identification, liquidity observations, and contextual decision-making. HTF Candle Footprint enhances this process by exposing the internal volume distribution of those candles.
Potential use cases include:
• Identifying high-participation price zones
• Observing areas of price acceptance and rejection
• Comparing volume concentration against candle structure
• Locating potential reaction levels around the Point of Control
• Studying directional pressure within higher-timeframe ranges
• Adding additional context to multi-timeframe analysis workflows
### Notes
This indicator uses volume-based calculations and visual approximations derived from chart data. The displayed footprint and delta values are analytical tools intended to provide additional market context and should not be interpreted as financial advice or guaranteed trading signals.
HTF Candle Footprint is designed as a visual analysis aid and can be used alongside existing price action, volume, market structure, and risk management methodologies.
インジケーター

OHLC-OLHC [ARKN] ARKN combines three time-based analysis tools into a single overlay so that session context, higher-timeframe structure, and cross-asset divergence can be read together on one chart, without stacking three separate indicators.
What it does
Killzones — Draws up to four configurable session boxes (defaults: Asia, London, NY AM, NY PM) with optional session high/low pivot lines, midpoints, day-of-week labels, opening-price lines, and an "opening candle" marker. Pivots can extend until mitigated or past mitigation, with optional alerts when a session high or low is broken.
HTF Candles — Renders up to four higher-timeframe candle sets to the right of the live price, each with its own timeframe and display count. Optional Fair Value Gap and Volume Imbalance boxes, a remaining-time countdown, and interval labels are drawn directly on the projected candles.
Sequential SMT (SSMT) — Detects SMT-style divergence between correlated instruments across nested cycles (Micro, 90-minute, Daily, Weekly, Monthly). Triads can be set automatically for common groups (metals, indices, FX, crypto, futures) or defined manually, with an inverse option for negatively-correlated pairs. Both standard (wick-based) and hidden (body/close-based) divergences are supported.
Why these three together
The three modules answer three sequential questions a session-based trader asks in order: when (Killzones frame the active session), what structure (HTF Candles show the higher-timeframe bias forming in real time), and confirmation (SSMT flags when a correlated instrument fails to confirm the move). Combining them removes the need to switch layouts or sync timeframes manually, since all three share the same timezone and session logic.
How to use
Set your timezone under Settings; all sessions and cycles reference it.
Each module has a master ON/OFF toggle at the top of its settings group.
For SSMT, either leave Triad Selection on Auto (it picks correlated assets for the current symbol) or set Manual to define your own triad. Lower timeframes show Micro/90m cycles; higher timeframes show Daily/Weekly/Monthly.
HTF Candle timeframes must be higher than the chart timeframe to display.
Settings overview
Global: drawing limit, timeframe limit, timezone, label size, text color, cutoff time. Per module: session times and colors (Killzones), timeframe and candle count (HTF Candles), cycle visibility, line styles, and correlation triads (SSMT).
Note on originality
This script combines well-established, publicly-discussed ICT community concepts — session Killzones, projected higher-timeframe candles, and SMT/Sequential SMT divergence. These concepts are not original to this script; the contribution here is integrating all three into one configurable overlay with shared session and timezone handling. The script is published open-source so the implementation can be reviewed and reused. インジケーター

インジケーター

インジケーター

Hamppu - Flow EngineHamppu - Flow Engine is an open-source crypto intraday context engine built in Pine Script v6.
It is designed to help read market context, not to provide standalone buy/sell signals.
The script combines multi-layer RSI regime logic, RSI compression/release, WaveTrend-style stretch reclaim/reject context, liquidity sweep quality scoring, displacement after sweep, HTF with-flow / counter-flow classification and a dynamic MTF Flow Stack.
The goal is transparency. Markers are not magic signals. They are context events that help show when momentum, liquidity and higher-timeframe flow may be interacting.
Core features:
- Multi-layer RSI momentum regime
- RSI compression and directional release
- WaveTrend-style stretch reclaim/reject context
- Liquidity sweep quality scoring
- Displacement after sweep
- HTF with-flow / counter-flow classification
- MTF Flow Stack with selectable 3–6 timeframe slots
- Curated profiles: Balanced, Degen Fast, Conservative, Research and Custom
- Optional source labels for studying RSI / WaveTrend / Degen Fast marker sources
Visual language:
- Background color shows local RSI regime.
- Marker color shows HTF alignment.
- MTF Flow Stack shows broader multi-timeframe momentum context.
Marker guide:
- Triangle = early momentum reclaim/reject context
- Circle = momentum release after RSI compression
- X = compression release / compression ended
- Heart = Flow Context: sweep + displacement + momentum
- Orange marker = counter-flow / HTF disagreement
Profiles:
Balanced is the default public profile.
Degen Fast is a faster 5m/15m profile with early reclaim behavior.
Conservative is stricter and produces fewer context events.
Research is a looser exploration profile.
Custom is for manual tuning.
Important:
Balanced, Degen Fast, Conservative and Research are curated presets. These presets may override selected sensitivity controls internally, including sweep thresholds, cooldowns, compression tightness and confirmed/live behavior.
Use Profile = Custom if you want manual control over the visible sensitivity inputs.
Suggested workflow:
1. Start with Balanced.
2. Read the background regime first.
3. Check marker color for HTF alignment.
4. Use the MTF Flow Stack to understand broader context.
5. Treat markers as context events, not automatic entries.
6. Use your own price action, risk management and invalidation.
Alerts:
Alerts focus on main context events and with-flow reclaim/reject events. Not every visual marker has a separate alert. For more stable alerts, use bar-close alert settings.
Stability note:
When confirmed HTF is active, HTF Bias uses the previous closed HTF candle. Current chart timeframe values can still update while the active candle is open.
License: MIT.
This script is published for educational/open-source purposes. It does not provide financial advice. インジケーター

HTF SMC Confluence[KG]HTF SMC Confluence is basically lazy trader's best friend — because who has time to actually switch timeframes like some kind of animal?
It slaps a big higher timeframe candle right onto your chart, throws in Fair Value Gaps, Market Structure Shifts, and Displacement Zones, and whispers "institutional money was HERE" so you don't have to go hunting for it yourself.
It was built around one gloriously obvious idea: that trading a 5-minute chart while completely ignoring the daily is like navigating a highway by only looking at your hood ornament. This tool finally makes you look up — without making you do any extra work. Confluence, served hot, on a single canvas. You're welcome.
─────────────────────────────────────────────────────────────
WHAT EACH COMPONENT DOES
─────────────────────────────────────────────────────────────
1. HTF CANDLE (plotted to the right of price)
A full OHLC candle from a higher timeframe is rendered live to the right of
your current price action. It updates tick by tick — the body, wick, and
color all reflects the evolving HTF candle in real time. Up to 5 historical
HTF candles can be displayed side by side for recent context. The wick is
precisely centered on the candle body, and the candle repositions itself
automatically on every bar so it always floats cleanly beyond the rightmost
price bar.
What it tells you: the current mood of the higher timeframe. A bullish daily
candle forming while the 5m sells off is a very different scenario than a
bearish daily candle in distribution.
2. HIGH / LOW LINES
Solid horizontal lines are drawn from the HTF candle's high and low, running
across the chart and labeled "High" and "Low." These mark the range that
institutional players defined on the higher timeframe. Price tends to respect
these levels — they act as magnets, decision zones, and areas of liquidity.
3. MIDLINE (dotted)
A dotted line sits exactly halfway between the HTF High and Low — the
equilibrium of the HTF range. In SMC theory, this is called the "50% level"
or "CE" (Consequent Encroachment). Price retracing to this level inside a
bullish candle is often an optimal entry zone. It is subtle by design —
informational, not dominant.
4. FAIR VALUE GAP (FVG)
A Fair Value Gap is a three-candle imbalance pattern. When a candle moves so
aggressively in one direction that it leaves a gap between the first and
third candle's wicks — price skipped over that zone. Institutions tend to
return to these gaps to "fill" the imbalance before continuing the move.
Bearish FVGs are highlighted in red, bullish in green. A label mark each
box. Up to a user-defined maximum number of FVGs are tracked and old ones
are automatically removed.
5. MARKET STRUCTURE SHIFT (MSS)
An MSS occurs the moment price decisively closes beyond a prior swing point,
signaling a change in directional intent. A bearish MSS is when price
closes below a recent swing low — the market is no longer making higher
lows. A bullish MSS is when price closes above a recent swing high. A
horizontal line is drawn at the broken level and labeled "MSS." Up to 5
recent MSS events are displayed; older ones clean up automatically.
6. DISPLACEMENT ZONE
Displacement is a series of consecutive strong candles in one direction
where the average body size exceeds a multiple of the ATR. It represents
institutional aggression — the moment "smart money" stepped in hard and
drove price. These zones are shaded on the chart and serve as reference
for where the real move originated, helping traders distinguish displacement
from manipulation.
─────────────────────────────────────────────────────────────
RECOMMENDED TIMEFRAME COMBINATIONS
─────────────────────────────────────────────────────────────
The indicator is designed around a top-down multi-timeframe workflow. The HTF
candle shown on the right should always be at least 4-6x the current chart's
timeframe. Below are the most practical pairings:
CHART TIMEFRAME / HTF CANDLE SETTING/ USE CASE
──────────────────────────────────────────────────────
1 minute................... 15 minute ...............Scalping with intraday structure
3 minute ............................30 minute .................Scalping with session context
5 minute ............................1 hour .....................Intraday momentum trades
5 minute ........................... 4 hour .................... Intraday with swing context
15 minute ..........................4 hour .................... Intraday swing setups
15 minute ..........................Daily (1D) ................ Most common: intraday vs daily
1 hour ..............................Daily (1D) .................Swing trades
1 hour ..............................Weekly (1W) ..............Position trade entries
4 hour ..............................Weekly (1W) ..............Swing / position trading
─────────────────────────────────────────────────────────────
HOW TO TRADE WITH THIS INDICATOR
─────────────────────────────────────────────────────────────
The indicator does not generate buy or sell signals. Instead, it provides a
structured framework for identifying high-probability setups using confluence.
The following is a general workflow:
STEP 1 — READ THE HTF CANDLE
Before anything else, look at the HTF candle on the right. Is it bullish or
bearish? Is it nearing its high or low? This tells you about the directional bias for
the session. Only take trades in the direction of the HTF candle unless you
have strong evidence of a reversal.
STEP 2 — IDENTIFY THE RANGE
The High and Low lines define the playing field. Price at or near the HTF
High is at resistance — look for bearish setups. Price at or near the HTF
Low is at support — look for bullish setups. The midline is a secondary
decision zone — often acts as a magnet when price is between the levels.
STEP 3 — WAIT FOR STRUCTURE (MSS)
An MSS on the lower timeframe in the direction of your HTF bias is one of
the strongest confirmation signals. For example: if the daily candle is
bullish, wait for a bullish MSS on the 5-minute chart — a close above a
swing high — before entering long. This tells you short-term structure has
flipped in your favour.
STEP 4 — LOOK FOR AN FVG ENTRY
After an MSS, price often retraces into a Fair Value Gap before continuing.
This gap is your precision entry zone. Enter at the edge of the FVG closest
to current price. Place your stop loss below the FVG (for longs) or above
it (for shorts). The FVG acts as your entry trigger and risk anchor.
STEP 5 — CONFIRM WITH DISPLACEMENT
If the MSS was preceded by a Displacement Zone — meaning price moved
aggressively to create the structure break — the setup is higher quality.
Displacement followed by a retracement into an FVG, with an MSS confirming,
is the textbook SMC entry pattern this indicator is designed to highlight.
STEP 6 — SET TARGETS
Common targets are the HTF High (if long) or HTF Low (if short). The
midline is a partial-take-profit level. Always assess the risk-to-reward
before entry — aim for a minimum of 1:2.
─────────────────────────────────────────────────────────────
WHAT THIS INDICATOR DOES NOT DO
─────────────────────────────────────────────────────────────
— It does not generate buy or sell signals
— It does not repaint historical data (all drawings are forward-only)
— It does not account for news events, earnings, or macro catalysts
— It does not guarantee any outcome
— It is not a standalone trading system
─────────────────────────────────────────────────────────────
DISCLAIMER
─────────────────────────────────────────────────────────────
This indicator and the accompanying documentation are provided strictly for
educational and informational purposes only. Nothing contained herein
constitutes financial advice, investment advice, trading advice, or any other
form of professional financial guidance. Past performance of any trading system, strategy, or indicator — including the concepts demonstrated here — is not indicative of future results. Use this tool as one input among many — never as the sole basis for a trade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HTF SMC Confluence — Built for traders who think in timeframes, not ticks. Happy Trading!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
インジケーター

インジケーター

EMA's [Ordinary Trader]EMAs by Plots two parallel stacks of three EMAs — one anchored to a Higher Timeframe of your choice, one following the chart's current timeframe. Built around the Ordinary Trader methodology, where the 15-minute 50 / 100 / 300 EMA stack acts as a higher-timeframe directional filter while trading on lower timeframes.
**WHAT YOU SEE ON THE CHART**
Six EMAs total, split into two groups:
- **HTF EMAs** — three EMAs locked to a higher timeframe of your choice (default 15-minute). They stay anchored to 15-minute data even when you drop the chart to 1m, 3m, or 5m. Drawn as **thick** lines.
- **LTF EMAs** — three EMAs that follow the chart's current timeframe (or any specific lower timeframe you pin them to). Drawn as **thin** lines.
Same colour for the same EMA length across both groups: 50 = sage green, 100 = terracotta orange, 300 = purple-grey. Thickness tells you which timeframe you're looking at; colour tells you which EMA length.
**HOW TO USE IT**
The default setup is the Ordinary Trader 15-minute filter: HTF set to 15-minute, LTF following the chart. Pull up a 1m, 3m, or 5m chart and you'll see both groups at once — the thick lines are your 15-minute anchor, the thin lines are your chart-timeframe stack for entries.
By default the 50 and 100 EMAs are on in both groups; the 300 EMA is off but available. Flip it on in the Settings panel if you want the full stack.
**AUTO-HIDE FOR THE LTF GROUP**
When your chart timeframe is equal to or higher than the HTF timeframe, the LTF group hides automatically. So on a 15-minute chart (with HTF still at 15-minute) only the HTF group shows — no point drawing the LTF stack on top of an identical HTF stack. Same on the 1-hour, daily, or higher.
**VISUAL SMOOTHING**
When a higher-timeframe EMA is plotted on a lower-timeframe chart, it naturally looks stepped — each new HTF bar updates the EMA in one chunk, so the line moves in jumps rather than smoothly. The Visual Smoothing option (on by default) applies a light smoothing pass so the line reads cleanly on lower-timeframe charts. It trades a tiny amount of lag for a cleaner look — turn it off if you'd rather see the raw, stepped HTF values.
**SETTINGS**
- **General** — LTF Timeframe, HTF Timeframe, Plot Style (Line / Stepline), Visual Smoothing on/off + length
- **HTF EMAs** — toggle, length, and price source for each of the three HTF EMAs
- **LTF EMAs** — toggle, length, and price source for each of the three LTF EMAs
**NOTES**
- Pairs naturally with the other Ordinary Trader-family indicators (STRATEGY, ZONES, KEY LEVELS, FVGs). インジケーター

Heikin Ashi Cloud Overlay | Rainbow MatrixGENERAL OVERVIEW
The Heikin Ashi Cloud Overlay renders a Heikin Ashi cloud directly on top of traditional candlesticks, giving traders both views in a single chart. HA candles smooth macro trend perception by filtering individual-bar noise, but they sacrifice entry-bar precision because each HA candle does not represent the actual price range traded on that bar. This script preserves both signals simultaneously: the HA cloud surfaces directional context, while the underlying real candles preserve precise execution-bar timing.
A compact corner HUD reports current HA direction, consecutive streak length, and body-size anomalies relative to a 20-bar rolling average — useful for monitoring momentum exhaustion and impulsive expansion in real time without analyzing the cloud manually.
The script adds a visual intelligence layer on top of the standard HA pattern: cloud fill opacity dynamically reflects body intensity (impulsive bars render densely opaque, normal bars render lightly), and small colored dots flag body anomalies (current body > 3× rolling average) directly on the chart.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
Heikin Ashi candles are derived from traditional OHLC via a recursive smoothing formula introduced by Munehisa Homma in 18th-century Japanese rice trading and popularized in modern Western technical analysis through the work of Dan Valcu and others. The transformation produces candles that emphasize trend persistence over discrete price action: consecutive same-color HA candles indicate ongoing directional pressure, while doji-like HA candles or sudden color flips often signal pivots.
The trade-off is well-known: HA candles do not show real OHLC. The haOpen of each candle is the average of the previous haOpen and haClose, not the actual session open. This makes HA excellent for trend reading but unreliable for entry timing — orders need to reference the actual price range of the bar, not the smoothed projection.
The conventional solutions are either to switch back and forth between HA and regular candle views (cognitive overhead), or to use HA as the primary chart and lose precision on entries (execution cost). This indicator takes a third approach: render the HA candles as a transparent overlay envelope on top of the standard candlesticks. The trader sees both at once. The HA envelope communicates trend context; the underlying candles preserve real-bar precision.
The state machine layered on top — direction tracking, streak counting, and body-size anomaly detection against a rolling average — converts the visual cloud into a numerical readout, surfacing exhaustion and impulsive moves that might be missed at a glance.
HA CLOUD OVERLAY FEATURES
The indicator includes 5 main components:
Heikin Ashi Cloud Overlay
Body Intensity Modulation (dynamic opacity)
Body Anomaly Visual Markers
HA State HUD Panel
Three Optional Alerts
HEIKIN ASHI CLOUD OVERLAY
🔹 What It Does
For each bar on the chart, the indicator computes the four Heikin Ashi values (haOpen, haClose, haHigh, haLow) using Pine Script's canonical recursive formula. It then renders a thin envelope between haHigh and haLow with semi-transparent fill, plotted on top of the underlying traditional candles.
🔹 Method
The computation follows the standard HA definition:
◇ haClose = (open + high + low + close) / 4
◇ haOpen = average of the previous haOpen and the previous haClose (recursive)
◇ haHigh = max of (high, haOpen, haClose)
◇ haLow = min of (low, haOpen, haClose)
A `var float ha_open = na` seed pattern handles the first-bar initialization safely, avoiding NA propagation that would corrupt the recursive chain.
🔹 Visual Behavior
The envelope is rendered as a thin top-bottom band with translucent fill. The fill color reflects the HA direction: bullish (haClose ≥ haOpen) renders in the configured bull color (TradingView native teal by default); bearish (haClose < haOpen) renders in the bear color (TradingView native red by default). An optional midline (dotted) at the (haOpen + haClose) / 2 level can be toggled for traders who prefer an explicit midpoint reference.
BODY INTENSITY MODULATION
🔹 What It Does
The cloud fill transparency is dynamically modulated based on the current HA body size relative to the 20-bar rolling average. Bars with above-average body push the fill toward more opaque, surfacing impulsive expansion clusters visually without requiring HUD analysis.
🔹 Tier Logic
◇ Body < 1× average: standard transparency (user-configured slider value)
◇ Body 1-2× average: −10 transparency (notable bar — slightly more opaque)
◇ Body 2-3× average: −30 transparency (strong bar — clearly more opaque)
◇ Body ≥ 3× average: −50 transparency, floor 20 (anomaly — densely opaque)
The floor cap of 20 prevents the fill from becoming so opaque that the underlying candle wicks become unreadable, preserving the dual-view principle of the indicator.
🔹 Why It Helps
Body intensity modulation converts the cloud from a static color band into a momentum-aware visualization. During quiet conditions, the cloud whispers; during impulsive expansion or capitulation phases, the cloud intensifies visually. Traders monitoring multiple charts can identify regime changes peripherally without focusing on any single chart's HUD.
🔹 Toggle
The feature is enabled by default and can be disabled via the "Body Intensity Cloud Opacity" input in the HA CLOUD group, which restores fixed transparency from the slider.
BODY ANOMALY VISUAL MARKERS
🔹 What It Does
A small colored dot appears on the chart whenever the current HA body exceeds 3× the 20-bar rolling average. Bull anomalies render as a dot below the bar (location.belowbar); bear anomalies render as a dot above the bar (location.abovebar). Dot colors match the configured bull/bear palette.
🔹 Why It Helps
The markers convert the alert-only body anomaly detection into a persistent visual signal that remains visible on chart history. Traders reviewing past price action can identify impulsive expansion or capitulation events at a glance, without scrolling through alert history or replaying bars.
🔹 Independent of the Alert
The visual markers and the body anomaly alert are independently toggleable. Traders can show the markers without enabling the alert (visual-only mode) or enable the alert without showing the markers (sound/notification-only mode).
🔹 Toggle
Enabled by default via the "Show Body Anomaly Markers" input in the HA CLOUD group.
HA STATE HUD PANEL
🔹 What It Shows
A compact 4-row corner panel reports three live values:
◇ Direction — current HA candle direction (Bull / Bear), color-coded
◇ Streak — consecutive same-direction count (in current locale, e.g., "7 velas (candles)" in PT)
◇ Avg Body — the average HA body size over the last 20 bars, expressed as a percentage of price
🔹 Why It Helps
The HUD converts the cloud into a numerical readout. Instead of visually estimating streak length or body proportion, traders can read the exact values on each bar. This is particularly useful for traders monitoring multiple charts or running automated rules where consecutive-bar conditions need to be tracked precisely.
🔹 Customization
The HUD can be positioned in any of the four chart corners and rendered in any of five font sizes. The Direction row uses contrasting colors (bull vs bear) for immediate parsing.
THREE OPTIONAL ALERTS
🔹 Alert Types
Each alert is independently toggleable in the indicator settings:
◇ HA Direction Change — fires on the close of a confirmed bar when the HA direction flips (bull→bear or bear→bull). Useful as a confirmation filter on top of other entry signals.
◇ HA Streak Exhaustion — fires when the absolute streak length crosses a user-configurable threshold (default 7). Long consecutive streaks often precede mean-reversion phases, especially in ranging markets.
◇ HA Body Anomaly — fires when the current HA body exceeds 3× the 20-bar rolling average. Anomalous body sizes typically signal impulsive expansion, capitulation, or news-driven moves worth investigating.
🔹 Firing Mechanism
All alerts are gated by `barstate.isconfirmed`, which means they only trigger on the close of the bar that satisfies the condition — never intra-bar. This prevents false signals from intrabar fluctuations that get rejected before close. Each alert uses `alert.freq_once_per_bar` to avoid duplicate firings on the same candle.
🔹 alertcondition() Mode
A dummy `alertcondition` titled "HOW TO SETUP ALERTS (READ)" is exposed at the bottom of the script. It provides setup guidance via its message field, instructing users to select "Any alert() function call" in the TradingView alert condition menu and filter individual alerts via the indicator settings.
MULTILINGUAL INTERFACE
The indicator supports five languages for the HUD display and alert messages: English (default), Português, Español, Русский, and 中文 (Chinese). Code, comments, and configuration tooltips remain in English regardless of the selected language.
For reference, examples of multilingual UI strings used in the HUD:
◇ Direction labels: "Direction:" / "Direção:" / "Dirección:" / "Направление:" / "方向:"
◇ Direction text: "🟢 BULL"/"🔴 BEAR" / "🟢 ALTA"/"🔴 BAIXA" / "🟢 ALCISTA"/"🔴 BAJISTA" / "🟢 БЫЧИЙ"/"🔴 МЕДВЕЖИЙ" / "🟢 多头"/"🔴 空头"
◇ Streak units use a bilingual pattern: "candles" stays in English as a universal technical term; native terms appear in parentheses where the local equivalent is well-established (e.g., "7 velas (candles)").
CUSTOM PALETTE TOGGLE
🔹 What It Does
By default, the indicator uses native TradingView teal/red colors for visual familiarity. A "Use Custom Cloud Colors" toggle in the settings switches to user-configurable bull/bear colors, useful for traders who want to align the cloud palette with their personal indicator stack or color preferences.
HOW TO USE
This indicator is a visualization tool, not a signal generator. It surfaces three categories of structural information: HA direction (smoothed trend context), streak length (momentum persistence), and body anomalies (impulsive moves).
🔹 Reading the Cloud
◇ Bull cloud (default teal) = current HA candle is bullish (haClose ≥ haOpen).
◇ Bear cloud (default red) = current HA candle is bearish (haClose < haOpen).
◇ A long sequence of same-color HA candles indicates strong directional pressure; mixed colors or doji-like HA candles indicate consolidation or pivot zones.
◇ Cloud density (opacity): denser fills mark bars with above-average body — pay attention to these zones, they often correspond to ignition or capitulation phases.
◇ Anomaly dots: when a dot appears below a bull bar or above a bear bar, the bar's body is 3× the recent average — exceptional impulse worth contextualizing against your other signals.
🔹 Reading the HUD
◇ Direction row: parse the current HA candle's directional state at a glance.
◇ Streak row: |streak| ≥ 7 → trend is mature, increasing probability of mean reversion or pullback. Streak just flipped sign → fresh direction.
◇ Avg Body row: current bar body > 3× this value → impulsive expansion or capitulation, worth investigating contextually.
🔹 Tactical Reading
◇ HA color flip + confirmation on the underlying candle: potential trend reversal or pullback entry.
◇ HA streak crosses the exhaustion threshold while price approaches a key level (from another indicator or manual S/R): increased probability of structural reaction.
◇ Body anomaly during otherwise quiet conditions: impulsive move (often news-driven or stop-cascade) — trade with reduced size or wait for retest.
◇ Cluster of dense-opacity bars: regime change or ongoing impulsive move — momentum is structurally elevated.
🔹 Multi-Indicator Workflow
The HA Cloud Overlay is designed to layer cleanly with other indicators. It does not add lines or boxes that compete visually with structural indicators (VWAP, Volume Profile, S/R). The cloud sits behind the candles, the markers are minimal dots, and the HUD sits in a corner — total chart footprint is minimal.
INPUTS EXPLAINED
🔹 System Language
Display language for the HUD and alert messages. Options: English (default), Português, Español, Русский, 中文.
🔹 Show Cloud Envelope
Master toggle for the HA top-bottom envelope and fill.
🔹 Cloud Fill Transparency
Base alpha of the cloud fill (60 = denser, 95 = barely visible). Floor of 60 keeps candle wicks readable. Default 80. When Body Intensity Modulation is ON, this value is the baseline; bars with above-average body intensity become progressively more opaque from this baseline.
🔹 Show HA Midline (dots)
Optional thin dotted line at (haOpen + haClose) / 2.
🔹 Use Custom Cloud Colors
OFF: native TradingView teal/red. ON: apply custom bull/bear colors below.
🔹 Custom Bull Color / Custom Bear Color
Used when "Use Custom Cloud Colors" is ON.
🔹 Body Intensity Cloud Opacity
When ON: cloud fill becomes progressively more opaque on bars with above-average body size. When OFF: cloud uses fixed transparency from the slider above. Recommended ON.
🔹 Show Body Anomaly Markers
When ON: small colored dots appear on bars whose body exceeds 3× the 20-period average. Independent of the body anomaly alert.
🔹 Show HA State HUD
Toggle for the corner HUD reporting Direction / Streak / Avg Body.
🔹 HUD Position
Top Right (default), Top Left, Bottom Right, Bottom Left.
🔹 Font Size
Tiny, Small (default), Normal, Large, Huge.
🔹 Streak Warning Threshold
Streak length at which the Streak Exhaustion alert fires. Range 3–30, default 7.
🔹 Alert: HA Direction Change / HA Streak Extreme / HA Body Anomaly
Independent toggles for each of the three alert types.
IMPORTANT NOTES
The Heikin Ashi Cloud Overlay works on any timeframe and any instrument. The HA computation is timeframe-agnostic — it transforms whatever OHLC data the chart provides.
Alerts fire once per confirmed bar. Historical bars never repaint after they close. The live bar updates intra-bar as expected for a real-time indicator, but alerts will only fire after the bar closes. Body anomaly visual markers can update intra-bar (preview behavior) and settle on close.
The body anomaly threshold (3× rolling average) and streak warning threshold (default 7) are derived from empirical observation across common timeframes and instruments. Both are user-configurable and should be tuned to the trader's instrument and timeframe — high-volatility crypto on 1m may warrant a higher anomaly multiplier than large-cap equities on Daily.
The 20-bar body rolling average uses `ta.sma` of the percentage-based body size. The first 20 bars after script start will show partial values; once enough history is available, the value stabilizes.
The body intensity modulation tier floors (50, 30, 20) are calibrated to preserve candle wick readability even on extreme anomaly bars — the floor 20 ensures the cloud never becomes fully opaque.
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
The Heikin Ashi Cloud Overlay differs from the standard TradingView Heikin Ashi chart type and from other HA-based indicators in four structural ways.
First, it preserves both views simultaneously rather than replacing one with the other. Standard HA chart mode hides the real candles entirely; this overlay keeps the underlying candles visible at all times, giving traders smoothed trend context (the cloud) and precise entry-bar timing (the underlying candles) in the same visual without context-switching cost.
Second, the cloud fill opacity is dynamically modulated by body intensity relative to a 20-bar rolling average. Standard HA cloud indicators render fills with a single static transparency; this script renders impulsive bars (≥1×, ≥2×, ≥3× average body) with progressively more opaque fills, transforming the cloud from a static visualization into a momentum-aware density map. Capitulation, ignition, and impulsive expansion phases become visually identifiable peripheral signals.
Third, it adds an explicit state machine layer over the raw HA visualization. Direction tracking, consecutive streak counting, 20-bar rolling body-size anomaly detection, and on-chart visual anomaly markers convert the visual cloud into a numerical readout reported live on a corner HUD. This converts subjective visual estimation (is this a long streak? is this body unusually large?) into deterministic measurements with configurable thresholds and a persistent visual record on the chart history.
Fourth, it exposes three independently-toggleable alerts (direction change, streak exhaustion, body anomaly) gated by bar confirmation, making the indicator usable as a confirmation filter or trigger source in automated workflows. Most HA-based indicators are visualization-only or expose a single direction-flip alert; the multi-condition alert set here is designed for traders building structured rules around HA state rather than just observing it.
The combination of dual-view preservation, body-intensity opacity modulation, state machine readout, visual anomaly markers, and multilingual UI produces a single overlay that combines the readability of Heikin Ashi smoothing with the precision of real candles, the rigor of a deterministic state readout, and the visual intuition of a density-aware momentum map. インジケーター
