Entry-to-Exit ToolA realtime non-repainting entry-to-exit analysis tool that retains a Provisional or Finalized BUY/SELL entry reference and resolves it through an opposite signal, confirmed terminal invalidation, minimum-profit target, or entry-terminal risk/reward target. The displayed exits are analytical reference events and are not a guarantee of profitability or future performance.
Name:
Entry-to-Exit Tool
Searchable Name:
Realtime Non-Repainting Entry Exit Target and Risk Reward Tool
Technical Name:
Realtime Non-Repainting Provisional Finalized Entry Reference Opposite Signal Terminal Break Profit Target and Risk Reward Exit Resolution Tool
Short title:
Trade Exit Tool
Summary
Entry-to-Exit Tool is an exit-resolution indicator that converts internally generated Provisional or Finalized BUY/SELL signals into retained entry references and then identifies where those references would resolve under a selected exit method.
The script does not require signals from another indicator. It contains its own causal transform-path signals, structural resolver, Provisional signal ledger, and Finalized signal ledger. The user selects which internally generated signal stage establishes the entry reference and which stage can later provide an opposite-signal exit.
Each retained entry reference stores:
direction
confirmation bar
confirmation price
retained terminal price
The reference remains active until one enabled exit condition resolves it.
Available exit conditions include:
selected opposite BUY/SELL signal
confirmed close through the retained entry terminal
fixed minimum-profit target
entry-terminal risk/reward target
Opposite-signal exits, terminal exits, fixed-profit targets, and risk/reward targets remain separate exit identities. The script records the exit bar, exit price, resolved direction, and exit reason without rewriting the completed record after later chart history arrives.
This is not a complete strategy or automated trade-management engine. It does not submit orders, calculate position quantities, reverse broker positions, calculate complete strategy profitability, manage a portfolio, or route executable instructions. Its purpose is to show structured entry-to-exit reference behavior from the script’s own causal signal records.
How it works
The script first produces two internally retained signal stages:
Provisional
Finalized
The selected Entry Reference Stage determines which signal stage opens a retained entry reference.
The selected Opposite Exit Signal Stage determines which signal stage can later resolve that reference through an opposite BUY or SELL confirmation.
These two stages can be selected independently.
For example, a user can choose:
Provisional entry with Provisional opposite exit
Provisional entry with Finalized opposite exit
Finalized entry with Provisional opposite exit
Finalized entry with Finalized opposite exit
The script then processes entry-reference events and opposite-exit events in chronological order.
When both event streams contain an event on the same bar, the exit-stage event is processed before the entry-stage event. This prevents the new same-bar entry event from being incorrectly treated as active before the earlier reference has had a chance to resolve.
Provisional entry references
A Provisional entry reference is established from an accepted causal transform-path-agreed BUY or SELL confirmation.
Provisional confirmation requires the candidate direction to agree with the stored causal transform-reference direction.
A retained transform candidate can confirm:
on its candidate bar
or on the following closed bar
The maximum signal confirmation delay is limited to zero or one bar.
When Active Path-Filtered Candidate Memory is enabled, a valid candidate that initially fails transform-path direction agreement can remain stored. It can later confirm on the first closed bar where the retained candidate terminal agrees with the active causal transform direction.
That later passing bar becomes the actual Provisional confirmation bar and entry-reference price.
A Provisional signal is earlier than a Finalized signal, but it has not yet completed structural finalization. It can still be replaced, superseded, or fail to become the retained Finalized identity of its structural swing.
Finalized entry references
A Finalized entry reference is established from a Provisional signal that survives the selected structural resolver.
Finalized identity requires structural completion of the containing swing.
The Finalized reference uses:
the retained structural BUY or SELL identity
the Finalized confirmation bar
the Finalized confirmation price
the retained structural terminal price
Finalized references generally occur later than Provisional references, but they represent the signal identity retained after structural resolution.
Structural events classify and finalize signal identity. They do not independently create the Provisional BUY/SELL signal universe.
Entry-reference behavior
Only one entry reference can remain active at a time.
When no reference is active, the next qualifying event from the selected Entry Reference Stage establishes a new reference.
The reference retains:
long or short direction
entry confirmation bar
entry confirmation price
terminal price associated with that entry identity
The script does not continuously replace an unresolved reference with later same-side entry signals.
A new entry reference is committed only after the prior reference has resolved and the script is flat at the reference-state level.
The reference is an analytical state retained by the indicator. It is not a broker position and does not contain position size or account information.
Exit Resolution Method
The user selects one of three primary exit-resolution methods:
Opposite Signal
Entry Terminal Break
Opposite Or Terminal Break
Target exits are controlled separately and can operate alongside the selected primary exit method.
Opposite Signal
Opposite Signal resolves the active entry reference when the selected opposite signal stage confirms.
For a long reference, the selected SELL signal is the opposite event.
For a short reference, the selected BUY signal is the opposite event.
The opposite event uses the stage selected under Opposite Exit Signal Stage:
Provisional
or Finalized
The exit occurs at that opposite event’s confirmation price.
An opposite signal that does not oppose the currently active direction does not resolve the reference.
Require Profit For Opposite Exit
Require Profit For Opposite Exit applies only to opposite-signal exits.
When disabled, every qualifying opposite signal can resolve the active reference.
When enabled, the opposite signal resolves the reference only when the raw-price return from the retained entry price to the opposite confirmation price is at least the selected Minimum Profit For Opposite Exit percentage.
For a long reference, profit requires the opposite exit price to be sufficiently above the entry price.
For a short reference, profit requires the opposite exit price to be sufficiently below the entry price.
This setting does not delay or block:
Entry Terminal Break
Minimum Profit Target
Risk/Reward Target
An unprofitable opposite signal can therefore be ignored while another enabled exit condition remains active.
Minimum Profit For Opposite Exit is a gate on an opposite signal. It is not the same as the independent Minimum Profit Target exit.
Entry Terminal Break
Entry Terminal Break resolves the active reference when a confirmed close invalidates the retained entry terminal.
For a long reference:
a confirmed close below the retained terminal resolves the reference
For a short reference:
a confirmed close above the retained terminal resolves the reference
The terminal is taken from the same signal identity that established the entry reference.
The terminal is not replaced by every later support, resistance, pivot, or same-side signal.
Terminal exits use confirmed closes only.
An intrabar move through the terminal that does not remain broken at the confirmed close does not create a terminal exit under this script.
Opposite Or Terminal Break
Opposite Or Terminal Break enables both primary exit conditions.
The reference resolves on whichever valid event occurs first:
a qualifying opposite signal
or a confirmed terminal invalidation
When Require Profit For Opposite Exit is enabled, an opposite signal that does not meet the profit requirement is not treated as a valid exit. The terminal condition remains active and can still resolve the reference.
Target Exit
Target Exit is independent from the selected primary Exit Resolution Method.
Available target modes are:
Off
Minimum Profit %
Risk/Reward
When Target Exit is Off, no target price is calculated and no target exit can resolve the reference.
The status table displays:
OFF when the target mode is disabled
n/a when no entry reference is active
unavailable when a Risk/Reward target cannot be formed
the calculated target price when a valid active target exists
Minimum Profit Target
Minimum Profit % creates a fixed target from the retained entry-reference price.
For a long reference:
Target Price = Entry Price × (1 + Minimum Profit Target %)
For a short reference:
Target Price = Entry Price × (1 − Minimum Profit Target %)
The reference resolves when a confirmed close reaches or passes the calculated target.
For a long reference:
the confirmed close must be at or above the target
For a short reference:
the confirmed close must be at or below the target
The exit label is recorded as:
PROFIT TARGET
This target operates independently from Require Profit For Opposite Exit.
The two settings serve different purposes:
Minimum Profit For Opposite Exit controls whether an opposite signal is allowed to exit
Minimum Profit Target creates an independent price level that can exit without an opposite signal
Risk/Reward Target
Risk/Reward creates a target from the distance between the retained entry price and the retained entry terminal.
For a long reference:
Risk Distance = Entry Price − Retained Terminal
Target Price = Entry Price + Risk Distance × Risk/Reward Multiple
For a short reference:
Risk Distance = Retained Terminal − Entry Price
Target Price = Entry Price − Risk Distance × Risk/Reward Multiple
The target is valid only when the retained terminal is on the correct defensive side of the entry price and the resulting risk distance is positive.
For a long reference, the terminal must be below the entry price.
For a short reference, the terminal must be above the entry price.
When the terminal does not produce a positive risk distance, the Risk/Reward target is unavailable. The script does not invent a target by using an absolute distance or moving the terminal to the other side of the entry.
The reference resolves when a confirmed close reaches or passes the valid calculated target.
The exit label is recorded as:
RISK/REWARD TARGET
Confirmed-close target behavior
Both target modes use confirmed closes.
The script does not assume execution at the exact target price when price crosses the target intrabar.
The recorded exit price is the confirmed close of the bar that first satisfies the target condition.
This makes target resolution consistent with the script’s confirmed-close terminal-break behavior.
When a terminal break and target hit are both visible during the same scanned bar, terminal invalidation is given resolution priority in the code and the event is recorded as:
TERMINAL EXIT
Exit identities
The script preserves four separate exit identities:
OPPOSITE EXIT
TERMINAL EXIT
PROFIT TARGET
RISK/REWARD TARGET
These identities are not merged into one generic EXIT label.
This allows the user to distinguish whether the reference resolved because:
an opposite signal confirmed
the retained terminal failed
a fixed percentage target was reached
or the selected risk/reward target was reached
Completed exit records retain:
resolved direction
exit bar
exit price
exit reason
Later chart history does not move the completed exit to a different bar or change its recorded reason.
Signal construction
The internal signal engine uses a causal transform-reference path built from loaded raw-price records.
The transform path is used as a mandatory direction-agreement source for Provisional BUY and SELL confirmation.
The script separately maintains:
raw price arrays
transform path arrays
close, high, and low replay arrays
Provisional signal ledgers
Finalized signal ledgers
structural event ledgers
The transform path and structural resolver remain separate systems.
The transform path confirms Provisional signal direction.
The structural resolver determines which Provisional identity survives into the Finalized ledger.
A structural event does not directly create an entry reference unless Finalized is selected as the Entry Reference Stage and the corresponding Finalized signal record exists.
Transform Path Capturable Segment
Transform Path Capturable Segment percentage controls the captured movement required by the internal transform-reference path.
It is used to retain broader directional legs and reject smaller path pivots.
The setting affects transform-path construction and therefore can affect which candidates pass mandatory path agreement.
It is not an exit target and does not define minimum trade profit.
Structural resolution
The script includes three structural resolver options:
Earliest Terminal
Original Grouping
Conditional Accelerated
Original Grouping is the default.
Earliest Terminal
Earliest Terminal follows the known-prefix earliest terminal chain.
It is intended to retain the earliest causally provable structural terminal under the solver’s rules.
Original Grouping
Original Grouping retains same-side structural candidates as a group.
A later same-side candidate can replace the retained group extreme before an opposite structural candidate resolves the group.
The retained extreme becomes the finalized structural identity when the opposite side completes the structural transition.
Conditional Accelerated
Conditional Accelerated uses captured-path potential after structural proof.
The Structural Capturable Segment percentage applies only to this resolver.
It does not directly filter transform BUY/SELL events or calculate exit targets.
Structural records are prefix-stable and are committed permanently after confirmation.
Structural path and signal context
The script can display:
structural change labels
structural resolution path
Finalized transform BUY/SELL labels
Provisional Candidate signals
failed or superseded Provisional signals
path-disagreed Candidate labels
current live Candidate
live transform-reference path
confirmed support and resistance
These context displays do not change the selected entry-reference stage or exit-resolution method.
Turning a display off hides the object but does not remove its underlying retained ledger.
Entry and exit displays
Entry Reference Markers
Optional Entry Reference Markers show where the selected Provisional or Finalized entry reference was established.
These markers are display-only and do not represent submitted orders.
Resolved Exit Labels
Resolved Exit Labels show completed exit events.
Each label includes the exit identity determined by the resolution condition.
The script limits retained exit labels through the Maximum Exit Labels input.
Older labels are deleted from the chart when the display limit is exceeded. Their removal from the chart does not alter the chronological exit reconstruction used to determine the current active reference.
Active entry level
When Show Active Entry / Terminal Levels is enabled, the active entry confirmation price is displayed as a blue dotted line.
The line starts from the retained entry-reference bar and extends to the right while the reference remains active.
Active terminal level
When terminal-based resolution is enabled, the retained terminal is displayed as an orange dashed line.
For a long reference, this is the price below which a confirmed close produces a terminal exit.
For a short reference, this is the price above which a confirmed close produces a terminal exit.
Active target level
When a valid target mode is enabled, the target is displayed as a green dashed line.
The line appears only when:
an entry reference is active
the selected target mode is not Off
and the target calculation produces a valid price
Minimum Profit % generally produces a target whenever a valid entry price exists.
Risk/Reward requires a valid positive entry-to-terminal risk distance.
Support and resistance
Optional support and resistance levels are derived from confirmed signal terminals.
The user can:
show or hide the levels
extend the levels right
keep or remove broken levels
change line width
control the maximum number of managed chart objects
These levels provide contextual market structure.
They do not replace the retained entry terminal used by the exit-resolution module.
Replay and chronological reconstruction
The script reconstructs the entry-to-exit state from historical Provisional and Finalized signal ledgers.
The selected entry-stage ledger and selected opposite-stage ledger are merged chronologically.
The merge is linear rather than repeatedly sorting the complete combined event list.
This allows the script to preserve event order while avoiding the unnecessary quadratic event sorting that would become increasingly expensive as the number of signal records grows.
For each historical interval, the script checks:
whether the active retained terminal was invalidated
whether an enabled target was reached
whether a qualifying opposite event occurred
whether a new entry reference should be committed after the previous reference resolved
The reconstructed active state at chart end determines:
current active direction
entry price
retained terminal
target price
last exit reason
last exit bar
last exit price
Same-bar event priority
When an entry-stage event and exit-stage event occur on the same bar, the exit-stage event is processed first.
This preserves the prior active reference’s opportunity to resolve before a new reference from the same bar is committed.
It also prevents a newly created same-bar reference from being immediately interpreted as though it existed before the opposite event that appears at the same timestamp.
Performance controls
The script includes:
Statistics-Only Replay
Maximum Replay Objects
Auto Limit Live Replay
Live Replay Bars
Statistics-Only Replay reduces historical chart-object construction while retaining internal calculations.
Maximum Replay Objects limits the number of displayed historical objects.
Auto Limit Live Replay and Live Replay Bars can reduce the amount of live historical drawing on large charts.
These settings primarily control display and replay workload. They do not change the configured exit formulas.
Status pages
The status table includes separate pages for:
Exit State
Signals
Structural
Support/Resistance
Alerts
Guide
Exit State
The Exit State page displays:
selected Entry Stage
selected Opposite Stage
selected Resolution Method
active direction
entry price
retained terminal
last resolution reason
last exit bar
last exit price
selected Target Exit mode
current target price
Target-price display behavior is:
OFF when target exits are disabled
n/a when no reference is active
unavailable when a Risk/Reward target cannot be formed
the formatted target price when the target is valid
Signals
The Signals page summarizes the internal Provisional and Finalized signal state and selected signal context.
Structural
The Structural page displays selected structural resolver information and structural event context.
Support/Resistance
The Support/Resistance page displays level configuration and retained level state.
Alerts
The Alerts page shows whether resolved exit alerts are enabled and whether the current reconstruction produced a long-reference or short-reference exit event.
Guide
The Guide page explains the main output identities and chart-line colors:
retained entry reference
selected-stage opposite exit
confirmed terminal invalidation
target resolution
blue entry line
orange terminal line
green target line
Alerts
The script contains informational alerts for:
Provisional Transform BUY
Provisional Transform SELL
Finalized Transform BUY
Finalized Transform SELL
Long Reference Exit
Short Reference Exit
Provisional alerts are generated from accepted transform-path-agreed Provisional events.
Finalized alerts are generated when structural resolution commits a Finalized BUY or SELL identity.
Exit alerts identify whether a long or short entry reference resolved.
The exit alert title does not distinguish the exact reason in separate alertconditions. The exact chart label and status-table Last Resolution field identify whether the reconstructed exit was:
OPPOSITE EXIT
TERMINAL EXIT
PROFIT TARGET
RISK/REWARD TARGET
Alerts are informational.
They do not contain:
position size
broker account information
order type
stop order
limit order
routing destination
portfolio instruction
or guaranteed execution price
Important behavior note
The script should be understood as:
causal in its signal confirmation
historically stable after closed-bar confirmation
reconstructed chronologically from retained signal ledgers
live-updating only for current open-bar signal and path context
Closed-bar Provisional signals, Finalized signals, entry references, and completed exits are not moved or reclassified by later chart history.
The current open bar can update only the existing live Candidate and transform-reference context inherited from the internal signal engine.
Terminal and target exits use confirmed closes only.
The tool identifies analytical entry-to-exit reference events. It does not confirm that a real order was filled at the displayed price.
Features
Internally generated Provisional BUY/SELL signals
Internally generated Finalized BUY/SELL signals
Selectable Provisional or Finalized Entry Reference Stage
Selectable Provisional or Finalized Opposite Exit Signal Stage
Opposite Signal exit method
Entry Terminal Break exit method
Combined Opposite Or Terminal Break method
Optional profit requirement for opposite exits
Independent Minimum Profit Target
Independent Risk/Reward Target
Entry-to-terminal risk calculation
Confirmed-close target resolution
Confirmed-close terminal invalidation
Separate opposite, terminal, profit-target, and risk/reward exit identities
One retained active entry reference
Chronological entry and exit event reconstruction
Exit-first same-bar event ordering
Linear two-ledger event merge
Permanent closed-bar entry and exit records
Active entry price line
Active retained terminal line
Active target price line
Entry-reference markers
Resolved exit labels
Maximum retained exit-label control
Three selectable structural resolvers
Mandatory causal transform-path agreement
Candidate-bar or next-bar Provisional confirmation
Stored path-filtered Candidate memory
Provisional and Finalized signal ledgers
Failed and superseded Provisional context
Optional structural path
Optional live transform-reference path
Optional support and resistance
Replay and chart-object performance controls
Multiple status-table pages
Informational signal alerts
Informational long-reference and short-reference exit alerts
Strengths
Self-Contained Signal Source — generates its own Provisional and Finalized entry references without requiring another script’s external signal input.
Entry-to-Exit Structure — converts internal BUY/SELL identities into a retained reference with a clearly defined entry price, terminal, target, and exit reason.
Stage Flexibility — allows the entry stage and opposite exit stage to be selected independently.
Exit Method Flexibility — supports opposite confirmation, terminal invalidation, or whichever valid event occurs first.
Independent Target Logic — fixed-profit and risk/reward targets can resolve the reference without waiting for an opposite signal.
Opposite Profit Gate — can prevent an unprofitable opposite signal from resolving the reference while leaving terminal and target exits active.
Identity Separation — opposite, terminal, fixed-profit, and risk/reward exits remain distinguishable.
Terminal Consistency — uses the terminal retained by the same signal identity that established the entry reference.
Confirmed-Close Stability — terminal and target exits do not depend on unfinished intrabar movement.
Chronological Reconstruction — historical state is rebuilt in event order rather than inferred only from the latest signal.
Same-Bar Ordering — exit-stage processing precedes entry-stage processing when both events occur on the same bar.
Performance-Aware Merge — merges already chronological signal ledgers directly instead of repeatedly sorting a combined event array.
Long and Short Symmetry — applies entry, opposite, terminal, and target calculations to both long and short references.
Visual Clarity — separates entry price, terminal price, and target price with distinct chart lines.
Context Availability — retains optional Provisional, Finalized, structural, path, and support/resistance displays.
Weaknesses
Signal Dependence — exit quality depends on the quality and timing of the internally generated Provisional or Finalized entry reference.
No Universal Best Stage — Provisional entries are earlier but less structurally resolved; Finalized entries are more confirmed but later.
Confirmed-Close Delay — terminal and target exits can occur later than an intrabar crossing.
Close-Price Exit Recording — the recorded exit price is the confirmation-bar close, not necessarily the exact target or terminal price touched intrabar.
No Partial Exits — each retained reference resolves as one complete analytical state rather than splitting into multiple exit quantities.
No Trailing Target — the fixed-profit and risk/reward targets do not trail favorable movement.
Static Entry Terminal — the retained terminal belongs to the entry identity and is not dynamically replaced with every later structural level.
Risk/Reward Availability — a risk/reward target cannot be formed when the retained terminal is not on the correct defensive side of the entry price.
Opposite Profit-Gate Persistence — an opposite signal that fails the profit gate is ignored rather than stored as a pending opposite exit.
No Complete Strategy Return — the tool does not calculate commissions, slippage, quantity, capital allocation, or portfolio equity.
No Broker Execution — displayed exits and alerts do not prove that a real order would fill at the same price.
One Active Reference — the script does not maintain simultaneous independent long and short references or multiple scaled entries.
Historical Reconstruction Cost — although the event merge is linear, the script still performs substantial transform, structural, replay, and chart-object work on large charts.
Parameter Sensitivity — transform capture, structural solver, entry stage, opposite stage, target percentage, and reward multiple can materially change results.
No Universal Profitability — structured exits do not guarantee that the underlying entries have sufficient predictive edge.
Who it’s for
This tool is best suited for:
PulseWire users who want an exit-focused companion to transform-based entry signals
traders comparing Provisional and Finalized entry timing
users studying opposite-signal exit timing
users testing retained-terminal invalidation
users testing fixed minimum-profit targets
users testing entry-terminal risk/reward targets
reversal and market-structure traders
users who want long and short exit references
users who want historically stable closed-bar exit labels
users who want one retained entry reference at a time
users interested in causal transform-path agreement
users developing an exit framework before integrating position sizing or routing
research-oriented users comparing multiple exit identities
users who want chart-based exit analysis without a complete strategy engine
Who it’s not for
This tool is not best suited for:
users looking for guaranteed profitable exits
users expecting the script to know the best future exit in advance
users looking for automatic broker execution
users requiring position sizing or account-risk calculations
users requiring partial profit taking
users requiring multiple simultaneous entries
users requiring dynamic trailing stops
users requiring intrabar target or stop execution
users expecting target price to guarantee actual fill price
users wanting complete strategy-equity reconstruction
users wanting commissions, slippage, leverage, or margin modeling
users expecting Provisional or Finalized signals to universally identify profitable trades
users seeking a complete operational transform engine with split quantities, portfolio state, or order routing
Known limitations
The tool is better at:
retaining a consistent entry reference
showing multiple structured exit conditions
distinguishing why an exit occurred
comparing Provisional and Finalized signal stages
visualizing entry, terminal, and target prices
and reconstructing closed-bar entry-to-exit state
than it is at:
predicting which entry will succeed
guaranteeing that a selected target will be reached
guaranteeing that a terminal exit will contain loss
finding the best possible future exit
or reproducing real broker fills
A fixed-profit target can improve consistency but can also exit before a larger move develops.
A risk/reward target can align the target with entry-terminal distance, but the retained terminal may not represent the user’s actual financial risk or intended stop placement.
An opposite signal can respond to changing structure, but it can arrive late or be ignored when Require Profit For Opposite Exit is enabled and the profit requirement is not met.
A terminal exit can preserve the entry identity’s invalidation point, but confirmed-close evaluation can exit beyond the terminal after a fast move.
These are structural exit references, not guarantees of favorable trade outcomes.
Final note
Entry-to-Exit Tool is a focused indicator for converting internally generated Provisional or Finalized BUY/SELL signals into retained entry references and resolving those references through explicitly defined exit conditions.
Its main value is not that it predicts the perfect exit. Its value is that it makes the exit framework visible and consistent:
which stage opened the reference
which stage can provide the opposite exit
which terminal belongs to the entry
whether an opposite exit requires profit
whether a fixed or risk/reward target is active
which condition actually resolved the reference
and where that resolution occurred on a confirmed close
The tool should be viewed as an entry-to-exit analysis layer, not as a complete strategy, broker-execution system, or guarantee of profitability.
It provides more structured exit information than an entry-only signal script while stopping before quantities, partial positions, portfolio state, order routing, and full operational trade management. Indicator

Next Candle Predictor V4.1## Next Candle Predictor V4.1 — Terminology and Presentation Update
This update improves the clarity of the indicator's terminology and on-chart presentation while preserving its existing calculation framework, weighting structure, visual layout, and signal conditions.
### Changes
- Renamed displayed “Prediction” values to “Directional Score”.
- Replaced “Perfect Time” with “Strong Setup”.
- Renamed the volume-derived component to “Estimated Volume Pressure”.
- Renamed projection visuals to “Directional Scenario Candles”.
- Updated dashboard labels and alert messages for clearer interpretation.
- Removed performance-target wording.
- Added author attribution: Developed by Ceyhun C. Canbazoglu.
### Score Interpretation
The displayed long and short percentages are normalized directional confluence scores derived from the indicator’s rule-based components.
They are not statistical probabilities, expected win rates, guarantees, or forecasts of the next candle’s result.
### Estimated Volume Pressure
Estimated Volume Pressure uses OHLCV data and the closing price’s position within the candle range to estimate directional pressure.
It is not exchange-level bid/ask volume delta or actual aggressive buying and selling volume.
### Directional Scenario Candles
The optional scenario candles are volatility-scaled visualizations based on the indicator’s current directional scores.
They do not forecast the next candle’s exact open, high, low, close, direction, or price target.
### Core Framework
The existing multi-factor framework remains unchanged and continues to evaluate:
- trend direction,
- EMA alignment,
- MACD momentum,
- RSI position,
- Stochastic conditions,
- ADX trend strength,
- relative volume,
- estimated volume pressure,
- and volatility regime.
This indicator is intended as a technical-analysis and decision-support tool. It does not provide financial advice or guarantee trading results. Indicator

Indicator

Liquidity Side Bias Engine [AGPro Series]Liquidity Side Bias Engine
🧠 Core Idea
Which side of resting liquidity is the more likely near-term draw right now: the buy-side above, or the sell-side below?
This script is built to answer that one question with structure instead of guesswork.
📌 Overview / What It Does
Liquidity Side Bias Engine is a forward-looking, two-sided liquidity planner for smart-money and ICT-style analysis. Most price action leaves resting liquidity on both sides of the market: buy-side liquidity above old highs and equal highs, and sell-side liquidity below old lows and equal lows. At any moment, one of those two sides usually has the stronger pull. This tool maps the nearest untapped liquidity on each side and weighs it into a single, readable side lean.
Concretely, it identifies the closest buy-side pool above price and the closest sell-side pool below price from equal-highs and equal-lows clusters, the prior higher-timeframe high and low, and unmitigated swing points. It then scores each side from 0 to 100 using proximity, pool strength, trend context, and premium-discount range position, and reports which side is leaning, by how much, where the primary draw sits, and which opposite level would flip the read.
It does NOT predict price, generate buy or sell signals, or automate trades. It organizes a two-sided liquidity picture into a structured bias so the chart is easier to read and plan around. Every output is analytical context, not a recommendation.
🎯 Purpose & Design Philosophy
Liquidity tools usually fall into two buckets: reactive sweep detectors that mark a liquidity grab after it already happened, and static maps that draw every pool on the chart and leave interpretation entirely to the trader. Both are useful, but neither answers the practical question a planner actually asks before the move: of the two sides, which one is the market more likely leaning toward next?
This engine was built to fill that gap. It is for the trader who already understands liquidity but wants a clean, consistent way to frame the two-sided picture without manually weighing five different factors on every chart. It supports a patient, context-first mindset: read the lean, understand why it leans, watch the primary draw and the flip level, and let broader market context confirm or deny the idea. The goal is intentional, structured thinking, not a shortcut around it.
⚡ Why This Script Is Different
Most liquidity tools focus on what already happened, marking sweeps and grabs after the candle closes, or they paint a dense map of every pool and stop there.
This script does NOT try to call tops and bottoms, does NOT fire trade signals, and does NOT bury the chart in unlabeled levels.
Instead, it looks forward. It treats buy-side and sell-side liquidity as a two-sided tug-of-war and resolves it into one lean score from 0 to 100, with a clear dominant side, a primary draw target, an opposite flip level, the pool type in play, and a premium-discount range read. The leaning side is drawn solid and emphasized; the opposite side is drawn faint as the flip reference. The result is a single, calm decision-support read instead of a wall of levels or a backward-looking alert.
⚙️ Methodology
1. Context Detection
An ATR baseline, an EMA trend backbone with a slope check, and a premium-discount dealing range are computed to describe the current environment.
2. Reference Mapping
The nearest untapped buy-side pool above price and sell-side pool below price are located from equal-highs and equal-lows clusters, the prior higher-timeframe high and low, and unmitigated swing points. The prior period adapts to the chart: prior day on intraday, prior week on daily, prior month on higher timeframes.
3. Reaction Evaluation
Each side is scored from 0 to 100 across four factors: proximity (closer pools pull more), pool strength (cluster size, prior-period magnetism, freshness), trend context (the direction-aligned side is weighted), and range position (discount weights the buy-side draw, premium weights the sell-side draw). The two scores are compared into a single lean; a small balance gap is treated as two-sided.
4. Visual Output
The leaning side, its primary draw, the opposite flip level, pool type, distance, and a next-action read are rendered into a clean panel, two side lines, a centered bias badge, and moderate alternating event labels.
🗺️ How to Read the Chart
- Side lines: the buy-side line sits above price, the sell-side line below. The leaning side is solid and bold; the opposite side is faint and dashed, marking the flip reference.
- Bias badge: a compact badge near current price shows the leaning state and its 0-100 score.
- Target tag: a single right-edge tag marks the primary draw price on the leaning side.
- Faint pool lines: lighter dotted lines show other untapped pools as a soft liquidity map.
- Labels: green relates to buy-side context, pink to sell-side context, amber to balanced.
- Panel: a fixed readout of state, bias score, primary draw, pool type, range, flip level, and action.
🚦 Signals & States
- Buy-Side Lean → buy-side liquidity above is currently the leaning near-term draw.
- Sell-Side Lean → sell-side liquidity below is currently the leaning near-term draw.
- Balanced → both sides are close in score; no clear leaning side.
- Buy-Side Taken / Sell-Side Taken → a liquidity side was traded through (mitigated).
These are interpretive states, not instructions. A Buy-Side Lean does not mean buy; it means the upside pool is the weighted draw in the current context.
🔔 Alerts Logic
Three optional alerts are available:
- Buy-Side Lean: triggers when the dominant side flips to buy-side above the active threshold.
- Sell-Side Lean: triggers when the dominant side flips to sell-side above the active threshold.
- Liquidity Side Taken: triggers when a buy-side or sell-side pool is traded through.
Alerts are attention markers that point you back to the chart for context. They are not trade instructions and carry no guarantee of any outcome.
🧩 Confluence Logic
The lean is itself a confluence read. When proximity, pool strength, trend alignment, and range position agree on one side, that side scores higher and the lean is more pronounced. When they disagree, the score stays moderate and the state may resolve to Balanced, which is information in itself: the two-sided picture is unresolved.
📊 When to Use
- Trending markets, to frame whether the trend-aligned liquidity remains the dominant draw.
- Ranging markets, to read which range extreme is the more likely draw from the current premium-discount position.
- Around prior-period highs and lows, to gauge which side carries the stronger pull.
- As a planning overlay alongside your own structure, entries, and risk framework.
⚠️ When NOT to Use
- In very low-liquidity symbols or sessions, where swing points and pools are unreliable.
- In extremely noisy or news-driven conditions, where levels are violated erratically.
- As a standalone entry trigger, or in isolation from market structure and risk context.
- On data with large gaps or thin history, where pool detection has too little to work with.
🎛️ Key Inputs
- Swing Strength: how strong a swing must be to qualify as a pool. Higher keeps only major swings.
- Pool Memory: how many recent swings are retained per side.
- Equal Level Tolerance: ATR width for grouping nearby levels into an equal-highs or equal-lows cluster.
- Use Prior-Period Pools: includes the adaptive prior-period high and low as pools.
- Trend Backbone EMA and Slope Bars: define the directional context weighting.
- Premium-Discount Range: lookback for the dealing range that drives the range-position factor.
- Max Draw Distance, Pool Freshness Window: shape how distance and age affect the score.
- Active Bias Score and Balanced Gap: thresholds for an active lean versus a balanced read.
- Visual, label, and panel controls: side lines, badge, target tag, pool map, label density, panel location, theme, and font size.
🖥️ Interface & Visual Design
The panel is the primary readout, leading with the leaning state and 0-100 score, then primary draw, pool type, premium-discount range, flip level, and a concise action line. On the chart, visual hierarchy favors the leaning side: it is solid and emphasized, while the opposite side stays faint. Labels are kept moderate and strictly alternating so the chart reads cleanly at a glance. Panel location, theme, and font size are adjustable; the panel is shown by default for readability.
🧪 Practical Usage Workflow
1. Read the panel: note the leaning state and the bias score.
2. Check the primary draw and the flip level: where is the weighted draw, and what would invalidate the read.
3. Read the premium-discount range line: is price in discount or premium, and how far is the draw in ATR.
4. Confirm with your own market structure, higher-timeframe context, and risk framework before any decision.
🔍 Interpretation Guidelines
Think of the lean as a weighted opinion about the two-sided liquidity picture, not a forecast. A higher score means the factors agree more strongly; a moderate score or a Balanced state means the picture is mixed and patience is warranted. The flip level is a structural reference, not a hard line. Always interpret the lean inside the broader market context rather than in isolation.
🚫 What This Script Is NOT
- It is NOT a prediction engine and does not forecast price direction.
- It is NOT financial advice or a recommendation to buy or sell.
- It is NOT an automated trading system.
- It does NOT produce guaranteed signals or outcomes.
⚠️ Limitations & Transparency
Outputs depend on detected swing structure and may differ across timeframes and symbols. Volatility, liquidity, and changing market conditions affect how pools form and how they are taken. Prior-period pools rely on higher-timeframe data and shift as new periods print. The tool describes current structure; it cannot know the future, and any level can be exceeded or fail to be reached.
🧠 Market Context Notes
Liquidity tends to rest where many participants place stops and pending orders: above equal highs, below equal lows, and around prior-period extremes. In an uptrend, price in discount often leans toward the buy-side draw above; in a downtrend, price in premium often leans toward the sell-side draw below. This engine encodes that two-sided logic into a single read, but market context always has the final word.
🧾 Use Case Examples
- Price is in discount within its range, trend is up, and the nearest buy-side pool is a prior-week high: the engine shows a Buy-Side Lean with the prior-week high as the primary draw.
- Price is in premium, momentum is fading, and equal lows rest below: the engine may show a Sell-Side Lean with those equal lows as the primary draw and a high above as the flip level.
- Both sides score closely: the engine reports Balanced, signaling an unresolved two-sided picture.
🧱 System Philosophy
This tool reflects the AGPro Series approach: convert a familiar but messy concept into a calm, structured, decision-support read. Liquidity is everywhere on a chart; the value is in organizing it into a single, honest lean that respects the trader's own judgment rather than replacing it.
🔐 Non-Promise Statement
This script makes no promise of profit, accuracy, or any specific result. It is an analytical and organizational tool. No certainty is offered or implied.
📉 Risk Disclosure
Trading involves substantial risk, and most participants can lose money. This script is provided for educational and analytical purposes only and does not constitute financial advice. All decisions, positions, and outcomes remain entirely your own responsibility. Always manage risk and trade within your own plan.
📚 Educational Note
Used as intended, the engine can sharpen how you think about two-sided liquidity: where it rests, which side is weighted, and what would change the picture. Treat it as a lens for structured analysis, and keep building your own market understanding alongside it.
Indicator

Draw On Liquidity Planner [AGPro Series]Draw On Liquidity Planner
🧠 Core Idea
Of all the liquidity resting around price, which single pool is the dominant draw right now, how strong is that draw, and what level would put it in question?
📌 Overview / What It Does
Draw On Liquidity Planner is a chart-first liquidity decision tool. Instead of drawing every high and low on the screen, it studies the untapped liquidity pools sitting on both sides of price and decides which one is acting as the dominant "draw on liquidity," then frames a complete read around it.
It maps buy-side liquidity above price and sell-side liquidity below price from three sources: clusters of equal highs and equal lows, the prior higher-timeframe high and low, and unmitigated swing points. It tracks which pools are still untapped and which have already been swept. It then scores each side from 0 to 100 and selects the single dominant draw, presenting a clear state, the target pool price, the draw distance in ATR, the pool type, a structural invalidation reference, and a plain next-action read in a clean panel.
The script does not predict price, generate buy or sell signals, or automate trades. It organizes scattered liquidity into one structured draw decision so the chart can be read with intent instead of guesswork.
🎯 Purpose & Design Philosophy
This planner was built to close a specific gap. Many liquidity tools fall into one of two traps: they map every level at once until the chart is unreadable, or they only flag a sweep after it has already happened. Neither answers the first question a liquidity-focused trader actually asks: of everything resting around price, which side is the real magnet, and how convinced should I be?
Draw On Liquidity Planner is designed for patient, context-driven traders who think in terms of where liquidity rests and where price is being pulled. It supports a planning mindset rather than a reflex: identify the dominant draw, note the target and the invalidation, gauge conviction from the score, and then wait for the market to confirm or reject that context. It is a decision-support layer, not a trigger.
⚡ Why This Script Is Different
Most liquidity tools either print a dense map of every swing high and low, or they detect a sweep only once it is complete and leave the interpretation to you.
This script does NOT flood the chart with every level, and it does NOT claim to know the next move.
Instead, it ranks both sides of liquidity into a single dominant draw with a transparent 0-100 score, shows one clean target, one structural invalidation, and a light reference map of the remaining pools, and keeps the detailed read in a premium panel so the price area stays clear. The decision layer — which side, how strong, what would invalidate it — is the product. The raw levels are just the inputs.
⚙️ Methodology
The internal logic runs in clear, rule-based steps:
1. Pool Detection
Swing highs and swing lows are detected with an adjustable swing strength and stored as candidate liquidity pools. The prior higher-timeframe high and low can be included as significant pools, and the period adapts to the chart: prior day on intraday charts, prior week on daily charts, and prior month on higher timeframes.
2. Mitigation Tracking
A buy-side pool is marked as taken once price trades through it, and a sell-side pool once price trades under it. Only untapped liquidity is treated as an active draw, so the read reflects what is still resting rather than what has already been consumed.
3. Cluster Evaluation
Nearby untapped levels are grouped using an ATR-based tolerance to recognize equal highs and equal lows. More touches at a level mean stronger resting liquidity, which contributes a higher draw quality.
4. Draw Scoring
Each side receives a 0-100 score built from four components: pool quality (cluster strength and prior-period status), proximity in ATR, directional context from a trend backbone, and pool freshness. The weighting favors quality and proximity while still respecting trend alignment and how recently the pool formed.
5. Dominant Draw Selection
The higher-scoring side becomes the active draw. When the two sides are close, the context is treated as balanced two-sided liquidity rather than forcing a single direction.
6. Visual Output
The active draw is drawn as a thin highlighted zone with a centered badge, a target line, a structural invalidation line, a light reference map of the remaining pools, a single right-edge target tag, and a complete summary panel.
🗺️ How to Read the Chart
- Draw Zone: the thin highlighted band around the dominant liquidity target, with a centered badge showing the state and the 0-100 score.
- Target Line: the solid line at the active draw pool price.
- Invalidation Line: the dashed line at the opposite-side structural reference (the nearest swing on the other side); losing that level weakens the current draw lean.
- Faint Pool Lines: dotted reference lines marking the other untapped pools on each side, as a light liquidity map.
- Target Tag: a single right-edge tag with the active draw target price.
- Event Labels: compact markers that print when the dominant draw flips side or when a liquidity pool is swept. They alternate by side and stay clear of the candles.
- Panel: state, draw score, target, distance, pool type, invalidation, and action.
Colors follow the AG Pro palette: teal for buy-side draws, pink for sell-side draws, and amber for balanced or lower-conviction context.
🚦 Signals & States
• Buy-Side Draw → untapped liquidity above is the dominant magnet
• Sell-Side Draw → untapped liquidity below is the dominant magnet
• Two-Sided → both sides are roughly balanced, with no single dominant draw
• No Draw → no qualifying untapped pool is currently in range
States describe liquidity context only. They are not trade instructions and carry no guarantee of direction.
🔔 Alerts Logic
Alerts are available for:
- Buy-Side Draw: the dominant draw establishes on the buy side with a qualifying score
- Sell-Side Draw: the dominant draw establishes on the sell side with a qualifying score
- Liquidity Pool Swept: a tracked pool is traded through
Alerts are attention markers that flag a change in liquidity context. They are not signals to enter or exit a position, and each alert should be interpreted within the broader market picture.
🧩 Confluence Logic
The draw score is itself a confluence measure. A high score means pool quality, proximity, directional context, and freshness are aligning on the same side. When the active draw also agrees with your higher-timeframe bias and the prevailing structure, the context is stronger. When they disagree, the read deserves more caution, and the score will usually reflect that with a lower value.
📊 When to Use
• Trending markets, where price tends to reach for liquidity in the direction of the trend
• Range edges, where equal highs or equal lows build obvious resting liquidity
• Charts with a clear prior-period high or low acting as a reference draw
• Planning phases, when defining a target and an invalidation before committing to a view
⚠️ When NOT to Use
• Very low-liquidity symbols or thin sessions, where swing structure is unreliable
• Extreme volatility events, where levels are torn through without reaction
• Very low timeframes dominated by noise, where pools form and break too quickly
• As a standalone entry trigger, with no regard for broader context
🎛️ Key Inputs
• Swing Strength → how strong a swing must be to become a pool
• Pool Memory → how many recent pools are retained
• Equal Level Tolerance → how loosely nearby levels merge into a cluster
• Use Prior-Period Pools → include the prior higher-timeframe high and low (day, week, or month by chart)
• Trend Backbone EMA and Slope → the directional context used in scoring
• Max Draw Distance → distance beyond which a pool is treated as too far to be an active draw
• Active Draw Score → minimum score for an emphasized, alert-eligible draw
• Two-Sided Balance Gap → score gap below which liquidity is treated as balanced
• Visual and panel settings → control zones, lines, labels, density, location, theme, and font size
🖥️ Interface & Visual Design
The interface is intentionally restrained. One dominant draw zone, one target line, one structural invalidation reference, a light pool map, and a single target tag keep the chart readable. Event labels alternate by side and point at the candle that produced them, so the chart reads as a clean sequence rather than a cluster. The panel carries the detailed read, and its first row is a single merged brand header. Panel location, theme, and font size are all adjustable, and the panel is shown by default for clarity.
🧪 Practical Usage Workflow
1. Read the panel: note the state and the draw score.
2. Locate the target: confirm the highlighted draw zone and the target line.
3. Check the invalidation: note the opposite-side structural reference.
4. Confirm context: compare with your higher-timeframe bias and structure before acting on any view.
🔍 Interpretation Guidelines
Treat the draw score as a measure of how clearly liquidity leans to one side, not as a probability of profit. A strong, aligned draw is context to plan around. A balanced or weak read is a reason to wait rather than to force a trade. Every output is meant to be interpreted inside the broader market picture, never in isolation.
🚫 What This Script Is NOT
- It is NOT a prediction engine.
- It is NOT financial advice.
- It is NOT an automated trading system.
- It does NOT generate guaranteed signals or outcomes.
⚠️ Limitations & Transparency
Liquidity context behaves differently across timeframes, symbols, and volatility regimes. Pools can be ignored, swept and reversed, or run through without reaction. Swing detection depends on the chosen settings, and prior-period references behave differently across symbols and session types. This tool organizes context and frames a decision; it does not guarantee how price will respond to any level.
🧠 Market Context Notes
Liquidity tends to rest where many participants place stops: above equal highs, below equal lows, and around prior-period extremes. Price often gravitates toward these areas, but the timing and the reaction are never certain. The structure and volatility around a pool shape how meaningful any reaction near it is likely to be, which is why the score blends proximity and trend context rather than distance alone.
🧾 Use Case Examples
• In an uptrend, the planner highlights a buy-side draw at a cluster of equal highs above price, with a recent swing low as the structural invalidation below and a score that reflects how aligned and how close that draw is.
• In a range, the planner shows two-sided liquidity, signaling that no single side is dominant and that patience is warranted until one side resolves.
• After a deep move, the prior-period high or low can become the dominant draw, giving a clear reference target while the invalidation marks where that lean would weaken.
🧱 System Philosophy
The AG Pro approach favors decision-support tools over raw indicators. Each script is built to answer a specific question, present a clean read, and respect the chart. Draw On Liquidity Planner reflects that philosophy by turning scattered liquidity into one structured draw decision with a transparent score and a defined invalidation.
🔐 Non-Promise Statement
This tool offers no guarantees and no certainty about future price movement. It is a structured way to read liquidity context and frame a plan, nothing more.
📉 Risk Disclosure
Trading involves substantial risk. This script is provided for educational and analytical purposes only and does not constitute financial advice. All trading decisions and their outcomes are solely the responsibility of the user.
📚 Educational Note
Use this planner to study how price interacts with resting liquidity over time. Watching which draws are respected, swept, or ignored on your own market and timeframe is a practical way to build liquidity-reading skill and a more structured trading process. Indicator

HTF Profile Projection | Rainbow MatrixGENERAL OVERVIEW
HTF Profile Projection is a live higher-timeframe X-ray. It takes the current, still-forming candle of a higher timeframe (for example the 4H or Daily candle) and projects it to the right of live price, then fills it with a horizontal profile that shows what is happening INSIDE that candle: where volume is concentrating, where buyers or sellers are dominating each price zone, and where price moved through empty space.
The goal is to let a trader read the internal structure of the higher-timeframe candle without leaving the current chart. Instead of seeing the 4H candle as a single block, you see its anatomy — the price levels that hold the most activity, the zones controlled by buyers versus sellers, and the thin gaps the candle ran through quickly. Every bar in the profile is built from real chart-bar data accumulated since the higher-timeframe candle opened, not drawn manually.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
A higher-timeframe candle is a summary. A single 4H or Daily candle compresses hours of two-sided auction into one open, high, low, and close — and in doing so it hides where the volume actually traded and which side was in control at each price. Two candles with an identical body and identical range can have completely different internal structures: one built on heavy buying absorbed near the lows, the other on distribution near the highs. The standard candle cannot show that difference.
Most tools that try to surface this are built around the wrong constraint. Single-timeframe volume profiles describe the visible range, not the live higher-timeframe candle. Intrabar dissection tools that read true sub-candle data depend on functions that require additional data subscriptions and will not load on standard plans.
HTF Profile Projection takes a different route: it accumulates the chart's own bars since the higher-timeframe candle opened, and distributes each bar's activity across the price range it actually traversed. This reconstructs the internal volume and directional balance of the forming higher-timeframe candle using only standard data feeds — and projects it forward as a single, readable object.
The practical value: when price returns to a higher-timeframe candle later, the levels that mattered inside it — the high-volume node, the buyer- or seller-dominated zones, the empty imbalance gaps — are common revisit and reaction areas. Seeing them while the candle is still forming gives structural context that the candle body alone cannot.
HTF PROFILE PROJECTION FEATURES
The indicator includes these main components: a projected higher-timeframe candle, a range-spread movement profile, automatic resolution, a buy/sell dominance read, imbalance zones, a Point of Control marker, and a live info panel. Multilingual interface and full visual customization.
PROJECTED HTF CANDLE
🔹 What It Does
Reads the live, still-forming higher-timeframe candle and draws it (body + wicks) to the right of live price, color-coded by its direction. The horizontal profile attaches inside its price range.
🔹 Method
The higher-timeframe OHLCV is read via request.security() with lookahead=barmerge.lookahead_off, so no future information is used. The candle and its profile update in real time as the higher-timeframe bar forms — the intended live behavior — and reset cleanly when a new higher-timeframe period opens. If the chart timeframe is at or above the selected higher timeframe, the profile is hidden and a guard note is shown, because one chart bar covering the whole period cannot produce a meaningful internal read.
RANGE-SPREAD MOVEMENT PROFILE
🔹 What It Does
Splits the higher-timeframe candle's range into horizontal price buckets and fills each with the activity that occurred there.
🔹 Method
Since the higher-timeframe candle opened, each chart bar's volume and signed direction are accumulated, then distributed across every bucket the bar's low–high range spans — not dumped at a single midpoint. This range-spread approach makes both the per-zone volume and the per-zone buy/sell balance reflect where price actually traded inside the candle, rather than collapsing onto one level.
AUTOMATIC RESOLUTION
🔹 What It Does
The number of price buckets is chosen automatically from volatility. The higher-timeframe range is divided by the average chart-candle size (ATR), so each fraction of the profile corresponds to roughly one typical move of the chart timeframe.
🔹 Why It Matters
Calmer markets produce a finer profile; volatile markets produce a coarser one. The resolution matches the instrument and timeframe automatically, bounded between 4 and 50 buckets to keep the chart readable.
BUY/SELL DOMINANCE (DELTA MODE)
🔹 What It Does
In Delta mode (the default), each zone is colored by which side dominated: green for net buyers, red for net sellers, and gray for balanced zones where heavy two-way trade produced no clear winner. Bar length shows the magnitude of the imbalance.
🔹 Method
Each chart bar is classified by the sign of close versus open and contributes its volume as signed activity (+ for an up bar, − for a down bar). The net per zone is a direction-based proxy for buy/sell pressure, computed locally on standard data feeds — it is not exchange order-flow data, which Pine cannot access without additional subscriptions.
🔹 Volume Mode
Switching Source Metric to Volume colors the profile by a cold-to-hot intensity gradient instead, showing how much traded at each price regardless of direction.
IMBALANCE ZONES
🔹 What It Does
Price zones with little or no activity render distinctly. A contiguous run of empty buckets marks an imbalance — a price range the higher-timeframe candle moved through quickly with little participation.
🔹 Why It Matters
These gaps are not drawn as separate boxes; they emerge from the ABSENCE of activity in the profile. They are common revisit targets, since price often returns to fill ranges it previously skipped.
POINT OF CONTROL MARKER
🔹 What It Does
A horizontal marker tags the dominant bucket — the price level with the most activity (Volume mode) or the strongest net dominance (Delta mode). A label reports that level's share of the period's total.
LIVE INFO PANEL
🔹 What It Shows
A compact corner panel reports the higher timeframe in use, the percentage of the period elapsed, the Point of Control price, the number of imbalance zones, and the total higher-timeframe volume. When the chart-timeframe guard is active, the panel collapses to a single notice so the user always gets feedback.
🔹 Customization
The panel can be placed in any of the four chart corners and rendered in several font sizes. The display language is controlled by the System Language input.
HOW TO USE
This indicator is not a signal generator. It is a structural X-ray: it shows the internal anatomy of the forming higher-timeframe candle.
🔹 Setup
Set the Higher Timeframe input above your current chart timeframe (for example chart 15m, HTF 4H). The forward candle appears to the right of live price. If the chart timeframe is at or above the HTF, the profile hides and the guard note appears.
🔹 Reading Delta Mode (default)
Green zones mark prices where buyers dominated, red where sellers dominated, gray where the auction was balanced. The Point of Control marks the most decisive level inside the candle.
🔹 Reading Volume Mode
The rainbow profile shows where the most volume traded. Long bars are high-activity nodes; gaps are low-volume imbalance zones.
🔹 Tactical Reading
◇ A high-activity node is a price the higher timeframe has accepted — a common reaction level on revisit.
◇ A buyer- or seller-dominated zone shows which side controlled that price during the period.
◇ An imbalance gap is a range price ran through quickly — a frequent magnet for later revisits.
INPUTS EXPLAINED
🔹 System Language
Display language for the panel and labels. Options: English (default), Português, Español, Русский, 中文 (Chinese).
🔹 Higher Timeframe
The higher timeframe to project. Must be above the chart timeframe.
🔹 Show Forward HTF Candle
Toggle for the projected candle body and wicks.
🔹 Auto-Resolution ATR Length
Lookback for the average chart-candle size used to pick the bucket count.
🔹 Source Metric
Volume (intensity gradient) or Delta (buy/sell dominance, default).
🔹 Projection Offset / Profile Width
Position and maximum horizontal length of the profile to the right of price.
🔹 Spike Threshold / Imbalance Threshold
Controls for what counts as a high-activity node and what counts as an empty/imbalance zone.
🔹 Palette Mode
Intensity (cold-to-hot) or Bull-Bear (dominance coloring, default).
🔹 Profile Transparency / Show POC Marker
Visual styling for the profile and the Point of Control line.
🔹 Info Panel / Position / Font Size
Toggle, corner, and size for the live panel.
IMPORTANT NOTES
HTF Profile Projection works on any chart timeframe below the selected higher timeframe. It is built for liquid instruments with reliable volume data: crypto perpetual contracts, large-cap equities, futures, major forex pairs. On low-volume instruments the profile becomes less reliable.
This is a real-time tool. The forming higher-timeframe candle and its profile update intra-period by design; the profile resets when a new higher-timeframe period opens. It uses only request.security() and chart-bar accumulation, so it runs on standard data feeds without footprint() or request.security_lower_tf().
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
HTF Profile Projection is unique in how it unifies three reads into one object. Most higher-timeframe context tools stack separate features: a candle outline, fair-value-gap rectangles, and volume-spike markers. This indicator merges them — the forward higher-timeframe candle and its volume-by-price profile are a single object. High-activity zones appear as the profile's longest bars; imbalance zones are not drawn at all, they emerge from the absence of activity in the profile. The buy/sell dominance read is reconstructed from chart-bar direction and distributed across each bar's true price range, so it reflects where the auction was actually contested — and it does this on standard data feeds, without the order-flow subscriptions that comparable intrabar tools require. The combination of a live forward-projected candle, automatic volatility-matched resolution, range-spread accumulation, and dominance-versus-balance coloring produces a structural read that behaves differently from single-timeframe volume profiles and from static fair-value-gap tools. Indicator

Phase Exhaustion Reversal [BullByte]Phase Exhaustion Reversal (PXR) is an intraday reversal engine that measures one specific market phenomenon: the moment a short-horizon directional burst exhausts itself against a broader structural gradient. It is built on a single mathematical primitive - directional efficiency - applied at two horizons, and turns the gap between them into an exhaustion-detection framework.
This is not a mashup of existing indicators. The entire engine is derived from one calculation family: how cleanly price travels over a window. The regime classifier, the signal trigger, the risk engine, and the dashboard are all layers of that single concept rather than separate components.
---
Why This Indicator Exists
Most reversal tools fire on oscillator extremes or candlestick patterns. They answer the question "is price stretched?" but not "has the energy actually run out? " A market can stay stretched for a long time before reverting. PXR was built to answer a more precise question: when has a short-horizon momentum burst exhausted its energy against the prevailing structural direction? That moment - the exhaustion-and-recede - is what PXR isolates.
The phenomenon being studied can be observed on historical price data.
When price moves with high short-horizon efficiency in a direction that contradicts the medium-horizon efficiency gradient, that move is consuming energy faster than structure supports. Such bursts can appear to exhaust and then realign with the broader gradient on historical data. PXR visualizes that potential realignment as an observation worth studying.
---
Why a Trader Might Use It
Intraday traders on 5-minute and 15-minute charts frequently face counter-trend bursts that look like reversals but are actually just temporary dislocations. PXR offers a structured way to read those bursts: it waits for the burst to peak, confirms the peak has begun receding, and only then marks the realignment as armed. The next-bar open execution model means the entry price on the chart matches what a real-time observer could actually have achieved.
PXR is designed for traders who want a single coherent reading of market state - regime, bias, setup progression, and signal - rather than juggling multiple unrelated indicators.
---
The Concept
Imagine price as a hiker walking through terrain. Two things can be measured about that hiker over any window of time:
One - how far they ended up from where they started. This is transport.
Two - how much total ground they covered while getting there. This is agitation.
The ratio of transport to agitation is efficiency. If a hiker walked 100 meters in a straight line, transport equals agitation, and efficiency is 1.0 - perfectly directional. If a hiker zigzagged 500 meters total but ended up only 100 meters away, efficiency is 0.2 - most of the energy was wasted on the zigzag.
PXR computes this efficiency at two horizons simultaneously. The short horizon (around 35 minutes of bars, regardless of timeframe, by default) captures reactive bursts. The medium horizon (around 2 hours of bars by default) captures the structural gradient - the broader direction price is actually flowing in.
When the short-horizon efficiency spikes far from the medium-horizon efficiency, the two have dislocated. PXR normalizes this dislocation into a value called the Phase Gap. When the Phase Gap stretches to an extreme and then begins to recede, the short-horizon burst is exhausting. If the medium-horizon gradient points the opposite direction at that moment, PXR marks a realignment signal - the observed behavior is a possible realignment with the structural gradient.
---
What Makes This Different From a Standard Momentum Tool
Three architectural choices separate PXR from typical oscillator-based reversal tools.
First, the use of two-horizon efficiency phase-gap normalization. The raw difference between two efficiency readings is rescaled by its own rolling maximum so the threshold stays meaningful across all volatility regimes. A 0.6 reading means the same thing on a quiet day as on a volatile one.
Second, regime-conditional adaptive thresholds. The signal threshold is not a fixed constant. It adapts based on whether the market is currently classified as Extended (clean trend), Compressed (range), Transitioning (regime shifting), or Neutral. Each regime gets a different sensitivity, and each timeframe gets its own scaling on top of that.
Third, an exhaustion-and-recede state machine gated by structural gradient sign. The signal does not fire when the Phase Gap simply crosses a level. It fires only when the gap has first reached a qualified peak and then receded by a meaningful fraction of that peak - confirming exhaustion has begun - and only when that exhaustion direction opposes the sign of the medium-horizon efficiency. This is a directional fade of short-horizon energy against the prevailing structural gradient.
---
Mathematical Foundation
The script is built from three primitive calculations. All other logic flows from these.
Transport over n bars equals close minus close n bars ago. This measures net displacement.
Agitation over n bars equals the sum of absolute bar-to-bar price changes across that window. This measures total path length.
Efficiency over n bars equals transport divided by agitation. This produces a signed value bounded between -1 and +1. Positive values indicate net upward directional purity, negative values indicate net downward directional purity, and values near zero indicate chop.
The Phase Gap is the short-horizon efficiency minus the medium-horizon efficiency, divided by the rolling maximum of the absolute raw gap. This normalization keeps the Phase Gap roughly within plus or minus one regardless of market conditions.
A realignment signal fires when the Phase Gap has peaked beyond a regime-adjusted threshold and then receded by a meaningful fraction of that peak, AND the sign of the medium-horizon efficiency points in the direction opposite to the burst that just exhausted.
This calculation family is conceptually related to efficiency-ratio style measurements. PXR's originality lies in the multi-horizon phase-gap construction, the regime-adaptive thresholding, and the exhaustion-and-recede state machine.
---
Recommended Timeframes and Markets
PXR is built for intraday operation. The timeframe-adaptive logic is tuned for 1-minute through 15-minute charts. The default Auto-Scale setting recalibrates the horizons so the same physical time window of analysis is used regardless of timeframe.
The phenomenon PXR studies appears most cleanly on liquid intraday instruments. Crypto majors such as BTCUSDT and ETHUSDT on 5-minute and 15-minute charts work well because crypto exhibits meaningful path tortuosity - the agitation-to-transport ratio carries real information. Index futures such as NQ and ES on 5-minute and 15-minute charts also work, though session boundaries can affect the normalization window on overnight sessions.
PXR is built for intraday use. Higher timeframes such as 1H, 4H, or daily may behave differently because the regime thresholds and recede fractions are tuned for intraday energy cycles rather than multi-day structural shifts.
---
Chart Examples
The two examples below are illustrative historical signals chosen to show the engine's mechanics and visual elements. They are not representative of typical or expected outcomes. Many signals fail and reach the INVALIDATION level instead. These examples are educational only.
1. Example - Bull Realignment on BTCUSDT 15m
The annotated chart shows a complete PXR realignment cycle.
Price experienced a sharp short-horizon bearish burst from roughly 77,650 down to 76,150. During this drop, the medium-horizon efficiency gradient remained bullish - the slower 24-bar window still carried the structural upward bias from earlier hours. The yellow diagonal line traces this bullish medium-horizon gradient that the bearish burst was working against.
At the bottom of the move, the Phase Gap reached its negative peak . The bearish burst's energy was fully spent. The yellow rectangle marks the exhaustion zone where two indecision candles stalled the fall.
Beginning shortly after, the Phase Gap began receding from its negative peak. Once it had receded by the configured fraction, the exhaustion-and-recede condition was satisfied. The medium-horizon efficiency was still positive, so the structural gradient gate qualified the direction. The state machine flipped upward and the signal armed on the close of the trigger bar.
On the next bar, the entry executed at the open at 76,410. The four rails drew automatically - INVALIDATION at 75,982, TARGET 1 at 76,923, TARGET 2 at 77,351.
In this illustrative example, the price moved upward after the signal and later reached TARGET 1 and TARGET 2. This is one historical instance only. Outcomes vary, and many signals reach the INVALIDATION level instead.
2. Example - Bear Realignment and Engine
This chart illustrates three aspects of PXR that complement the phenomenon view.
First, the engine is bidirectional. The red downward callout marks a BEAR realignment signal. A short-horizon bullish burst pushed price upward over several hours. When that burst exhausted near 77,400, the Phase Gap reached its positive peak . As the gap began receding and the medium-horizon gradient pointed bearish, the exhaustion-and-recede condition triggered a BEAR signal . The four rails drew at INVALIDATION 77,465, ENTRY 76,765, TARGET 1 75,925, and TARGET 2 75,226.
Second, the regime ribbon is visible across the background. Subtle orange tints mark COMPRESSED periods where both efficiencies are low and the market is consolidating. Subtle cyan tints mark TRANSITIONING periods where the Phase Gap has stretched far and a regime shift is underway. These background colors give an at-a-glance read of market state without requiring a glance at the dashboard.
Third, the live dashboard in the top-right shows engine state in real time. State, Setup, Bias, Phase Gap, and Last all update on every bar. The five-line legend overlay explains what each field represents. At the moment of this screenshot, the BEAR signal was Triggered, the regime was COMPRESSED , and the Phase Gap reading was -0.07 - a sign the dislocation had largely normalized after the signal fired.
Together with the dashboard and regime ribbon, the engine provides a continuous reading of market state - not just point-in-time signals, but a live framework that contextualizes each signal as it forms.
---
How to Read the Chart
PXR draws several elements. Each one represents something specific.
The PHASE EXHAUSTION label, marked with an upward or downward arrow, appears at the bar where the signal arms. An upward arrow with the text " Realign Up " means a short-horizon bearish burst has exhausted against a bullish gradient , and the studied behavior is upward realignment. A downward arrow means the opposite. The label is anchored outside the bar's price extreme so it does not clash with other chart elements.
The ENTRY rail is a dashed line drawn at the open of the bar immediately after the signal armed. This is the reference entry level. The script does not place orders - it visualizes the reference level a real-time user could have acted on.
The INVALIDATION rail is a solid red line. If price reaches this level, the realignment thesis is rejected. This level is calculated as the worse of two values: a structural swing high or low with an ATR buffer, or a minimum ATR-floored distance from entry. Whichever is further from entry is used. This guarantees the invalidation level is never crammed inside short-term noise.
The TARGET 1 and TARGET 2 rails are teal solid lines placed at user-configurable R-multiples of the invalidation distance. These represent profit objectives. The defaults are 1.2R and 2.2R, which can be modified in the Risk Settings group.
All four rails extend forward bar by bar while the trade is conceptually active, and their labels trail slightly ahead of the live bar so they remain visible at the right edge of the chart.
The regime ribbon is a subtle background tint. Red indicates an Extended regime, orange indicates Compressed, cyan indicates Transitioning, and faint grey indicates Neutral. The ribbon helps users see at a glance which regime the engine currently classifies the market in.
The active tint colors bars green during an active long observation and red during an active short observation. This is purely visual and can be toggled off.
---
How to Read the Dashboard
The dashboard sits in the top-right of the chart and shows six live readings.
State shows the current regime classification. Extended means the medium-horizon efficiency is high - the market has a clean directional gradient. Compressed means both efficiencies are low - the market is ranging. Transitioning means the Phase Gap has stretched far - a regime change is in progress. Neutral means none of the above.
Setup shows the realignment setup progress. No Setup means nothing is forming. Forming means the Phase Gap has reached 60 percent of the threshold. Watching means the Phase Gap has reached 85 percent of the threshold - a setup is building but no signal has fired yet. Armed means a confirmed signal has fired and is awaiting next-bar execution. Triggered means a trade observation is currently active.
Bias shows the direction of the medium-horizon efficiency gradient. BULL means the structural gradient points up. BEAR means it points down. A dash means it is neutral.
Phase Gap shows the live normalized Phase Gap value, roughly bounded within plus or minus one. The color brightens when the absolute value exceeds the threshold.
Last shows the direction of the most recently triggered realignment.
---
Settings Explained
Core Settings.
Auto-Scale Horizons: when on, the Short and Medium horizons are automatically recomputed per timeframe so the analysis covers similar physical time on every chart. When off, the manually entered horizon lengths are used. Recommended on for users who switch between timeframes.
Short Horizon: bars used to measure short-horizon efficiency. Lower values are more reactive but noisier. Default 7. Ignored when Auto-Scale is on.
Medium Horizon: bars used to measure the structural efficiency gradient. Should span one meaningful intraday cycle. Default 24. Ignored when Auto-Scale is on.
Phase Gap Threshold: the normalized Phase Gap level required for a peak to qualify as exhaustion-grade. Higher values yield fewer but stronger signals. Default 0.58.
Cooldown Bars: minimum bars between two consecutive signals. Prevents clustering during noisy regimes. Default 3.
Risk Settings.
ATR Length: the ATR window used for the volatility-based stop floor. Default 14.
ATR Floor Multiplier: minimum stop distance expressed as a multiple of ATR. Ensures the stop is never inside short-term noise. Default 1.0.
TP1 R-Multiple: first profit target expressed as a multiple of the invalidation distance. Default 1.2.
TP2 R-Multiple: final profit target expressed as a multiple of the invalidation distance. Default 2.2.
Visuals.
Show Regime Ribbon: toggles the background regime tint.
Show Active Tint: toggles the green or red bar coloring during an active observation.
Show Dashboard: toggles the top-right state dashboard.
---
Execution Model - Why This Is Honest
PXR uses a strict two-bar workflow. The signal arms only on the close of a confirmed bar - this is enforced by a barstate-confirmed gate inside the engine. The entry then executes at the open of the next bar. This means the entry price shown on the chart matches what a real-time user could have achieved by placing a market order the moment the signal arms.
This workflow prevents the most common form of repaint illusion. The script does not use lookahead data. It does not use future bars. It does not modify past signal positions. Historical signals on the chart represent the same logic that fires in real time.
---
What the Indicator Does Not Do
PXR does not predict future price. It identifies a measurable energy state and labels the observation. It does not place trades. It does not guarantee outcomes. It does not work on all markets in all conditions. It is not a substitute for risk management, position sizing, or contextual judgment.
The realignment behavior is an observed tendency on historical data, not a certainty or guarantee.
The invalidation rail exists precisely because failure is expected and must be bounded.
---
Limitations You Should Know
Session boundaries on instruments such as NQ and ES can compress the rolling normalization window during overnight low-liquidity periods. This can make the Phase Gap appear weaker than it would on a continuous session.
The engine is intentionally reversal-focused. It does not generate continuation signals. In strong trending markets, reversal signals may underperform compared to a continuation tool because the structural gradient is not exhausting - it is reinforcing itself.
Auto-Scale produces horizon values that may differ substantially from the manual input defaults. If a user toggles Auto-Scale off after operating with it on, the manual values will be used immediately and behavior will shift.
On very long historical lookbacks at 1-minute resolution, the efficiency calculation may require additional processing time due to the bar-by-bar path-length computation. If performance is a concern, reducing the Medium Horizon input or enabling Auto-Scale on faster timeframes will reduce the load.
---
Disclaimer
This script is provided for educational and analytical use only. It does not provide financial, investment, or trading advice. It does not guarantee any specific outcome. Past behavior of the indicator on historical data does not imply future results. Markets carry risk. Use independent judgment, sound risk control, and full market context before acting on any signal or observation produced by this tool. The author is not responsible for any decisions made on the basis of this script.
Indicator

Polar Auto Fibonacci Pro - [Rehan Khanani]Polar AutoFib Pro
Polar AutoFib Pro is a professional all-in-one trading indicator that combines two powerful systems into a single clean overlay—a trend-following buy/sell signal engine and an automatic Fibonacci retracement tool. No need to juggle multiple indicators; everything you need is right here on the chart.
─────────────────────────────
HOW IT WORKS
─────────────────────────────
This indicator runs two engines simultaneously:
Engine 1 — PolarEdge Signal System
Generates high-probability Buy and Sell signals by combining three confirmations:
1. EMA 200 — The primary trend filter. When the price is above the EMA, the system looks for Buy setups. When the price is below, it looks for Sell setups. This keeps you trading with the dominant trend at all times.
2. Supertrend — A dynamic volatility-based band that confirms trend direction. The green band confirms bullish momentum; the red band confirms bearish momentum.
3. RSI (Relative Strength Index) — Used as a momentum trigger. A BUY signal fires when RSI crosses up from the oversold zone (default 30). A SELL signal fires when RSI crosses down from the overbought zone (default 70).
All three conditions must align simultaneously—this triple-confirmation logic filters out weak and false signals.
Engine 2 — Auto Fibonacci Retracement
Automatically detects the most recent swing high and swing low using pivot point calculations, then draws the complete Fibonacci retracement grid in real time — no manual drawing required.
The indicator identifies whether the last major pivot was a high or a low, determines the swing direction, and plots all key levels accordingly. When a new swing forms, the levels update automatically.
─────────────────────────────
FIBONACCI LEVELS INCLUDED
─────────────────────────────
0 / 0.236 / 0.382 / 0.5 / 0.618 / 0.786 / 1
1.618 / 2.618 / 3.618 / 4.236
Each level is independently toggleable with its own color control. You can show values as decimals or as percentages. Labels can be positioned on the left or right side of the chart. Line extension can be set to Left, Right, or Both directions.
─────────────────────────────
KEY FEATURES
─────────────────────────────
- Triple-confirmation Buy/Sell signals (EMA + Supertrend + RSI)
- Automatic Fibonacci retracement — no manual drawing needed
- Real-time swing detection using pivot high/low logic
- Dynamic trend background (subtle green/red shading behind candles)
- 11 fully customizable Fibonacci levels with individual color pickers
- Toggle each Fib level on/off independently
- Show prices and/or level values on labels
- Labels position: Left or Right
- Line extension: Left, Right, or Both
- Reverse Fib direction toggle
- Works on all assets: Forex, Crypto, Commodities, Indices, Stocks
- Works on all timeframes
- 6 built-in alert conditions (see Alerts section below)
─────────────────────────────
SETTINGS GUIDE
─────────────────────────────
Group 1 — PolarEdge Signal Settings
- Trend Baseline EMA: Period for the main trend filter (default 200)
- RSI Length: RSI calculation period (default 14)
- RSI Overbought Level: Sell trigger threshold (default 70)
- RSI Oversold Level: Buy trigger threshold (default 30)
- Show EMA 200: Toggle the EMA line on/off
- Show Supertrend Bands: Toggle the Supertrend lines on/off
Group 2 — Auto Fibonacci Settings
- Pivot Depth: Number of bars to look back for swing detection (default 10). Lower = more sensitive, Higher = fewer but stronger pivots
- Reverse Fib Direction: Flips the Fib measurement direction
- Extend Left / Right: Controls how far Fib lines extend on the chart
- Show Prices: Displays exact price on each level label
- Show Level Values: Displays the Fib ratio on each level label
- Level Format: Choose between decimal values or percentage display
- Labels Position: Place labels on the Left or Right side
Group 3 — Fibonacci Levels
- Toggle each of the 11 levels individually
- Customize the value and color of every level
─────────────────────────────
ALERT CONDITIONS (6 Total)
─────────────────────────────
1. BUY Alert — fires on every confirmed Buy signal
2. SELL Alert — fires on every confirmed Sell signal
3. Any Signal — fires on either Buy or Sell
4. Fib 0.618 Cross — price crosses the Golden Ratio level
5. Fib 0.5 Cross — price crosses the midpoint level
6. Fib 0.382 Cross — price crosses the key retracement level
To activate: click the alarm clock icon on the indicator, select your desired condition, and set your notification method.
─────────────────────────────
HOW TO USE
─────────────────────────────
Step 1 — Identify trend direction using the EMA 200 and the background color. Green background means bullish bias; red background means bearish bias.
Step 2 — Watch for a BUY or SELL label to appear. This confirms all three conditions (EMA, Supertrend, RSI) have aligned.
Step 3 — Use the automatically drawn Fibonacci levels to plan your entry, stop loss, and take profit targets. Common setups: enter near the 0.382 or 0.5 retracement, target the 0 or -0.236 extension, stop below the 0.618 or 0.786 level.
Step 4 — Set alerts on your preferred Fibonacci levels to be notified when price reaches key zones.
─────────────────────────────
RECOMMENDED TIMEFRAMES
─────────────────────────────
- Scalping: 1m, 5m, 15m
- Intraday: 30m, 1H
- Swing Trading: 4H, Daily
- Position Trading: Weekly
The indicator adapts to any timeframe automatically.
─────────────────────────────
DISCLAIMER
─────────────────────────────
This indicator is a technical analysis tool designed to assist in identifying potential trading opportunities. It does not guarantee future results. Always apply proper risk management and conduct your own analysis before entering any trade. Past signal performance is not indicative of future results. Indicator

Indicator

Indicator

Mobile Wallstreet Confidence IndicatorMobile Wallstreet Confidence Indicator
Most indicators lie to you. They fire signals on every candle, flood your chart with noise, and leave you holding the bag wondering what went wrong. This one is different.
The Mobile Wallstreet Confidence Indicator was engineered to stay silent until the market is genuinely ready — and when it fires, you'll know exactly why and exactly how confident the setup is.
HOW IT WORKS
Every signal passes through a strict 6-layer filter system before a single arrow appears on your chart:
1. Multi-Timeframe Stack (M15 / H1 / H4 / D1)
The indicator reads all four timeframes simultaneously using a triple EMA alignment model. You control how many must agree before a signal is even considered. No more trading against the higher timeframe trend.
2. Hull MA Momentum Gate
Price must be on the correct side of a rising or falling Hull MA. If momentum isn't confirmed, the signal is blocked — full stop.
3. ATR Depth & Range Filter
The market must show meaningful range and retrace depth relative to ATR. Flat, choppy, low-conviction price action gets filtered out automatically.
4. Structure Clearance
Signals won't fire into overhead resistance or below key support. The indicator measures structure clearance in ATR units so it adapts to every market and every volatility environment.
5. Pattern Rank (0–10)
Each setup is scored across 5 criteria — EMA alignment, RSI momentum, structure break, candle body strength, and price position. Only setups above your minimum rank threshold make the cut.
6. Confidence Score (0–100)
Every signal comes with a live confidence score weighted across MTF agreement, trend alignment, Hull momentum, RSI strength, and pattern rank. You see the number. You decide your conviction.
WHAT YOU GET ON THE CHART
🟢 BUY arrow — all layers aligned bullish, confidence threshold met
🔴 SELL arrow — all layers aligned bearish, confidence threshold met
📊 MTF Dashboard — live top-right panel showing M15 / H1 / H4 / D1 direction, bull/bear counts, confidence scores, pattern ranks, and a plain-English status message telling you exactly what the market is waiting on
🏷️ Signal Labels — confidence score and pattern rank printed directly on every arrow so you never have to guess signal quality
FULLY CUSTOMIZABLE
Every parameter is adjustable to fit your trading style:
Execution timeframe
Fast / Slow EMA periods
Hull MA period
ATR period
Number of MTF timeframes required to agree
Minimum confidence score threshold
Minimum pattern rank threshold
Retrace depth multiplier
Structure clearance multiplier
Structure lookback window
Toggle new signals only, labels, and dashboard on/off
BUILT-IN ALERTS
Set PulseWire alerts on BUY and SELL signals and never miss a setup — whether you're watching the screen or not.
WHO THIS IS FOR
This indicator is for traders who are done with noise. If you want a tool that thinks before it speaks, filters relentlessly, and gives you full transparency on every signal it generates — this was built for you.
Swing traders. Day traders. Multi-timeframe operators. Anyone who trades with a plan.
Mobile Wallstreet. Confidence on every candle. Indicator

Adaptive Fibonacci Trailing System [WillyAlgoTrader]🚀 Adaptive Fibonacci Trailing System (AFT) is a premium overlay toolkit that combines a regime-aware adaptive trailing stop, a dynamic Fibonacci premium/discount cloud, a 6-factor confidence grading engine, full SL/TP risk management with break-even logic, and a built-in backtest tracker — all in one indicator. Every signal arrives with a clear direction, a confidence grade (A+ / A / B / C), a recommended position size, and pre-placed stop-loss and three take-profit levels.
This is not a static trailing stop. This is not another Fibonacci retracement tool you have to draw by hand. This is a complete trade-management system that automatically detects market structure, classifies the current regime (Trending / Ranging / Volatile), adapts its stop placement to the conditions, scores every setup from 0 to 100%, and tracks every closed trade so you can see whether your settings actually work on your market.
🎯 WHO THIS IS FOR
— Trend traders who want a structural trailing stop that adapts to volatility instead of trailing a fixed percentage
— Swing traders who need clean Buy/Sell signals with pre-calculated SL, TP1, TP2, TP3
— Day traders and scalpers who need fast regime detection so they don't trade trend signals in a ranging market
— Discretionary traders who want a confidence score to filter low-quality setups
— Systematic traders who want JSON webhook alerts for automation
— Anyone tired of generic Fibonacci tools that ignore market context
— Traders who want a built-in backtest tracker to validate the system on their own market and timeframe
💎 WHY TRADERS CHOOSE THIS INDICATOR
✅ Adaptive trailing stop — not a fixed ATR multiple.
The trailing stop is anchored to Fibonacci levels of the most recent swing range and adjusts itself based on the detected regime. In trending markets it widens to let winners run. In ranging markets it tightens to exit fast. In volatile markets it sits at the midpoint. You don't choose a static distance — the indicator chooses the right distance for current conditions.
✅ Built-in market regime detection.
Every bar is classified as Trending , Ranging , or Volatile using ADX and a volatility ratio (current ATR vs. 50-bar average). Hysteresis is applied so the regime doesn't flicker on borderline values. You always know what kind of market you're in before you take the trade.
✅ Dynamic Fibonacci cloud.
A premium/discount zone is drawn live between the 0.382 and 0.618 levels of the current swing structure. The cloud re-anchors automatically every time the structure changes — no manual drawing, no stale levels from last week. Three visual styles available: Gradient, Solid, or Pulsing (brightens when price approaches the 0.5 inflection point).
✅ Two signal modes for two trader styles.
Trail Flip mode fires signals only when the adaptive trail flips direction — fewer signals, strong trend conviction. 0.5 Cross mode fires when price crosses the Fibonacci 0.5 (premium/discount inflection) with full triple-confirmation — earlier entries, more signals. The 0.5 Cross mode also has three strictness levels (Strict / Relaxed / None) so you can dial signal frequency to match your style.
✅ 6-factor confidence score on every signal.
Every Buy/Sell signal comes with a percentage score and a letter grade. Grades range from D (poor) to A+ (premium setup). The score combines structure strength, regime alignment, ADX strength, volume, volatility favorability, and Fibonacci/SMA50 confluence — weighted into a single number you can filter on. Set a minimum confidence threshold and weak signals are blocked automatically.
✅ Adaptive position sizing.
Set your base risk per trade once. The indicator scales it by signal grade: C grade gets 0.5× base, B grade 0.75×, A grade 1.0×, A+ grade 1.5×. You take small positions on average setups and larger positions on premium setups — automatically. Recommended risk % is shown live in the dashboard.
✅ Full risk management with one-click presets.
Choose Conservative, Balanced, Aggressive, Scalping, or Custom. Every Buy/Sell signal automatically draws Entry, SL, TP1, TP2, TP3 lines on the chart with price and percent-from-entry labels. Lines extend forward and update live until the trade closes.
✅ Break-even trail after TP1.
When TP1 is hit, the stop-loss automatically moves to entry. Your remaining position becomes risk-free. The original SL line dims to show it's no longer active, and the entry label updates to "→ SL (BE)" so you always know where the real stop is.
✅ Built-in backtest tracker — per-grade.
Every closed trade is tracked: total trades, wins, losses, win rate, average R, profit factor, total R. Then it's broken down by confidence grade so you can see whether A+ signals actually outperform B signals on your market. If they don't, you know to retune. The tracker auto-resets when you change critical inputs so old stats never pollute new tests.
✅ Triple-confirmation breakout filter.
Direction changes require body ratio + ATR-based penetration + regime gate. No more wick-based fakeouts triggering position flips. You can dial the strictness for both modes independently.
✅ Universal — works on every market and timeframe.
Forex, crypto, stocks, futures, indices. Scalping (1m, 5m), intraday (15m, 1h), swing (4h, 1D), position (1W). The structure engine adapts to whatever pivot length you set. Volume is auto-detected and gracefully ignored on FX where it's unreliable.
✅ Professional dashboard with full live state.
At a glance: Regime, ADX, Volatility ratio, Signal mode, Confidence + grade, Suggested risk %, Direction, Trail Stop price, Timeframe, full SL/TP/RR/Risk block, and a complete Backtest section with per-grade breakdown.
✅ Alerts in plain text or JSON for webhooks.
Buy / Sell / SL hit / TP1, TP2, TP3 hit / Break-even activated. JSON payload includes ticker, timeframe, price, SL, all three TPs, R:R, regime, mode, confidence, grade, and recommended risk % — ready to feed any automation pipeline.
🚀 HOW IT CHANGES YOUR WORKFLOW
Before: You draw Fibonacci retracements by hand on every swing. You guess where to place the stop — fixed ATR multiple, recent low, gut feel. You take signals in any market without checking if it's trending or ranging. You have no idea whether your "best" setups actually win more often. You miss break-even opportunities and watch winners turn into losers. You manage three TPs in your head and forget which one was already hit.
After: You add the indicator. The Fibonacci cloud is already drawn — re-anchored to the current swing automatically. The dashboard tells you the regime, the signal grade, and the recommended risk % before you click Buy. SL, TP1, TP2, TP3 are pre-placed and labeled with prices and percentages. When TP1 hits, your stop is moved to entry without you touching anything. Every closed trade is logged and broken down by grade. After 50 trades, you know exactly which signal mode and confidence threshold work on your market.
What used to take 5 minutes of manual setup per trade now takes 5 seconds — read the dashboard, decide.
📖 HOW TO USE
🎯 Quick start (for beginners):
1. Add the indicator to your chart (any market, any timeframe).
2. Look at the dashboard in the top-right corner. It tells you the regime (Trending / Ranging / Volatile), the current confidence score, and the suggested risk %.
3. Wait for a "▲ Long " or "▼ Short " label to appear under or above a candle. The grade letter (C, B, A, A+) tells you the quality of the signal.
4. The indicator automatically draws Entry, SL, TP1, TP2, TP3 lines on the right side of the chart with prices and percentages.
5. Place your trade with the suggested risk % from the dashboard. Use the SL and TP levels exactly as drawn.
6. When TP1 hits (line turns cyan with a ✓), your SL automatically moves to entry — your trade is now risk-free. Let it run to TP2 and TP3.
7. The Backtest panel at the bottom of the dashboard tracks every closed trade. Watch your stats grow.
👁️ Reading the chart:
— 🟢 Green "▲ Long " label = Buy signal with grade letter
— 🔴 Red "▼ Short " label = Sell signal with grade letter
— 🟡 The colored cloud between two Fib lines = the current premium/discount zone
— The middle dotted line (Fib 0.5) = the inflection between premium and discount
— Solid colored line that follows price = the adaptive trailing stop (green when long, red when short)
— Blue dotted line = your entry price
— Red solid line = your stop-loss
— Green dashed lines (3 of them) = TP1, TP2, TP3
— When a TP is hit, its line turns cyan and the label gets a ✓ check mark
— When break-even activates, the SL line dims and the entry label becomes amber with "→ SL (BE)"
📊 Dashboard fields:
— Regime : current market state (Trending, Ranging, Volatile)
— ADX : trend strength number
— Vol Ratio : how volatile the market is right now (1.0 = average)
— Signal : which signal mode is active and its strictness
— Confidence : the score and grade of the most recent / pending signal
— Sugg. Risk : the recommended position size as % of account
— Direction : current trail direction (Bullish / Bearish / Flat)
— Trail Stop : the live trailing stop price
— TF : your current timeframe
— SL / TP1 / TP2 / TP3 : active trade levels (BE @ price when break-even is on)
— R:R : risk-to-reward ratio at TP1
— Risk : distance from entry to SL as % of price
— Backtest section : Trades, Win Rate, Avg R, Profit Factor, Total R
— By Grade : same stats broken down by A+ / A / B / C / D
💡 Trading ideas:
— Trend-follower setup : Use Trail Flip mode + Conservative risk preset on 1H or 4H. Take only A and A+ signals. Let trades run to TP3.
— Premium/discount swing setup : Use 0.5 Cross + Strict + Balanced risk on 15m or 1H. The 0.5 cross catches reversals at the Fibonacci inflection point.
— Scalping setup : Use 0.5 Cross + Relaxed + Scalping preset on 1m or 5m. Lower the minimum confidence to 50%. Exit at TP1 or TP2.
— Confirmation overlay : Run AFT alongside your existing system. Only take your trades when AFT confidence shows B or higher in the same direction.
— Beginner-safe mode : Set minimum confidence to 75 (A grade or above). Use Conservative risk preset. Let break-even handle most management.
— Backtest-then-trade workflow : Toggle Reset Backtest, scroll the chart back, let the indicator collect 30+ trades, check the per-grade stats, then start trading the grades that perform best.
🔧 Tuning guide:
— Too many signals? Increase Min Confidence (try 60 or 75), or switch from "None" to "Strict" cross strictness, or use Trail Flip mode.
— Too few signals? Lower Min Confidence (try 40 or 50), or set strictness to "Relaxed" or "None".
— Stop too tight? Switch trailing mode from Aggressive to Balanced or Conservative, or pick the Conservative risk preset.
— Stop too wide? Switch to Aggressive trailing mode or Aggressive / Scalping risk preset.
— Whipsaw on ranging markets? Increase Breakout Confirmation to 0.3 or 0.5, raise Min Body Ratio to 0.6.
— Want only premium setups? Set Min Confidence to 90 (A+ only). Expect 1-3 signals per week on most markets.
⚙️ KEY FEATURES
🏛️ Structure Engine:
— Score-filtered swing detection (every swing is rated by ATR-normalized impulse and volume)
— Adjustable pivot length (3 to 50 bars)
— Memory of the last 5 swings for stable Fibonacci anchoring
— Optional swing labels showing the score number
📡 Market Regime Engine:
— ADX-based trend detection with adjustable threshold
— Volatility ratio (current ATR vs. 50-bar average) for volatile-state detection
— Hysteresis on both thresholds — no regime flicker
— Optional background highlight for 10 bars after each regime change
🎯 Trailing Stop Engine:
— 4 modes: Aggressive (tight), Balanced, Conservative (wide), Adaptive (auto-adjusts to regime)
— Volatility-inverse adjustment: tighter in low vol, wider in high vol
— Direction-locked update: longs only lift the stop, shorts only lower it
— Triple-confirmation breakout filter (body ratio + ATR penetration + regime gate)
🌀 Fibonacci Cloud:
— Auto-anchored to the latest valid swing high/low
— 3 visual styles: Gradient, Solid, Pulsing
— Optional confluence markers when a Fib level aligns with SMA50
— Toggleable Fib level lines (0.382 / 0.5 / 0.618)
🛡️ Risk Management:
— 5 presets: Conservative, Balanced, Aggressive, Scalping, Custom
— ATR-based stop sizing with adjustable multiplier
— Three take-profit levels with adjustable risk-multiples
— Break-even trail toggle (moves SL to entry on TP1 hit)
— Live SL/TP lines with price + percent-from-entry labels
— Position lock: new signals are blocked while a trade is active
🎓 Confidence & Sizing Engine:
— 6-factor scoring (structure / regime / ADX / volume / volatility / confluence)
— 5 grades: D / C / B / A / A+
— Minimum confidence filter (0–100%) blocks weak signals
— Adaptive position sizing toggle scales risk by grade
— Adjustable base risk % per trade
📈 Backtest Tracker:
— Tracks every closed trade (closed by SL or TP3)
— Win/loss outcome model with TP1/TP2/TP3 partial-success recognition
— Win rate, average R, profit factor, total R
— Per-grade breakdown (validate the confidence engine on your market)
— Auto-reset on critical input changes
🎨 Visual System:
— Auto / Dark / Light theme detection
— Configurable label and dashboard font sizes
— Compact Pro-style design — no chart clutter
— Optional WillyAlgoTrader watermark
🔔 Alert System:
— Buy / Sell signals with full payload
— SL Hit, TP1/TP2/TP3 Hit, Break-even Activated
— Plain text or JSON webhook format
— Bar-close confirmed (no repainting)
📊 Dashboard:
— 5 position options (corners + middle right)
— 3 font sizes
— Adapts to your visible feature set (collapses sections that aren't enabled)
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals fire only on confirmed bar close. Pivots use equal left/right lookback (the swing point is in the past by N bars — this is delayed confirmation, not repainting). Alerts use alert.freq_once_per_bar_close.
— 📐 The trailing stop and Fibonacci anchors require at least two opposing swings in memory. Fresh charts and new symbols need a brief warm-up period (typically 50 bars).
— 📐 On markets with no reliable volume data (most FX pairs), the volume-confirmation factor is replaced by a neutral default. The indicator works fully on FX.
— ⚖️ The backtest tracker counts only confirmed closures (SL hit or TP3 hit). Partial profits at TP1/TP2 are recognized in the win/loss outcome but realize at the level reached when the trade ultimately closes. Real-trading slippage, spread, and fees are not modeled.
— ⚖️ The confidence score is a quantitative filter, not a prediction of profit. It reflects setup quality based on the inputs available — not future performance.
— 🛠️ This is an analysis and trade-management tool, not an automated trading bot. It detects structure, classifies regime, scores setups, places SL/TP levels, and tracks outcomes — trade decisions remain yours .
— 🌐 Universal compatibility — works on all markets (Forex, crypto, stocks, futures, indices) and all timeframes from 1m to 1M. Indicator

SuperTrend Flip Zones [AGPro Series]# SuperTrend Flip Zones
🔷 OVERVIEW
SuperTrend Flip Zones is a trend-following overlay designed for traders who appreciate the clarity of SuperTrend, but want a more selective and more structured version of it on the chart.
Traditional SuperTrend tools are popular because they are simple: the line flips, the color changes, and the chart immediately prints a directional signal. That simplicity is useful, but it also creates a familiar weakness. In many market conditions, raw SuperTrend flips can appear too early, too close to noise, or without enough expansion to show that a genuine directional transition is taking hold.
This script was built to solve that exact problem.
Instead of treating every SuperTrend direction change as equally meaningful, SuperTrend Flip Zones evaluates the quality of the flip itself. Only qualified flips are promoted into visible BUY / SELL events, and each accepted signal creates a forward-projecting support or resistance zone built around the new SuperTrend structure.
The result is not just another SuperTrend clone with different colors. It is a more selective, more chart-aware framework that helps traders judge whether a flip is worth paying attention to, and where the new trend should continue to defend itself after that flip occurs.
🔷 WHAT MAKES THIS DIFFERENT
The biggest difference is that this script does not stop at the flip.
Most SuperTrend indicators on the platform focus on one task only:
detect the directional switch and mark it immediately.
SuperTrend Flip Zones takes a broader view. It asks two additional questions:
1. Was the flip strong enough to deserve attention?
2. After the flip, where is the live structural zone that the new trend is expected to protect?
That design choice creates a very different chart experience.
Instead of receiving every mechanical transition equally, the user sees a filtered signal environment. Weak flips can be ignored, while stronger flips remain visible and are reinforced by an ATR-based zone that extends forward. This makes the tool useful not only at the exact moment of the flip, but also in the bars that follow, when traders are deciding whether the move is still being respected.
It also creates clear separation from other AGProLabs tools in the same family.
This is not a pullback-quality script.
It is not focused on grading retracements inside an already established trend.
It is focused on the transition point itself, and on the acceptance zone created by that transition.
🔷 CORE LOGIC
The script is built around a custom SuperTrend engine using the selected ATR model, source, and multiplier.
When the direction flips, the script does not blindly trust the event. The flip is scored through a multi-factor quality model that examines:
- candle body efficiency,
- range expansion relative to ATR,
- price separation from the active SuperTrend line,
- alignment with a trend EMA,
- maturity of the prior trend leg before the reversal occurred.
Only flips that meet the minimum quality threshold are accepted.
Once a bullish or bearish flip qualifies:
- a BUY or SELL signal is printed,
- the signal can be promoted to BUY+ or SELL+ when the score is stronger,
- a rectangular support or resistance zone is created around the new SuperTrend level,
- that zone is extended forward to provide ongoing structure.
This makes the indicator useful both as a signal filter and as a post-signal map.
🔷 WHY THE ZONES MATTER
A standard SuperTrend line tells you where the trailing stop or directional boundary currently sits.
This script adds another layer by converting qualified flips into live zones. Those zones are important because they help visualize where the market should continue to accept price if the new directional phase is healthy.
In bullish conditions, the zone behaves like a dynamic support belt around the fresh SuperTrend structure.
In bearish conditions, the zone behaves like a dynamic resistance belt.
If price continues to respect that zone, the flip remains structurally valid.
If price loses the zone, the chart communicates that the new directional state is weakening or failing.
This produces a more practical read than a line alone, especially for traders who do not always enter on the exact signal bar and instead evaluate continuation quality after the move begins.
🔷 VISUAL DESIGN
The script is designed to look polished and organized without overloading the chart.
Visual elements include:
- bullish and bearish SuperTrend line states,
- restrained BUY / SELL labels,
- right-extending flip zones,
- soft trend cloud for directional context,
- compact AGPro panel with merged header row,
- configurable panel placement,
- dark and light theme support,
- adjustable label and panel text sizing.
The goal is to keep the chart premium and readable rather than dense and noisy.
🔷 HOW TO USE IT
SuperTrend Flip Zones is most useful for traders who want a higher-quality directional read rather than every raw SuperTrend crossover.
A typical workflow is:
- use the line and cloud to identify the active directional state,
- wait for a qualified BUY or SELL rather than reacting to every raw flip,
- monitor the projected zone as a live support or resistance area,
- observe whether price continues to defend that zone or loses it.
This makes the script suitable for discretionary trend-following, continuation analysis, and cleaner overlay-based chart reading.
🔷 BEST FIT
This tool is especially useful for:
- traders who already use SuperTrend but want cleaner signal selection,
- traders who prefer support / resistance style context after the flip,
- users who want a premium visual overlay without excessive label density,
- trend traders who want a more selective buy sell workflow.
🔷 TRANSPARENCY
This is an analytical indicator, not a trading strategy.
Like all trend-following tools, it can become less effective in highly compressed or directionless market conditions. The filtering logic is designed to reduce weak transitions, but it does not replace chart context, timeframe awareness, or risk management.
All logic is based on confirmed bar data inside the script framework. The purpose is to organize price action more clearly, not to guarantee future market behavior. Indicator

Buy/Sell Pressure Meter [AGPro Series]Buy/Sell Pressure Meter
🔹 Overview
Buy/Sell Pressure Meter is a volume-flow analytics tool that quantifies the tug-of-war between buyers and sellers on every bar and on a rolling basis. Unlike traditional volume delta indicators that only plot raw bar-level buy minus sell, this tool layers four complementary lenses into a single oscillator: rolling pressure trend, imbalance streak tracking, intraday pressure shift count, and session-accumulated dominance. A subtle price-pane background tint gives a Bookmap-light read on intraday participation that works across crypto, futures, and liquid equities — without requiring tick-level order flow data.
🔹 Unique Edge
Most volume-delta scripts answer the question "which side was bigger on this bar?" This one answers a different, more useful question for intraday traders: "who has been in control, and how stable is that control?"
• Rolling Pressure Trend — a moving average of buy and sell pressure separately (dual histogram), so you see structural bias, not just bar-to-bar noise.
• Imbalance Streak Tracking — counts consecutive same-side dominant bars and labels only the final length of each significant streak at the moment the streak breaks. No per-bar label spam, one clean marker per event.
• Intraday Pressure Shift Count — how many times the rolling dominant side has flipped since session open. High shift count = rotational day. Low shift count = trending day.
• Session-Accumulated Net Delta — cumulative bull vs bear contribution since the day began, independent of the rolling window.
• Price-Pane Bookmap-Light Tint — a very high-transparency background tint paints the main chart pane when one side is rolling-dominant, so you see control visually without leaving the price chart.
These five lenses together are deliberately designed not to overlap with raw volume-delta or cumulative-volume-delta indicators. They describe the character of participation, not just its magnitude.
🔹 Methodology
Because standard chart data does not include true tick-level order flow, this script uses a widely-accepted proxy: up-bar volume is attributed to buy pressure, down-bar volume to sell pressure, and doji volume is split evenly. This is explicitly a simulated bias — not real bid/ask flow — and the script labels it as such in the panel.
From that proxy:
1. Current-bar bull pressure percentage = buyPressure / (buyPressure + sellPressure) × 100.
2. Rolling pressure = SMA of buy and sell pressure over the user-defined window (default 20 bars).
3. A bar is classified bull-dominant when its bull pressure percent exceeds the dominance threshold (default 55%), and bear-dominant at the mirror level.
4. Streaks count consecutive bars of the same classification and reset when a neutral or opposite bar prints. Peak length is captured at the moment of reset and optionally labelled on chart.
5. Pressure shifts compare the current rolling dominant side against the last confirmed non-neutral dominant side; a change increments the intraday shift counter (only on intraday timeframes).
6. Session delta is the cumulative net delta since the last daily rollover.
🔹 Signals & States
• Dual histogram — buy pressure (teal, upward) and sell pressure (pink, downward) plotted as rolling averages.
• Net delta center line — accent-colored line showing rolling buy minus sell.
• Price-pane background tint — subtle teal or pink when one side is rolling-dominant, gives a Bookmap-light feel without obscuring candles.
• Oscillator-pane echo tint — even more subtle tint mirroring the dominant side in the indicator pane.
• Shift markers — triangles on the pane when the dominant side flips.
• Streak peak labels — plotted only at streak termination, showing final length (e.g. "Bull 7").
• Alerts — pressure shift to bull, pressure shift to bear, bull imbalance streak, bear imbalance streak.
🔹 Key Inputs
Calculation:
• Rolling Pressure Length — default 20. Higher = smoother, slower reaction.
• Minimum Streak To Highlight — default 3. Used for alerts.
• Dominance Threshold — default 55%. Share of total pressure needed to classify a bar as dominant.
Visuals:
• Tint Price Pane On Dominance — toggles the Bookmap-light effect on the main chart.
• Show Streak Peak Labels + Minimum Streak Length To Label (default 5) — controls chart cleanliness.
• Show Pressure Shift Events — triangle markers on shifts.
• Background Tint Transparency — default 94, adjustable 80-99.
Panel:
• Panel Location, Theme (Dark / Light), Font Size, Label Font Size — all default to Normal and fully configurable.
🔹 How To Use
This is an analytical tool, not a standalone trading system. Typical use cases:
• Confirmation — when price breaks a structure level while the rolling net delta is strongly in the break direction and a streak is in progress, the break has participation behind it.
• Exhaustion — a long bull streak peak followed by a rolling shift to bear, or vice versa, often marks the end of the current impulse.
• Regime read — a day with many intraday pressure shifts is rotational; a day with 0-1 shifts is directional. Adjust your playbook accordingly.
• Companion to S/R, supply/demand, and volume profile tools — use the streak peak and shift events as a participation filter when price interacts with a zone.
Best results on liquid instruments with meaningful bar-to-bar volume variation. Low-volume illiquid tickers produce noisier readings.
🔹 Limitations & Transparency
• The buy vs sell attribution is a proxy derived from bar direction and bar volume. It is not real order flow, Level 2, or tick data. Bookmap, CVD from exchange feeds, and footprint tools access information that bar-level scripts structurally cannot replicate.
• On instruments or timeframes where many bars close near their open (doji-heavy regimes), proxy-based attribution becomes less informative.
• The intraday shift counter is only meaningful on intraday timeframes; on daily-and-above timeframes the panel explicitly shows this as n/a.
• The script is non-repainting on closed bars. Intrabar values update in real time and may change until the bar confirms.
• Pressure shifts and streaks describe past and current state. They are not predictions of future price.
🔹 Risk Disclosure
This script is provided as an analytical tool for educational and research purposes. It does not constitute financial advice, a trading signal, or a recommendation to buy or sell any asset. Past performance of any pattern, streak, or shift event does not guarantee future results. Users are solely responsible for their own trading decisions and risk management. Always combine any indicator with broader market context, position sizing discipline, and your own due diligence. Indicator

Gaussian Channel System [GCS]## DESCRIPTION
Gaussian Ribbon Engine (GRE) is a multi-layer trend analysis system built on the Arnaud Legoux Moving Average (ALMA), which applies a Gaussian (bell curve) weighting function to price data instead of the linear or exponential weights used by traditional moving averages.
**Mathematical Foundation**
ALMA uses a Gaussian kernel — the same bell-curve distribution found in statistics and physics — to weight the prices in its lookback window. The Gaussian function is parameterized by two values: offset (which shifts the bell curve left or right, controlling responsiveness vs. smoothness) and sigma (which controls the width of the bell curve, determining how sharply weights decay from the center). The formula applies: w(i) = exp(-((i - offset * (N-1))^2) / (2 * sigma^2 * N^2)), where each price bar receives a weight according to its position on the Gaussian curve. This produces a moving average with mathematically optimal noise filtering properties.
GRE constructs five ALMA layers with increasing periods (default 9, 21, 55, 100, 200), creating a visual ribbon. When all five layers align in order (fastest on top for bullish, fastest on bottom for bearish), the market is in full directional agreement. The spread between the outermost layers, measured as a percentage and compared to its own historical average, identifies squeeze (convergence) and expansion (divergence) conditions.
**9-Point Confluence Scoring**
The scoring matrix evaluates: price vs. Layer 1, Layer 1 vs. 2, Layer 2 vs. 3, Layer 3 vs. 4, Layer 4 vs. 5 alignment, Layer 1 slope direction, Layer 3 slope direction, RSI above/below 50, and DI+/DI- directional movement. Signals fire when the score crosses the configurable threshold with ADX confirmation.
**Features**
- Five-layer ALMA ribbon with Gaussian kernel weighting
- Adjustable offset (0-1) and sigma parameters for fine-tuning the Gaussian bell shape
- Ribbon spread analysis with squeeze and expansion detection
- 9-point confluence scoring with visual dot notation in dashboard
- ATR-based dual take-profit levels (TP1 and TP2)
- Squeeze breakout signals when ribbon compresses then expands
- ADX and volume confirmation filters
- Full color-coded dashboard with regime classification
- Multiple alert conditions
--- Indicator

Indicator

Indicator

Indicator

Smooths Trend BreakerSmooths Trend Breaker
Overview
Smooths Trend Breaker is a trend identification and entry timing tool that combines an adaptive ATR-based supertrend, a higher timeframe EMA trend filter, volume confirmation, an RSI gate, a price compression range detector, and FVG-gated star candlestick pattern recognition. Each component was chosen to address a specific weakness in standalone supertrend systems — noise in choppy markets, late entries, and signals that contradict the larger trend — and all components work together as a single decision framework rather than as separate overlapping indicators.
Component Methodology
Adaptive Supertrend Engine
The core engine uses an ATR-based supertrend calculation. True Range is computed on each bar as the maximum of the current high-low range, the absolute distance from the prior close to the current high, and the absolute distance from the prior close to the current low. ATR is then derived using Wilder's smoothing method — a modified exponential moving average with a smoothing factor of 1/N — rather than a simple average, which gives more weight to recent volatility while maintaining memory of past conditions.
The upper and lower bands are calculated as the midpoint of the bar's high-low range plus or minus the ATR multiplied by a user-defined multiplier. Bands are then locked directionally — the lower band can only move upward and the upper band can only move downward — preventing the line from retreating when price moves against the trend. The trend direction flips only when a closing price crosses the opposite band, not on intrabar wicks, ensuring signals are close-confirmed.
Rather than using fixed ATR settings across all timeframes, the indicator auto-selects ATR length and multiplier based on the chart's timeframe in seconds. Shorter timeframes receive a shorter ATR period and higher multiplier to account for proportionally larger noise relative to signal. Longer timeframes receive a longer period and lower multiplier to avoid over-sensitivity on slower-moving instruments. This eliminates the need to manually adjust parameters when switching timeframes.
Higher Timeframe EMA Filter
When enabled, the indicator uses `request.security()` to retrieve a 50-period EMA from a higher timeframe selected automatically based on the chart timeframe — for example a 15-minute EMA is referenced when viewing a 5-minute chart, and a 4-hour EMA is referenced when viewing a 1-hour chart. A Buy label is only confirmed when price closes above this EMA and a Sell label is only confirmed when price closes below it, aligning entries with the larger structural trend.
Volume Confirmation
The volume filter computes a 20-bar simple moving average of volume. A signal is confirmed only when the flip bar's volume exceeds this average by a user-defined threshold, defaulting to 1.2 times the average. This filters out supertrend flips that occur on low-participation bars, which have historically higher failure rates.
RSI Gate
A 14-period RSI using Wilder's smoothing is computed on each bar. Buy signals are blocked when RSI exceeds a user-defined overbought level (default 70) and Sell signals are blocked when RSI falls below a user-defined oversold level (default 30). This prevents chasing exhausted moves at extremes.
Range Breaker
The Range Breaker compares the current N-bar rolling range (highest high minus lowest low) against the prior N-bar rolling range from the equivalent lookback window shifted N bars back. When the current range is less than a defined ratio of the prior range — meaning price has compressed significantly relative to its recent volatility — a consolidation zone is declared. Horizontal lines are drawn at the highest high and lowest low of the active zone and extend forward with the current bar. When a closing price breaks outside either level the zone is sealed and a breakout marker fires.
Star Pattern Detection with FVG Gate
Morning Star, Morning Doji Star, Evening Star, and Evening Doji Star patterns are detected using strict 3-candle criteria. The first candle must be a strong directional bar with a body filling at least 50% of its range. The middle candle — the star — must have a body of 25% or less of its range and a total range smaller than 80% of the first candle's body. The confirmation candle must be directionally opposite to the first candle with a body filling at least 40% of its range, closing past the midpoint of the first candle's body.
Additionally, a Fair Value Gap check is applied to the candle immediately before the star. A bearish FVG exists when the high of bar N is below the low of bar N+2, creating a downward price gap. A bullish FVG exists when the low of bar N is above the high of bar N+2, creating an upward price gap. An Inverse FVG check scans back 45 bars for a prior FVG zone whose price range overlaps with the pre-star candle, indicating price has returned to fill an old imbalance. If neither an FVG nor an IFVG is present on the candle before the star, the pattern does not fire regardless of candle structure. This ensures every star signal is anchored to a real price imbalance.
How to Use It
The highest probability setups occur when the supertrend line has already established direction, the range detector is not showing an active chop zone, and a signal fires with volume and HTF agreement. The Range Breaker lines are a caution flag — while they are active and unbroken, the supertrend will produce lower quality signals due to market compression. The star patterns provide a precision entry trigger that can be used to time entries at reversal points, particularly when a star fires near an active Range High or Range Low level.
Trend continuation
Wait for a pullback toward the supertrend line, then enter when the next Buy or Sell label prints in the direction of the established trend.
Breakout entries
When a range zone has been active for several bars and the supertrend is already pointing in one direction, a range breakout marker firing in that same direction is a high-quality entry trigger.
Star entries
A star pattern firing at or near a Range High or Range Low, with the supertrend already in agreement, represents the highest confluence setup available in the indicator.
What to avoid
Do not enter trend signals while a range zone is active with no breakout. Do not take signals that contradict the HTF EMA. Do not enter late into an extended trend where price is far from the supertrend line.
Settings
ATR Length and Multiplier auto-scale by timeframe but can be manually overridden. Volume threshold multiplier defaults to 1.2× the 20-bar average. RSI overbought and oversold levels default to 70 and 30. Range sensitivity has three modes controlling lookback period, compression ratio, and minimum bar count. Past zones to display defaults to 5, maximum 20.
Indicator

AI Neural Trend Predictor [identityKa]The AI Neural Trend Predictor is a professional-grade, zero-lag trend tracking system designed to keep traders in massive moves while aggressively filtering out market noise. Traditional moving averages suffer from two fatal flaws: they either lag heavily behind the price, or they whipsaw the trader out of positions during minor pullbacks. This script solves both issues by combining a zero-lag mathematical smoothing algorithm with a dynamic volatility shield.
Core Mechanics & Detection
Zero-Lag Base Engine: The core of the algorithm utilizes a highly responsive, smoothed proxy to track the live price instantly, eliminating the delayed entry problem found in SMA or EMA based indicators.
Volatility Shield (Noise Filter): Instead of flipping signals the moment price crosses the baseline, the engine projects a dynamic ATR-based shield around the trend. During a bullish run, minor price drops will simply compress into the shield without triggering a premature SELL signal. The trend only flips when the institutional order flow breaks through the true volatility threshold.
Clear BUY / SELL Labels: The engine prints highly visible, definitive BUY (Green) or SELL (Red) labels directly on the chart, taking the guesswork out of your entries.
HUD Dashboard & AI Logic
The strictly positioned on-chart intelligence panel evaluates the live market state:
Dangerous (Orange): Displayed actively whenever the internal volatility ratio drops below the algorithmic threshold, indicating a Choppy or Ranging market. This warns the trader to avoid taking new positions until momentum returns.
LONG / SHORT: The engine generates a clear directional bias when the market shifts to a "TRENDING" state and the volatility shield remains unbreached in the direction of the trend.
How to Use It
This tool is built for capturing massive swings. When an AI BUY label appears, you ride the trend until the opposing SELL label is printed. Do not panic-sell during minor red candles (pullbacks); trust the Volatility Shield to keep you in the trade. For optimal results, ignore signals generated while the dashboard reads "Dangerous." Indicator

Indicator

Pro Levels & Zones [MTE]Pro Levels & Zones
An intraday futures overlay that combines pivot-based supply and demand zones with multi-session key levels and a confluence-based signal filter. The core idea is that zones alone generate too many potential entries — by requiring alignment across multiple independent factors before labeling a zone touch, the indicator filters out low-conviction setups and highlights where several references converge.
HOW IT WORKS
Supply & Demand Zone Detection
Zones are built from 60-minute pivot highs and pivot lows using a 3-bar left / 3-bar right pivot structure. When a pivot high is confirmed, the area between the candle's high and the top of its body becomes a supply zone (red). When a pivot low is confirmed, the area between the candle's low and the bottom of its body becomes a demand zone (green). Zones extend forward in real time and are automatically removed when price closes beyond the zone boundary or when the zone exceeds a configurable age limit (default: 500 bars). Only the 3 most recent zones per side are kept to avoid chart clutter.
Confluence Scoring (signal filter)
When price enters a fresh (unused) zone, the indicator checks up to 5 independent factors before printing a signal:
1. Volume delta direction — estimated from the bar's close position within its range. A buy signal requires positive delta; a sell signal requires negative delta.
2. VWAP proximity — whether price is near the session VWAP (within 0.15% of current price).
3. Key level proximity — whether price is near a relevant prior-session level (PDH, PDL, PMH, PML).
4. POC proximity — whether price is near the intraday volume Point of Control.
5. VWAP trend bias — whether price is on the "right side" of VWAP for the signal direction (buy below VWAP, sell above).
Each matching factor adds 1 to the score. The signal label displays the count (e.g., "Buy 4/5") so traders can see at a glance how many factors aligned. A configurable cooldown (default: 12 bars) prevents repeated signals in the same area. An additional filter requires bearish candle close for sells and bullish candle close for buys.
Note: The confluence score is simply a count of how many factors happen to align at the moment of zone contact. A higher count does not predict or guarantee a successful trade. It is a filtering tool, not a performance metric.
SESSION LEVELS & KEY LEVELS
The indicator tracks and displays levels from multiple sessions:
- London session high/low — plotted as live-updating steplines during the session, then held after session close.
- Asia session high/low — same behavior, off by default.
- Key levels drawn as dashed horizontal lines: Previous Day High/Low/Close (PDH/PDL/PDC), Pre-Market High/Low (PMH/PML), Previous Week High/Low (PWH/PWL), Overnight High/Low (ONH/ONL), and the RTH Opening Print. All are off by default and individually toggleable.
Previous day and week values use request.security() with a offset and lookahead_on, which is the standard method to reference the prior completed period without future data leakage.
ADDITIONAL TOOLS (all off by default)
- VWAP — standard session-anchored VWAP using ohlc4 as source.
- POC — intraday volume Point of Control calculated by distributing each bar's volume into a 100-bin histogram across the RTH price range, then finding the bin with the highest accumulated volume. Resets daily.
- Fair Value Gaps — bullish and bearish imbalances detected when a gap exists between bar 's low and bar 's high (or vice versa), filtered by a minimum percentage size (default: 0.15%). FVGs auto-expire after 40 bars. Maximum 6 active FVGs.
- Opening Range — plots the RTH opening range as a box (15 or 30 minute, configurable). Extends through the session.
WHY THIS COMBINATION
Most zone-based approaches generate signals every time price touches a zone, regardless of context. This indicator addresses that by requiring zone contact AND directional volume AND candle confirmation before printing anything, then layering additional context (VWAP, key levels, POC) as a visible confluence count. The result is fewer signals that occur only at zones where multiple independent references happen to converge.
The session levels (London, Asia, pre-market, overnight) are included because futures often react at session boundaries, and having them as toggleable overlays avoids needing separate indicators cluttering the chart.
HOW TO USE
1. Apply to a 1-15 minute intraday futures chart (defaults tuned for NQ on 5 min).
2. Adjust "Min Zone Size" for your instrument (NQ: 20-50 pts, ES: 5-15 pts).
3. Watch for Buy/Sell labels at zone touches. Higher confluence counts (4/5, 5/5) mean more factors aligned — use your own judgment on whether the context supports a trade.
4. Toggle key levels on/off depending on which session references matter to your trading approach.
5. All features are independently toggleable. Start with zones + signals, then add levels as needed.
DEFAULT SETTINGS
- Zones: ON, min size 20 pts, max age 500 bars
- Signals: ON, cooldown 12 bars, volume delta confirmation ON
- London session levels: ON
- All other levels and tools: OFF
LIMITATIONS
- Volume delta is estimated from bar close position within range — it is not true order flow data.
- POC uses a 100-bin histogram which is an approximation, not tick-level volume profile.
- Confluence scoring counts factor alignment but does not predict outcomes. Past confluence patterns do not guarantee future results.
- Zone detection has a 3-bar lag due to pivot confirmation.
- Designed for futures instruments. Adjust zone size settings for other markets.
Indicator

Indicator
