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

ATR Chandelier StopTrade Control Adaptive ATR Chandelier Stop
The Trade Control Adaptive ATR Chandelier Stop is a volatility based trailing stop designed for swing and position traders who want a more objective way to manage exits and protect gains.
Instead of applying the same fixed percentage stop to every stock, the indicator uses Average True Range, or ATR, to account for how much each symbol typically moves. More volatile stocks receive wider stop levels, while lower volatility stocks receive tighter stop levels.
How it works
For long positions, the trailing stop is calculated as:
Highest high over the selected lookback period minus ATR multiplied by the selected multiplier
With the default settings, the calculation is:
22 bar highest high minus 3 times the 14 bar ATR
This creates a stop that hangs below the stock’s recent high, which is why it is called a Chandelier stop.
As the stock makes new highs, the stop can move higher. During normal pullbacks, the stop generally does not move lower while the bullish trend remains intact.
When price closes below the trailing stop, the indicator changes to a bearish state and begins plotting the corresponding stop above price.
Default settings
ATR Length: 14
Price Lookback: 22
ATR Multiplier: 3.0
Automatic Volatility Adjustment: Off by default
These settings are intended as a balanced starting point for swing and position traders using the daily chart and holding trades for several weeks to several months.
Adaptive volatility option
The optional adaptive setting adjusts the ATR multiplier based on ATR as a percentage of the stock price.
When enabled, the indicator gives highly volatile stocks additional room and may tighten the stop for lower volatility stocks. The standard 3 ATR setting remains the default for traders who prefer a simpler and more consistent approach.
Best uses
The indicator is designed for:
• Swing trading
• Position trading
• Trend following
• Managing profitable trades
• Reducing emotional exit decisions
• Monitoring individual stocks or watchlists
It is generally most useful on the daily timeframe.
Alert condition
The script includes an alert condition for a confirmed daily close below the trailing stop.
Recommended PulseWire alert settings:
Condition: Daily Close Below ATR Stop
Interval: 1D
Trigger: Once per bar close
The alert is designed to trigger when the trend first changes from bullish to bearish. It does not repeatedly alert every day while price remains below the stop.
Important considerations
The Trade Control Adaptive ATR Chandelier Stop is a trade management tool, not a complete trading strategy.
Traders should also consider technical support and resistance, entry price, position size, maximum acceptable loss, earnings risk, gap risk, and overall market conditions.
A stock can gap below the plotted stop, particularly around earnings or major news. The indicator does not guarantee execution at the displayed price. Indicator

Triple Barrier Exit with Meta LabelingOverview
Most tools tell you when to enter. This one frames how a trade would be managed — and then keeps an honest record of how that framing actually resolved. It takes a primary entry signal (its own built-in breakout, or any external signal series you point it at), draws a volatility-scaled profit barrier, stop barrier and time barrier around it, watches which is touched first, and feeds every resolved outcome into a live track record. On top sits a meta-label gate: a small online model that learns, from those resolved outcomes, whether to take or skip the next signal.
It is a research and trade-framing study — not a strategy, not a signal service, and not a validated edge.
Why these parts are ONE tool (mashup rationale)
Each layer exists because the one before it leaves a question open:
The triple barrier. A raw entry signal has no definition of success. Profit / stop / time barriers, scaled by current volatility (ATR or an EWMA of returns), turn a signal into a labelled outcome: profit-hit, stop-hit, or timed-out. Widths are regime-asymmetric — the profit barrier widens in trend and tightens in chop — because a fixed frame misprices the same signal in different conditions.
The trend-scanning vertical. A fixed holding time is arbitrary. The time barrier is instead chosen from candidate horizons by the strongest |t-value| of a linear fit — the horizon over which price is actually trending most decisively.
The meta-label gate. Knowing outcomes isn't the same as acting on them. A small online logistic model, trained only on resolved outcomes, scores each new signal and says TAKE or SKIP. It stays disabled until enough trades have resolved, so it never acts on an untrained model.
The honesty layer. Overlapping trades are not independent samples — so wins are recency-decayed and reported with a Wilson 95% lower bound per regime, alongside a reliability table and a Brier score for the meta-gate itself. If the gate isn't calibrated, the panel says so.
Remove any layer and the tool either mislabels the trade, mistimes it, acts on an untested model, or reports a win-rate it hasn't earned.
How it works
A primary signal fires. If the meta-gate passes, the trade is framed: profit = entry ± (PT × regime multiplier × σ), stop = entry ∓ (SL × regime multiplier × σ), and a vertical barrier holdH bars ahead. The frame is drawn as a forward box that recolours green / red / grey on first touch. Same-bar ties resolve stop-first (the conservative assumption). MFE and MAE are tracked live on the open trade. On resolution, the outcome trains the meta-model and updates the per-regime statistics.
How to use it
Read the panel before you trust the frame.
Meta gate — whether the model would take or skip the current signal (stays "warming" until it has enough resolved samples).
Wilson 95% lower — the honest floor of the win-rate in the current regime. If it isn't above 50%, this framing has not demonstrated an edge here.
Meta Brier — below ~0.25 means the gate's probabilities are reasonably calibrated; above it, ignore the gate.
The most useful thing you can do with it: point it at your own entry signal via the external-source input, and see how your signal resolves under a disciplined exit frame. The suggested size is advisory arithmetic (risk ÷ stop distance), not a recommendation. Only one trade is managed at a time — this is a study of the framing, not a portfolio simulator. The dashboard has a Compact layout (default) and a Pro layout (adds the scanned horizon, Brier, reliability tiers, PT/SL/timeout counts, live MFE/MAE and suggested size).
Universal across markets
Entry source, σ source, barrier widths and horizons are all inputs, so it runs on any symbol and timeframe. It needs no volume. Defaults target intraday index futures.
Non-repainting
Entries are taken and outcomes resolved only on confirmed bars, and the meta-model is trained only on resolved outcomes — so no statistic reads its own future and nothing inflates intrabar. The live "next-trade frame" preview is a forward projection at the current bar only, by design.
Originality
The triple barrier, meta-labelling and trend-scanning are published research concepts, credited below. What's assembled here is the specific synthesis: the triple barrier used as a live exit/management frame rather than an offline training pipeline, regime-asymmetric barrier widths, an online meta-gate that trains itself on the chart in front of you, and an honesty panel that reports the Wilson lower bound, the reliability tiers and the gate's own Brier score. Clean-room implementation; no third-party code reused.
Concept credits
Triple-barrier labelling, meta-labelling, trend-scanning, and sample uniqueness / time-decay for non-IID overlapping outcomes — Marcos López de Prado (Advances in Financial Machine Learning). Here the triple barrier is used as an exit/management frame and a labelling substrate, not as a training pipeline.
Wilson score confidence interval — Edwin B. Wilson · Brier score — Glenn W. Brier
Average True Range — J. Welles Wilder · Efficiency Ratio — Perry Kaufman
Inverse-volatility position sizing — standard risk-management practice
Honest limits
Overlapping trades are not independent, which is exactly why wins are decayed and reported with a Wilson lower bound rather than a raw percentage — treat the win-rate as descriptive, not a probability of future results. The meta-model is a small online logistic fit on three features; it can be miscalibrated, which is why its Brier score is shown. All figures are in-sample, with no costs, slippage or spread. Nothing here predicts price.
Disclaimer
Research and educational tool only. Not financial advice, not a recommendation, and no guarantee of results. The position-size output is arithmetic, not advice. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use. Indicator

[ A L P H A X ] Pulse ScalperAlphaX Pulse Scalper — 4-Layer Confluence Scalping System with ATR Trailing Exits, Squeeze Momentum Detection & Live Scoring Dashboard
AlphaX Pulse Scalper is a professional-grade multi-confluence scalping system engineered to fire only when four independent technical engines simultaneously agree on direction. Unlike single-indicator systems that generate signals from one source of information, Pulse Scalper runs a live scoring gate across an EMA Ribbon, a Squeeze Momentum engine, a Volume Delta pressure model, and a VWAP Deviation filter — every bar, on every candle. A signal only reaches your chart when at least three of the four layers confirm. The result is a dramatically lower signal count with a dramatically higher average quality per signal. Designed for active scalpers on crypto, forex, gold, and indices across the 1-minute to 15-minute timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The 4-Layer Confluence Engine — How It Works
Most scalping indicators fire from a single calculation — a crossover, a threshold breach, a momentum flip. The problem is that any single calculation is easily fooled by noise, spikes, and choppy price action. AlphaX Pulse Scalper is built on a fundamentally different architecture: four completely independent layers, each measuring a different dimension of market behavior , each casting a vote on every bar. Only when enough votes align does a signal fire.
This is not a filter applied on top of a signal. The confluence is the signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Layer 1 — EMA Ribbon (Trend Structure)
The first layer is a triple EMA ribbon using a Fast EMA (default: 8), Slow EMA (default: 21), and Signal EMA (default: 50). This layer answers a single question: is the market in a clean, structured trend right now?
Bull condition: Fast EMA above Slow EMA, Slow EMA above Signal EMA, and price closing above all three — a full stack alignment confirming upward momentum structure.
Bear condition: The full inverse — Fast below Slow below Signal, with price below all three.
Why this matters: The ribbon does not react to a single crossover. All three EMAs must be stacked in order and price must be on the correct side. This eliminates the vast majority of false crossover signals that plague simple dual-EMA systems. The ribbon is also plotted directly on the chart as a gradient-filled channel — bull fills in yellow-green, bear fills in red — giving you immediate structural context at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Layer 2 — Squeeze Momentum (Energy Detection)
The second layer is built on the TTM Squeeze principle — one of the most reliable pre-breakout detection systems in technical analysis. It works by measuring the relationship between two volatility envelopes: Bollinger Bands and Keltner Channels.
Squeeze state: When the Bollinger Bands compress inside the Keltner Channels, the market is coiling — volatility has contracted and energy is building. These periods of compression historically precede the strongest directional moves. The squeeze state is displayed as a subtle orange background tint on the chart, and flagged on the dashboard as ⚡ BUILDING — giving you advance warning that a breakout is loading before it happens.
Momentum direction: The raw momentum value is calculated using a linear regression of price position relative to the midpoint of the recent high-low range. When this value is positive and rising , the squeeze is releasing to the upside. When negative and falling , it is releasing to the downside.
Layer 2 votes bull when: Momentum value is above zero and accelerating upward.
Layer 2 votes bear when: Momentum value is below zero and accelerating downward.
Why this matters: This layer catches the energy behind a move, not just the direction. A breakout with strong squeeze momentum behind it is fundamentally different from a breakout on low momentum — and this layer distinguishes between the two on every bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Layer 3 — Volume Delta (Institutional Pressure)
The third layer is a proprietary volume delta model that estimates the real buying and selling pressure behind each candle — without requiring exchange-level order flow data.
How it works: Each candle's volume is split into bullish and bearish components based on the candle's close position within its high-low range. A candle closing near its high attributes most of its volume to buyers; a candle closing near its low attributes most to sellers. These estimates are smoothed using an EMA to eliminate single-bar noise. A secondary OBV slope (On-Balance Volume) is calculated over the configured lookback and used as an independent confirmation of the dominant pressure direction.
Layer 3 votes bull when: The bull volume EMA exceeds the bear volume EMA, the delta EMA is positive, and the OBV slope is rising — all three volume signals agree on buying pressure.
Layer 3 votes bear when: The full inverse — bear volume dominates, delta EMA is negative, OBV slope is falling.
Why this matters: Price can move in any direction on any bar. Volume delta tells you whether real capital is flowing in the direction of that move. A price breakout accompanied by genuine volume pressure is a high-confidence breakout. A price breakout on weak or opposing volume is a trap. This layer is the system's protection against price manipulation and false breakouts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 Layer 4 — VWAP Deviation (Institutional Bias)
The fourth layer uses the Volume Weighted Average Price (VWAP) with dynamically calculated standard deviation bands to identify where price stands relative to institutional value.
Band structure: Two band pairs are calculated — ±1σ and ±2σ — using a volume-weighted standard deviation formula applied across the session. These bands represent statistically significant deviations from the session's fair value anchor.
Layer 4 votes bull when: Price is above VWAP (institutional bias is bullish) but has not yet extended beyond the +2σ band — confirming trend direction without chasing a stretched, overextended move.
Layer 4 votes bear when: Price is below VWAP but has not extended beyond the -2σ band.
Why this matters: VWAP is the single most widely watched intraday reference level used by institutional desks, market makers, and algorithms. Price above VWAP means institutions are net buyers for the session. Price below means net sellers. The 2σ filter prevents the system from entering during climactic exhaustion moves — precisely the moments when reversal risk is highest and reward is lowest.
The bands are plotted directly on the chart — VWAP as a purple line, ±1σ as dotted yellow-green and red circles, ±2σ as solid outer boundaries — so you always have the full VWAP context visible alongside your signals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The Confluence Gate — Live Scoring System
On every bar, each of the four layers independently casts its vote. The results are tallied into a live confluence score displayed in real time on the dashboard.
Bull score: 0–4 points. One point for each layer voting bullish.
Bear score: 0–4 points. One point for each layer voting bearish.
Signal fires when: The score meets or exceeds the configured minimum (default: 3 of 4), the ADX filter confirms a trending market, and the session filter confirms active market hours.
Score thresholds and what they mean:
4 / 4 — maximum confluence. All four independent engines agree. The highest-conviction setup the system can produce. Enter full size.
3 / 4 — strong confluence. Three of four layers aligned. The default threshold — high quality with reasonable frequency.
2 / 4 — weak confluence. Available if you lower the minimum, but not recommended. Two engines agreeing is not meaningful convergence.
The confluence score is printed directly on the signal label (e.g., 3/4 or 4/4 ) so you know at a glance exactly how strong every setup is at the moment it fires. The dashboard continuously displays the live bull and bear scores — even between signals — so you can watch confidence building in real time before the signal appears.
Edge triggering: Signals only fire on the bar where the score first crosses the threshold — not on every bar the score remains above it. This prevents signal spam during extended trend runs and ensures every triangle on the chart represents a distinct, fresh entry event.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡 ADX Filter — Trend Quality Gate
Before any signal reaches the chart, it must also pass the ADX (Average Directional Index) filter . ADX measures the strength of the current trend regardless of direction — a reading below the threshold indicates a choppy, ranging market where trend-following signals have low reliability.
Default threshold: 20. When ADX is below this level, all signals are suppressed — even if the confluence score is 4/4. This is the system's protection against the single most common failure mode of scalping indicators: firing confidently into sideways, oscillating price action.
The ADX value and pass/fail status are displayed live on the dashboard so you always know whether the market structure supports trading at any given moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🕐 Session Filter — Active Hours Gate
The Session Filter restricts signals to a configurable active trading window (default: 07:00–20:00 exchange time). Outside this window, signals are suppressed regardless of confluence score.
Why this matters for scalpers: Low-volume pre-market and post-market hours produce the most misleading signals of any period. Spreads widen, liquidity thins, and momentum moves that look compelling on the chart are frequently reversed the moment the main session opens. The session filter eliminates this entire class of false setups automatically.
The dashboard displays a clear ✓ ACTIVE or ✗ OFF-HOURS status so you always know whether the filter is open or closed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Dynamic ATR Exit System
AlphaX Pulse Scalper uses a fully dynamic ATR-based exit system with three simultaneously active exit mechanisms — each serving a distinct role in protecting profit.
Stop Loss: Fixed at entry based on the pivot low (bull) or pivot high (bear) minus an ATR buffer (default: 1.2× ATR). Displayed as a solid red line below price for longs, above for shorts. This is your maximum risk boundary — it does not move.
TP1 — Partial Target (50%): Set at 1.8× ATR from entry. When price reaches TP1, scale out 50% of the position and let the remainder run to TP2. A small circle marker appears at the TP1 bar.
TP2 — Full Target: Set at 3.5× ATR from entry. When price reaches TP2, the full position exits and the system resets. A labeled TP marker appears on the chart.
ATR Trailing Stop: The most important of the three. From the moment a trade opens, a trailing stop moves dynamically with price — always positioned 1.5× ATR behind the current bar's low (for longs) or high (for shorts). The trail is displayed as a live orange line on the chart. As price advances in your favor, the trail advances with it. If price reverses and hits the trail before reaching TP2, the trade exits at the trail level rather than waiting to give back all gains.
Why the trailing stop changes everything: Fixed TP levels work in textbook trends. In the real market, strong impulses often exceed TP2 before reversing — and weak impulses stall before even reaching TP1. The ATR trailing stop captures whatever the market gives, without predetermining a ceiling on your profit. In strong trending conditions, a single Pulse Scalper signal with an active trail can run 5–10× ATR before stopping out.
All three exit levels — SL, TP1, TP2, and the trailing stop — are plotted as live lines on the chart as long as a trade is active, then cleared automatically when the position closes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state of the indicator across four sections, updated on every bar.
MARKET
Session — ✓ ACTIVE or ✗ OFF-HOURS. Confirms whether the session filter is open for signals
ADX — live ADX value with ✓ or ✗ pass/fail indicator. Confirms whether market structure is trending strongly enough to trade
CONFLUENCE
L1 EMA Ribbon — current ribbon state: ▲ BULL, ▼ BEAR, or — FLAT
L2 Squeeze Momentum — current momentum state: ⚡ SQUEEZE (building), ▲ BULL, ▼ BEAR, or — FLAT. The squeeze state is the highest-value pre-signal condition the system can display
L3 Volume Delta — current volume pressure: ▲ BULL, ▼ BEAR, or — NEUTRAL
L4 VWAP Deviation — current VWAP position: ▲ ABOVE, ▼ BELOW, or — EXTENDED (price beyond 2σ, filter active)
Bull Score — live 0–4 score for bullish confluence. Background turns yellow-green when threshold is met — the signal is ready to fire
Bear Score — live 0–4 score for bearish confluence. Background turns red when threshold is met
POSITION
Position — current tracked position: ▲ LONG, ▼ SHORT, or — FLAT with background color highlight
Stop Loss — the fixed SL level currently active, color-coded red (bull) or green (bear)
Trail Stop — the current trailing stop level in orange — updates dynamically every bar the trade is open
TP1 (50%) — the first take-profit target currently active
TP2 (full) — the full exit target currently active
Bars in Trade — how many bars the current position has been open
INFO
ATR — current ATR value used for all exit calculations
VWAP — current VWAP price level for the session
Squeeze — ⚡ BUILDING when BB is inside KC (squeeze active), or — RELEASED when the squeeze has fired
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Every visual element on the chart serves a specific purpose. There is no decorative clutter.
▲ Triangle (below bar) — bull entry signal. Fires when bull confluence score meets threshold, ADX passes, session is active
▼ Triangle (above bar) — bear entry signal. Fires when bear confluence score meets threshold
Score Label (3/4 or 4/4) — printed beside each signal triangle. The raw confluence count at signal time
EMA Ribbon Fill — yellow-green fill between Fast and Slow EMA during bull structure, red during bear structure. Collapses to gray during neutral
VWAP Line — purple center line marking the session's volume-weighted fair value
VWAP ±1σ Bands — dotted yellow-green and red circles marking the first standard deviation
VWAP ±2σ Bands — solid outer boundaries. Price touching these is the maximum extension zone
Orange Squeeze Background — appears during active squeeze conditions. A visual alert that energy is compressing and a breakout is approaching
Yellow-green background tint — active during open long trades. Confirms trade is live at a glance
Red background tint — active during open short trades
SL Line (red/green) — the fixed stop loss level, active while trade is open
TP1 Line (semi-transparent) — the partial target level
TP2 Line (bright) — the full exit target level
Trail Line (orange) — the dynamic trailing stop, moves with price every bar
TP marker — appears when TP2 is hit. Full exit confirmed
SL marker — appears when stop loss or trailing stop is triggered
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Pulse Scalper — Step by Step
Step 1 — Check the Dashboard Before Every Session
Confirm Session shows ✓ ACTIVE
Confirm ADX shows ✓ — if ADX is below threshold, the market is ranging and no signals will fire regardless of how the layers look
Watch the Squeeze row on the dashboard — ⚡ BUILDING means a breakout setup is forming. This is your highest-alert pre-signal state
Step 2 — Watch the Confluence Scores Build
Monitor the live Bull Score and Bear Score rows in the dashboard. You can watch the scores build in real time, bar by bar, before a signal fires
When a score reaches 3/4 and the background highlights, a signal is imminent or has just fired
A 4/4 score is the highest-quality setup. Prioritize these above all else
Step 3 — Enter on the Signal Triangle
A ▲ triangle below the bar is a long signal. Enter on the close of the signal bar or the open of the next bar
A ▼ triangle above the bar is a short signal. Enter on the same basis
Read the score label — 4/4 signals warrant full position size, 3/4 signals warrant standard or slightly reduced size
Step 4 — Manage with the Live Exit Lines
The SL line is your hard stop. Never move it further away from price
Watch the orange Trail Stop line advance with price as the trade moves in your favor
At TP1, scale out 50% of the position. Move your manual stop to breakeven on the remainder
Let the trailing stop manage the rest — it will exit automatically when momentum exhausts
Step 5 — Exit and Reset
A TP marker on the chart confirms TP2 has been hit. Full exit. Dashboard resets to — FLAT
An SL marker confirms the stop or trail has been hit. Accept the loss and wait for the next setup
After any exit, do not re-enter immediately. Wait for the confluence score to rebuild from zero — this prevents revenge trading into the same noise that stopped you out
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
The system is designed to filter out most low-quality conditions automatically. But understanding what to look for gives you an additional edge.
Stand aside when you see:
ADX ✗ on the dashboard — the market is not trending. Any signal would be a range-bound trade against the system's core design
Dashboard shows — FLAT across all four layers — no layer has a directional conviction. The market has no readable bias
Bull and bear scores both at 1 or 2 — the layers are split. Price is oscillating without commitment in either direction
Session shows ✗ OFF-HOURS — no signals will fire and manual entries carry elevated risk from thin liquidity
Squeeze just released but score is only 2/4 — the squeeze fired but not enough layers confirmed the direction. This is a low-conviction breakout — wait for the next setup
Rapid alternation of ▲ and ▼ triangles — if you see signals in both directions within a short window, the market is too choppy. Increase the ADX threshold in settings or stand aside until a clearer trend develops
What to do:
Wait for the Squeeze dashboard to show ⚡ BUILDING — this is the highest-quality pre-signal state. The best Pulse Scalper setups almost always begin with a squeeze
Wait for ADX to climb back above threshold — a strong trend is forming
Wait for a 4/4 score on the next signal — maximum confluence only, no compromises in a difficult session
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 4-layer confluence gate — EMA Ribbon, Squeeze Momentum, Volume Delta, and VWAP Deviation must agree before any signal fires
📊 Live confluence scoring — bull and bear scores update every bar in real time, displayed on the dashboard before the signal appears
⚡ TTM Squeeze detection — Bollinger/Keltner compression identifies pre-breakout coiling with an orange background tint and dashboard flag
📈 Proprietary volume delta model — estimates buying and selling pressure without exchange-level order flow data, confirmed by OBV slope
📡 VWAP with standard deviation bands — ±1σ and ±2σ plotted live, VWAP filter prevents entries during climactic extension moves
🛡 ADX trend quality gate — suppresses all signals during choppy, non-trending market conditions
🕐 Session filter — restricts signals to active market hours, eliminating low-liquidity false setups automatically
🎯 Triple exit mechanism — fixed ATR stop loss, TP1 at 1.8× ATR, TP2 at 3.5× ATR, plus dynamic ATR trailing stop that advances with price every bar
📉 ATR trailing stop — plotted as a live orange line, adapts dynamically to volatility, captures extended runs beyond TP2 in strong trends
🏷 Confluence score label on every signal — 3/4 or 4/4 printed directly on the chart so you know signal quality at a glance
📊 28-row live dashboard — Market, Confluence, Position, and Info sections updated in real time
🔔 9 alert conditions — bull entry, bear entry, TP1/TP2 hits, stop hits, squeeze start, any exit
🎨 Cohesive dual-tone color theme — yellow-green for all bullish elements, red for all bearish elements, orange for squeeze and trail, gray for neutral
⚙ Fully configurable — all EMA periods, squeeze parameters, VWAP multipliers, ADX threshold, confluence minimum, ATR multipliers, session window, and all colors are adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
EMA Ribbon
Fast EMA — the fastest ribbon line, reacts most immediately to price (default: 8)
Slow EMA — the intermediate ribbon line (default: 21)
Signal EMA — the macro trend anchor. All three must stack in order for a ribbon vote (default: 50)
Show EMA Ribbon — toggle the ribbon fill and lines on or off
Squeeze Momentum
BB Length — Bollinger Band lookback period for squeeze detection (default: 20)
BB Mult — Bollinger Band standard deviation multiplier (default: 2.0)
KC Length — Keltner Channel lookback period (default: 20)
KC Mult — Keltner Channel ATR multiplier (default: 1.5)
Momentum Length — linear regression period for the momentum value calculation (default: 12)
Volume Delta
Volume MA Length — EMA smoothing period for bull and bear volume estimates (default: 14)
OBV Slope Length — lookback bars for OBV slope calculation (default: 10)
VWAP
Use VWAP Filter — when enabled, Layer 4 requires price to be on the correct side of VWAP (default: on)
Show VWAP Bands — toggle ±1σ and ±2σ band plots on or off
Band 1 Mult — first standard deviation band multiplier (default: 1.0)
Band 2 Mult — second standard deviation band multiplier (default: 2.0)
Confluence Gate
Min Layers Required — how many of the 4 layers must agree for a signal to fire. 2 = more signals, 3 = balanced (default), 4 = ultra-selective
Session Filter — toggle the active hours restriction on or off
Active Session — configurable session window string (default: 0700-2000)
ADX Filter
Use ADX Filter — toggle the trend quality gate on or off
ADX Length — lookback period for ADX calculation (default: 14)
ADX Minimum — threshold below which all signals are suppressed (default: 20)
Exit Settings
ATR Length — lookback period for ATR used in all exit calculations (default: 10)
SL ATR Mult — stop loss distance from entry as a multiple of ATR (default: 1.2)
TP1 ATR Mult — first take-profit distance (default: 1.8 — approximately 1.5:1 reward on a full position)
TP2 ATR Mult — full exit target distance (default: 3.5 — approximately 3:1 reward)
Use ATR Trailing Stop — toggle the dynamic trailing stop mechanism on or off
Trail ATR Mult — trailing stop distance from current bar's low or high (default: 1.5)
Show Exit Levels — toggle SL, TP1, TP2, and trail lines on the chart
Display
Show Confluence Score Label — prints the live score (e.g. 3/4) on every signal triangle
Show Dashboard — toggle the entire dashboard panel on or off
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals, fills, and labels
Bear / Bear Bright — red family for all bearish signals, fills, and labels
Squeeze — orange used for squeeze background tint and trailing stop line
Neutral — gray for inactive states and neutral dashboard rows
Text Light / Dash BG — dashboard typography and background
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (9 total)
Entry Alerts
Bull Confluence Entry — bull score meets threshold, ADX passes, session active
Bear Confluence Entry — bear score meets threshold, ADX passes, session active
Exit Alerts
Bull TP1 Hit — price reaches the first bull take-profit level
Bull TP2 Hit — price reaches the full bull exit target
Bull Stop Hit — stop loss or trailing stop triggered on a long position
Bear TP1 Hit — price reaches the first bear take-profit level
Bear TP2 Hit — price reaches the full bear exit target
Bear Stop Hit — stop loss or trailing stop triggered on a short position
Special State Alerts
Squeeze Started — Bollinger Bands have compressed inside Keltner Channels. A breakout setup is loading
All alert messages include {{ticker}} and {{interval}} for clean webhook and notification integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M1–M5 :
Min Layers at 3/4 — strong confluence without requiring perfection on every bar
ADX minimum at 20 — filters choppy intraday sessions without being overly restrictive
ATR Trail at 1.5× — gives trades enough room to breathe on fast-moving scalping timeframes
Session 07:00–20:00 — covers London and New York sessions, the highest-volume windows for forex and gold
For other instruments or timeframes, adjust:
Higher timeframes (M15, H1, H4) — increase EMA periods (Fast 13, Slow 34, Signal 89), increase ADX minimum to 25, increase TP2 to 4.5–5.0× ATR
Crypto (BTC, ETH) — increase KC Mult to 2.0–2.5 to accommodate wider volatility, increase SL mult to 1.5–2.0
Indices (NAS100, US30, SPX500) — use defaults with ADX raised to 22–25. Index trends are strong but session timing is critical — tighten session window to 09:30–16:00 for US indices
More signals — lower Min Layers to 2, disable ADX filter, widen session window
Fewer, higher-quality signals — raise Min Layers to 4, raise ADX minimum to 25, enable volume filter with ratio at 1.2×
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
⚡ Scalpers and intraday momentum traders — the 1m–15m timeframe focus and ATR trailing exit system are built specifically for fast-moving intraday conditions
🥇 Gold (XAUUSD) and forex traders — default settings are tuned and tested on gold and major pairs during London and New York sessions
📊 Crypto and index traders — the four-layer architecture adapts across instruments without manual recalibration
🧠 Systematic traders — the live confluence score provides a quantitative signal quality reading, not just a visual arrow
📈 Traders who want to eliminate overtrading — the confluence gate, ADX filter, session filter, and edge triggering physically prevent low-quality setups from appearing on the chart
🎯 Traders who struggle with exits — the three-layer exit system (fixed SL, scaled TP1, trailing TP2) provides a complete, rules-based exit framework that removes emotion from trade management
📉 Risk-conscious traders — every trade has a defined stop, a defined first target, and a dynamic trailing mechanism. There is no ambiguity about where you exit under any scenario
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design
The edge-triggered signal logic means each triangle on the chart represents a distinct new confluence event — the same setup does not generate repeated signals during extended runs
The trailing stop line on the chart is a real-time visual — it moves every bar the trade is open and accurately reflects the current stop level at all times
Maximum 500 labels and 500 lines are used — on very low timeframes with extended chart history, the oldest markers may be automatically removed by PulseWire's rendering limits
The Squeeze background tint is a leading indicator — it appears before signals fire, giving you time to prepare. The strongest Pulse Scalper signals frequently begin with a squeeze
The VWAP calculation resets at the start of each session. On instruments without a defined session (perpetual crypto), the VWAP anchors to the chart's visible history. For best results on crypto, use a 24-hour session string or disable the VWAP filter and use the other three layers
The Trade Status section on the dashboard tracks position direction from signal to exit within a single chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for scalpers who need more than a signal — a complete system that scores, filters, enters, trails, and exits with precision on every trade. Indicator

Exit Readiness Planner [AGPro Series]Exit Readiness Planner
🧠 Core Idea
Is the active move showing enough decay to prepare an exit review?
📌 Overview / What it does
Exit Readiness Planner is a chart-first trade management tool built to evaluate whether an active move is losing enough quality to deserve closer review. Its cleanest default use case is 4H swing-management review, where structure, target proximity, and decay are usually easier to read than on very small timeframes.
The script converts momentum decay, candle-efficiency loss, target proximity, volatility contraction, and reversal pressure into a 0-100 Exit Readiness Score. It produces an exit-pressure zone, target and risk-shift rails, exhaustion fade context, compact state labels, alerts, and a clean AGPro panel.
It does not predict price direction, automate exits, or print direct sell commands. Its purpose is to organize exit-review context while the user remains responsible for all decisions.
🎯 Purpose & Design Philosophy
Many traders plan entries carefully but review exits only after momentum has already faded. This script was built to make the exit-review question more structured.
It helps traders who manage active moves and want a cleaner way to monitor whether the move still has room, strength, and volatility support, or whether it is shifting into a review state.
The design supports a management mindset: read the current pressure, check remaining room, review exhaustion, then decide what deserves attention.
⚡ Why This Script Is Different
Most tools focus on take-profit ladders, trailing stops, or direct exit signals.
This script does NOT build a profit-target ladder, a Chandelier Exit clone, a stop-loss optimizer, or a buy/sell command system.
Instead, it asks a narrower decision question: is the active move showing enough decay, target proximity, or risk-shift pressure to prepare an exit review?
⚙️ Methodology
1. Context Detection
The script identifies the active move side using Auto Context, Long Move, or Short Move.
2. Reference Mapping
It maps target-side structure, remaining room, a fast trend reference, and an exit-pressure zone around the active target rail.
3. Reaction Evaluation
The model scores momentum decay, candle-efficiency loss, target proximity, volatility contraction, and reversal pressure.
4. Visual Output
The output appears as a forward exit-pressure zone, exhaustion fade band, compact labels, alert conditions, and a premium AGPro panel.
🗺️ How to Read the Chart
Zones = the forward exit-pressure area near the active target rail.
Labels = clear attention markers such as EXIT REVIEW, EXIT WATCH, TARGET NEAR, RISK SHIFT, or PRESSURE EASED.
Colors = teal suggests calmer monitor context, amber suggests watch or target proximity, pink/red suggests stronger exit-review pressure.
Panel = summarizes Exit Pressure, Remaining Room, Exhaustion State, Risk Shift, and Action.
🚦 Signals & States
• EXIT REVIEW → the score and supporting conditions show stronger decay or pressure.
• EXIT WATCH → review context is developing but is not yet in the stronger review state.
• TARGET NEAR → price is close to the active target-side reference.
• RISK SHIFT → pressure appeared against the active move near the trend reference.
• MONITOR → exit pressure is not strong enough for active review attention.
🔔 Alerts Logic
• Exit Readiness Review → triggers when the planner enters Exit Review state.
• Exit Readiness Watch → triggers when watch context appears.
• Target Near → triggers when price becomes close to the active target rail.
• Risk Shift → triggers when pressure appears against the active move.
• Pressure Eased → triggers when active pressure returns to monitor context.
Alerts are attention markers. They are not trade instructions.
🧩 Confluence Logic
The strongest review context appears when momentum decay, candle-efficiency loss, target proximity, volatility contraction, and reversal pressure align.
When only one factor appears, the state may remain Watch or Monitor. When several factors align, the score can move toward Exit Review.
📊 When to Use
• During active trade management.
• Especially on 4H swing-management charts.
• When price is approaching a target-side reference.
• During trend moves that may be losing momentum.
• After strong directional candles begin to compress.
• On liquid symbols where ATR and pivot references are meaningful.
⚠️ When NOT to Use
• Extremely low-liquidity markets with unreliable candles.
• News spikes where volatility changes too quickly.
• Very noisy micro-timeframes with unstable wick behavior.
• As a standalone reason to close a position.
• When the user has no broader trade plan or risk framework.
🎛️ Key Inputs
• Active Move Side → selects Auto Context, Long Move, or Short Move.
• Sensitivity → controls how quickly decay and pressure affect the score.
• Lookback → defines the structure window for target references and room.
• Exit Review Score → sets the threshold for the stronger review state.
• Exit Watch Score → sets the lower attention threshold.
• Visual Settings → control zones, rails, fade bands, labels, optional move-side prefixes, optional micro markers, panel visibility, theme, location, and font sizes.
🖥️ Interface & Visual Design
The interface is chart-first and built around one primary visual object: the exit-pressure zone.
The panel uses the AGPro publication layout with a single merged blue title row, adjustable location, adjustable theme, and adjustable font size.
Labels use clear full-text state names, offset from candles, and are controlled by cooldown and maximum-visible settings to keep the chart active without becoming crowded. Move-side prefixes and tiny micro markers are available but disabled by default for a cleaner 4H publication preset.
🧪 Practical Usage Workflow
1. Read the panel Action state.
2. Check the Exit Pressure score.
3. Review the remaining room to the active target rail.
4. Compare the exhaustion state with candle behavior.
5. Treat alerts and labels as review prompts, not trade commands.
🔍 Interpretation Guidelines
A high score means the script sees more exit-review pressure according to its rules. It does not mean price must reverse.
Target Near means remaining room is compressed relative to ATR. It does not mean the target must hold.
Risk Shift means pressure appeared against the active move. It should be interpreted with timeframe, volatility, and broader structure.
🚫 What This Script Is NOT
• Not a prediction engine.
• Not financial advice.
• Not auto trading.
• Not guaranteed signals.
• Not a sell-signal service.
• Not a take-profit ladder.
• Not a trailing-stop strategy.
⚠️ Limitations & Transparency
Exit-readiness behavior depends on the selected lookback, ATR length, target pivot length, sensitivity, timeframe, and market condition.
Low volatility can make target proximity more frequent. High volatility can widen references and delay review states. Small timeframes can produce more frequent state changes.
The script is rule-based and should be read as an analytical management layer inside a broader plan.
🧠 Market Context Notes
An active move can remain valid while still deserving review.
Exit readiness is not the same as bearish or bullish prediction. It is a structured way to notice when the move may be losing quality, nearing a reference, or showing pressure against the active side.
🧾 Use Case Examples
When price approaches the target rail and candle efficiency falls, the planner may move from Monitor to Exit Watch.
When target proximity, momentum decay, and reversal pressure align, the planner may mark Exit Review.
When pressure eases and the move regains quality, the script can return to Monitor.
🧱 System Philosophy
Exit Readiness Planner follows the AGPro decision-engine approach:
Context before reaction.
Review before emotion.
Attention markers instead of commands.
🔐 Non-Promise Statement
No indicator can guarantee continuation, reversal, target behavior, or exit timing.
This tool provides structured chart context only.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk controls, position sizing, and trading decisions.
This script does not provide financial advice, investment advice, or guaranteed trading outcomes.
📚 Educational Note
Use the script to study how exit-review pressure changes as momentum fades, room compresses, volatility contracts, and pressure appears against the active move.
Indicator

Chandelier Exit Flip Zones [AGPro Series]Chandelier Exit Flip Zones
Chandelier Exit Flip Zones is a premium ATR trailing-stop and exit-state engine built for traders who want more than a simple stop line on the chart.
The script takes the classic Chandelier Exit concept and turns it into a structured decision layer:
Chandelier trail -> trail-side flip -> flip quality -> continuation state -> exit-pressure awareness
The result is a clean public-free tool for reading trend continuation, trailing-stop pressure, and Chandelier flip transitions without turning the chart into a crowded signal board.
📌 Why This Script Exists
Chandelier Exit is one of the most practical and searched trailing-stop concepts because it connects trend direction with volatility. Many traders use it to trail positions, judge when momentum is still holding, or identify when price is starting to lose distance from its active stop area.
Most Chandelier tools stop at the line.
This script adds the missing context:
- Which side of the Chandelier trail is active?
- How far is price from the trail in ATR terms?
- Was the latest trail flip strong or weak?
- Is the market still in continuation mode?
- Is price compressing back into an exit-watch area?
- Did the transition create a clean forward flip zone?
That extra layer is what makes the script more useful than a standard ATR trailing-stop overlay.
⚡ What Makes It Different From Standard Chandelier Exit Indicators
Most public Chandelier Exit indicators are visually simple. They usually plot a long stop, a short stop, and sometimes a basic flip marker.
Chandelier Exit Flip Zones is built around a stronger reading model.
It evaluates each trail flip through a quality score that combines:
- Trail-break strength
- EMA trend agreement
- Range expansion
- Candle close location
- Optional volume participation
This means the script does not treat every flip equally. A weak flip inside chop is not presented with the same weight as a cleaner transition with better structure, stronger expansion, and better directional agreement.
The script also uses quality-filtered Flip Zones. These boxes are not generic support and resistance areas. They are drawn around the Chandelier transition area where price breaks the previous trail and establishes a new active side. The purpose is to mark the actual trail-flip area, not to fill the chart with unrelated levels.
🧭 How It Is Different From Other AGProLabs Scripts
This script was intentionally kept in a narrow Chandelier Exit lane so it does not overlap with other AGProLabs public releases.
It is not a SuperTrend script. SuperTrend logic is built around a different volatility-band mechanism, while this tool is built around Chandelier high/low structure anchors and ATR trail distance.
It is not an ATR compression or ATR breakout script. Those concepts focus on volatility contraction, breakout pressure, or expansion behavior. This script focuses on the active trailing-stop side, distance from the Chandelier trail, and exit-state awareness.
It is not a generic trend dashboard. The panel is compact and centered on trail side, ATR multiple, distance, flip quality, and continuation or exit-watch state.
It is not a support/resistance zone engine. The only zones are concept-native Flip Zones created from qualified Chandelier trail transitions.
This keeps the script differentiated, practical, and publication-safe inside the AGPro Series catalog.
✅ Core Features
- Chandelier Exit trail based on ATR distance and recent structure anchors
- Long-side and short-side trail state
- Bullish and bearish trail-flip detection
- Flip quality score from 0 to 100
- Prime, qualified, and developing flip classifications
- ATR distance from the active trail
- Percentage distance from the active trail
- Continuation, control, and exit-watch state logic
- Quality-filtered forward Flip Zones
- Optional exit-watch labels, disabled by default for a cleaner public view
- Label cooldown and maximum label controls
- Maximum visible zone control
- Adjustable label font size
- Adjustable panel font size
- Adjustable panel location
- Dark, light, and auto panel theme options
- AGPro-style panel with a single merged blue header row
- Alerts for bullish flips, bearish flips, prime flips, and exit-watch conditions
📊 Panel Readout
The panel is designed to give a fast read without visual overload:
Trail Side
Shows whether the active Chandelier trail is currently long-side or short-side.
ATR Multiple
Shows the volatility multiple used by the current trail.
Distance
Shows how far price is from the active trail in both ATR and percentage terms.
Flip Quality
Displays the most recent flip score and classification.
State
Classifies the current condition as continuation, control, or exit watch.
🎯 How To Read It
A strong Chandelier flip means price has crossed the prior active trail with enough quality to deserve attention. The score helps separate cleaner transitions from weaker flips in noisy conditions.
A continuation state means price has moved far enough from the active trail and still has trend agreement behind it. This is the cleaner trend-following condition.
A control state means price is on one side of the trail, but the continuation profile is not yet strong enough to classify as a high-conviction continuation read.
An exit-watch state means price has compressed back toward the active Chandelier trail. This does not make the script a prediction tool. It simply highlights that the active trend has less distance from its trailing-stop structure and deserves closer attention.
💎 Why Traders May Like It
The script is useful because it keeps the original simplicity of Chandelier Exit while adding the context traders usually have to judge manually.
It can help users read:
- Trend-following continuation quality
- ATR trailing-stop distance
- Trail-side transitions
- Cleaner Chandelier flip zones
- Exit-pressure areas near the active trail
- Strong versus weak flip behavior
The default view is intentionally restrained. Exit-watch labels are available, but disabled by default so the first chart impression stays cleaner. Flip labels and zones are also filtered by score so the chart does not get flooded during sideways periods.
🛠 Suggested Use Cases
- Trend-following exit management
- Swing-trading trail awareness
- Crypto trend continuation tracking
- Forex and index trailing-stop context
- Stock trend-state monitoring
- Identifying stronger Chandelier trail transitions
- Monitoring when price compresses back toward the active trail
⚙️ Recommended Default Style
The defaults are tuned for a public-free premium view:
- ATR Length: 22
- Structure Lookback: 22
- ATR Multiple: 3.0
- Flip Zones: enabled
- Minimum Zone Score: 50
- Minimum Flip Label Score: 45
- Exit Labels: disabled by default
- Label Font Size: Normal
- Panel Font Size: Normal
- Panel Theme: Dark
These settings keep the tool immediately usable while preserving a clean chart presentation.
🔹 In One Sentence
Chandelier Exit Flip Zones turns a classic ATR trailing stop into a cleaner Chandelier trail, flip-quality, continuation-state, and exit-pressure map built for serious chart reading without unnecessary clutter. Indicator

Take Profit Planner [AGPro Series]Take Profit Planner
🎯 **Overview**
**Take Profit Planner ** is a precision exit-planning tool that transforms trade management from guesswork into a structured process. It builds a disciplined profit ladder around any trade idea — whether you are a scalper managing rapid exits or a swing trader stepping out of positions over days — and keeps the entire plan on one chart with live progress tracking.
Most traders agonize over entries and leave exits to improvisation. This tool flips that habit: define your anchor, choose your calculation style, and the script projects a complete multi-tier exit map with stop loss, position-sizing allocation, confluence scoring, and real-time hit tracking.
🪜 **What Makes It Different**
Unlike conventional take-profit indicators that plot a single ATR-based target or fixed R:R pair, this tool offers a **multi-layer exit architecture**:
▫️ **Three Calculation Modes** — Fibonacci Extensions, R-Multiples, or Hybrid Confluence in a single tool
▫️ **Three Anchor Sources** — Manual price inputs, auto pivot detection, or recent S/R zone anchoring
▫️ **Confluence Scoring** — In Hybrid mode, every target receives a ★ / ★★ / ★★★ rating based on how many independent level types (Fib, round number, pivot S/R) cluster at that price
▫️ **Position-Sizing Layer** — Allocate a custom percentage of your position to close at each tier, with automatic weighted P&L calculation
▫️ **Live Progress Tracking** — Visual hit confirmation (✓), realized vs expected profit, and a six-state status ladder: ACTIVE → PROGRESSING → IN PROFIT → NEAR COMPLETE → ALL TPs HIT → STOPPED OUT
🧠 **Methodology**
▫️ **Anchor Detection** — The script identifies a trade's origin (Swing) and entry point using one of three methods. Auto Pivot uses a confirmable `pivothigh`/`pivotlow` with configurable length. Auto S/R uses the most recent swing extremes as structural anchor points. Manual lets you input exact prices.
▫️ **Direction Inference** — LONG or SHORT is determined automatically from the geometry: Entry above Swing → LONG, Entry below Swing → SHORT. No manual flag needed.
▫️ **Stop-Loss Logic** — Three modes: ATR Multiple (volatility-adaptive), Swing Point (structural), or Fixed Percent (disciplined). In Manual anchor mode, you set the stop directly.
▫️ **Target Projection** — Fibonacci mode projects targets from the Anchor→Swing leg using standard extensions (1.272, 1.414, 1.618, 2.000, 2.618). R-Multiple mode multiplies the stop distance by risk factors (1R, 2R, 3R, 5R, 8R). Hybrid uses Fibonacci as base and scores confluence.
▫️ **Confluence Algorithm** — For each Fibonacci target, the script checks proximity to: (1) the nearest psychological round number within 0.15 ATR, (2) the most recent pivot high within 0.2 ATR, (3) the most recent pivot low within 0.2 ATR. Each alignment adds one point to the base Fibonacci score.
▫️ **Hit Detection** — On every confirmed bar, the script checks whether price crossed each un-hit target. Hits are persistent until the anchor changes by more than 1 ATR, at which point the plan resets.
🔔 **Signals & Alerts**
▫️ **TP Hit** — Fires once per bar when price touches a specific target. Alert message includes tier number, price, and direction.
▫️ **SL Hit** — Fires once when stop-loss is breached.
▫️ **All TPs Reached** — Fires once when the full ladder is completed.
All alerts are non-repainting and trigger only on confirmed bars.
🎛️ **Key Inputs**
▫️ **Calculation Mode** — Fibonacci Extensions, R-Multiples, or Hybrid Confluence
▫️ **Anchor Source** — Manual Price, Auto Pivot High/Low, or Auto Recent S/R
▫️ **Pivot Length** — Bars of confirmation for automatic pivot detection (default 10)
▫️ **Stop-Loss Mode** — ATR Multiple, Swing Point, or Fixed Percent
▫️ **Number of TP Tiers** — 2 to 7 (default 5)
▫️ **Fibonacci / R-Multiple Levels** — Fully customizable per tier
▫️ **Allocation %** — Position-sizing percentage per tier
▫️ **Zone Half-Width (ATR)** — Vertical thickness of target zones in ATR units
▫️ **Panel Location & Theme** — Six positions, Dark or Light theme
▫️ **Label & Panel Font Size** — Tiny, Small, Normal, Large
💡 **How to Use**
▫️ **Scalper Workflow (Fast Exits)** — Set Calculation Mode to R-Multiples, tier count to 3, allocations to 50 / 30 / 20. Use Auto Pivot with pivot length 5–8 on lower timeframes. Exit weighted-partials at each R-level.
▫️ **Swing Trader Workflow (Multi-Day Holds)** — Set Calculation Mode to Hybrid Confluence, tier count to 5, allocations to 20 / 20 / 25 / 20 / 15. Use Auto Pivot with length 10–15 on 4H or daily. Prioritize exits at ★★★ confluence targets.
▫️ **Discretionary Trader Workflow** — Set Anchor Source to Manual Price, enter your own Entry, Swing, and SL values. Choose Fibonacci mode for trend-based projections or Hybrid for confluence-weighted decisions.
▫️ **Position Management** — The Expected line in the panel shows total profit % if all active tiers are filled (weighted by allocation). The Realized line tracks booked profit as tiers fill. Use this to compare planned vs actual performance.
⚠️ **Limitations & Transparency**
▫️ This is a **planning and visualization tool**, not an entry signal generator. It assumes you already have a trade bias; it structures the exit.
▫️ **Auto-anchor modes** rely on confirmed pivots, which means the most recent plan updates a few bars after a fresh pivot forms. This is intentional to prevent repainting.
▫️ **Confluence scoring** is based on the current snapshot of pivot highs/lows and round numbers. As price moves and new pivots form, scores may change.
▫️ **Hit detection** uses bar highs/lows on confirmed candles only.
▫️ The tool does not know your actual fill prices, slippage, or spreads — expected and realized percentages assume exact execution at target prices.
🛡️ **Risk Disclosure**
Trading involves substantial risk of loss and is not suitable for every investor. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, a trading recommendation, or a solicitation to buy or sell any asset. Past performance does not guarantee future results. Always perform your own analysis, define risk before entering any trade, and use proper position sizing. The author and AGProLabs accept no liability for trading decisions made using this tool.
🔓 **Open Source**
This script is published open-source under the Mozilla Public License 2.0. You are welcome to study the methodology, build on it, and contribute feedback. Indicator

Stop Loss Optimizer Engine [AGPro Series]Stop Loss Optimizer Engine
🔹 OVERVIEW
Stop Loss Optimizer Engine compares four independent stop-loss methodologies side by side on a single chart, so traders can see at a glance where each approach would place protection and which one has historically held up best on the current symbol and timeframe. Every method is calculated for both LONG and SHORT, giving eight reference levels plus a compact panel with distance-to-price and a historical hold-rate statistic per method. A Risk Zone highlights the area between current price and the method with the strongest historical hold-rate, providing a clean S/R-style visual anchor for position sizing and R-multiple planning.
🔹 UNIQUE EDGE
Most stop-loss indicators on the platform commit to a single philosophy — pure ATR, pure Chandelier, or pure structure. Traders who want to compare approaches end up loading multiple scripts and eyeballing the differences. Stop Loss Optimizer Engine is built around a different premise: volatility, structure, trailing and recent-extreme stops each have environments in which they work well, and the trader should decide based on evidence rather than habit. The indicator renders all four on one chart, adds a per-method hold-rate measured on the active instrument, and flags the highest-hold-rate method with a star marker so the comparison is always a single glance away. The Risk Zone is drawn using the current-best method, which means the visual anchor adapts to whichever approach is statistically holding up best on that symbol and timeframe right now.
🔹 METHODOLOGY
The four engines are independent and each produces a LONG and a SHORT level:
ATR-SL — close minus or plus ATR × multiplier. Volatility-adaptive, widens in turbulent markets, tightens in calm ones.
Pivot-SL — the most recent confirmed pivot low or pivot high. Respects market structure, places the stop beyond the last reversal point rather than at an arithmetic distance.
Chandelier-SL — highest high minus ATR × multiplier for LONG, lowest low plus ATR × multiplier for SHORT. The classic Le Beau / Elder trailing stop, designed to follow strong trends without premature exits.
Swing-SL — the lowest low or highest high over a short lookback. A simple, robust baseline that works well for shorter trades and scalping.
Hold Rate — for every historical bar in the lookback window, the indicator records the SL level that each method would have produced at that bar, then checks whether price breached that level within a fixed forward window. Hold Rate is the percentage of evaluated bars in which the SL was not breached. This is a pure historical observation, not a forward performance projection.
🔹 SIGNALS & ALERTS
Visual — dotted lines for LONG stops (plotted below price), dashed lines for SHORT stops (plotted above price). Each method uses a distinct color. Labels sit at the right edge of each line with the method name and exact price. A dedicated anti-overlap resolver repositions labels vertically whenever two or more methods produce near-identical levels, so the rightmost chart panel stays readable in tight clusters.
Risk Zone — a shaded rectangle between current close and the highest-hold-rate SL on the trend-dominant side, extending forward from the current bar. Color matches the selected best method.
Panel — four-column layout showing method, LONG price (and distance %), SHORT price (and distance %), and Hold Rate, with a star marker beside the method currently holding the highest rate. A trend footer reports Bullish or Bearish based on the EMA50 filter.
Alerts — four pre-configured conditions for price breaching the ATR and Chandelier SL levels on either side.
🔹 KEY INPUTS
Method toggles for each of the four engines. Length and multiplier inputs per method, with balanced defaults (ATR 1.5× / 14, Pivot length 5, Chandelier 2.5× / 22, Swing lookback 7). Hold-rate statistics lookback and forward window, defaulting to 1000 and 10 bars. Visual controls for long-side lines, short-side lines, labels, the Risk Zone and a trend-based dimming of the counter-trend side. Panel location (six positions), panel theme (Dark or Light), and adjustable font sizes for panel and labels, all defaulting to Normal.
🔹 HOW TO USE
Open the indicator on any symbol and any timeframe. Read the panel first — the starred method is the one with the best historical hold-rate on the current chart. Pick a method that matches the trade plan: ATR for volatility-aware scalps, Pivot for structural setups, Chandelier for trend-following swings, Swing for simple quick trades. Use the Hold Rate column as secondary evidence, not as a standalone forecast. Read the SL price and the distance percentage next to it to size position accordingly — a 2% stop and a 6% stop are not the same trade, even on the same entry. The Risk Zone is a convenience visual for the trend-dominant side and should be interpreted together with the other levels, not in isolation.
🔹 LIMITATIONS & TRANSPARENCY
Hold Rate is a backward-looking statistic computed on historical bars of the active chart. It describes what would have happened under a fixed forward-window assumption on past data and does not guarantee any future behavior. The forward-window length, lookback size and method parameters all influence the resulting numbers; changing inputs changes the statistic. The Pivot-SL method depends on the availability of confirmed pivots in the lookback window and will fall back to a conservative ATR-based placeholder when a pivot is not yet confirmed. Risk Zone selection is based on hold-rate ranking, which can switch between methods as markets evolve. This script is a decision-support tool for discretionary risk management, not a trade-entry signal generator. Always combine with independent analysis and sound position sizing. Past performance of any stop-loss method does not guarantee future results.
🔒 RISK DISCLOSURE
This script is provided for educational and informational purposes only. It is not financial, investment or trading advice. Trading involves substantial risk of loss; use at your own discretion and risk. Indicator

[ A L P H A X ] Prism Price Action Institutional FlowAlphaX Prism — Price Action × Key Levels × Institutional Flow | Confluence Engine, Smart Entry/Exit Signals & Multi-Factor Confidence Scoring
AlphaX Prism is a professional-grade price action and confluence trading system that fuses three powerful analytical dimensions into a single, cohesive overlay indicator: automatic Key Level detection, real-time Price Action pattern recognition, and Institutional Footprint tracking. Every signal is governed by a 10-factor confluence scoring engine and a weighted confidence percentage system — so only high-quality, structurally valid setups reach your chart. Designed for traders who want clean, context-aware signals rooted in market structure rather than lagging oscillators.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Three Pillars of AlphaX Prism
AlphaX Prism operates across three simultaneous analytical layers, each feeding into the central confluence engine:
I. Key Level Engine — Automatic Support & Resistance Detection
The Key Level engine automatically identifies, tracks, and manages the most significant support and resistance zones on your chart using swing pivot detection. Rather than drawing static lines, AlphaX Prism builds intelligent zones that evolve as price interacts with them.
How the Key Level engine works:
Swing Pivot Detection — identifies significant highs and lows using a configurable swing length parameter
Zone Merging — nearby levels within a configurable ATR-based threshold are merged into a single consolidated zone, preventing level clutter
Touch Counting — each zone tracks how many times price has interacted with it. Zones below the minimum touch threshold appear in neutral gray; confirmed zones flip to color-coded support (yellow-green) or resistance (red)
Zone Age Management — zones older than a configurable bar count are automatically retired and removed, keeping your chart focused on relevant levels only
Dynamic Extension — all zones and lines extend to the right edge of the chart in real time
Key Level signals feed directly into the confluence engine and generate specific condition flags:
Price at Support — price is currently trading within a confirmed support zone
Price at Resistance — price is currently trading within a confirmed resistance zone
Bounce from Support — price touched support and closed bullish with a meaningful body — the highest-value condition for long setups
Rejection from Resistance — price touched resistance and closed bearish with a meaningful body — the highest-value condition for short setups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
II. Price Action Pattern Engine — What the Candles Are Saying
AlphaX Prism recognizes five core price action patterns in real time, each validated with additional filters to reduce false triggers:
Bullish / Bearish Engulfing
A bullish candle that fully engulfs the prior bearish candle (or vice versa), with a meaningful body ratio and a candle range above a minimum ATR threshold. Engulfing patterns receive the highest PA score in the confluence engine and trigger a dedicated marker on the chart when occurring at a key level or in the direction of the established trend.
Bullish / Bearish Pin Bar
A candle with a wick at least 2.5× the body length, where the wick is significantly larger than the opposing wick, and the close is in the upper or lower half of the candle's range respectively. The candle must meet a minimum ATR size threshold to qualify.
Inside Bar Breakout
When a candle is fully contained within the prior candle's range (inside bar), the next candle breaking out above or below that range — with a directional close and a meaningful body — triggers an inside bar breakout marker. A controllable toggle allows you to enable or disable this pattern type independently.
Momentum Shift (3-Bar Reversal)
Two consecutive candles in one direction followed by a third candle that breaks the prior candle's extreme and closes with a body ratio above 0.5. This pattern captures short-term momentum reversals within the context of a broader structure.
Strong Directional Candle
A candle with a body ratio above 0.65 and a body size exceeding the average body — used as a supplementary structural signal within the confluence engine.
Pattern markers are context-filtered — they only appear when occurring at a key level, aligned with the trend structure, or accompanied by a bounce/rejection confirmation. This eliminates random pattern signals in the middle of nowhere.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
III. Institutional Footprint — Tracking Large Money Flow
Retail price action alone does not tell the full story. AlphaX Prism tracks two types of institutional activity that are invisible to most traders:
Institutional Candles — Directional Large-Body Moves
A bullish or bearish candle whose body exceeds the 20-bar average body by a configurable multiplier (default: 1.8×)
Volume exceeds the moving average by a configurable multiplier (default: 1.3×)
Body ratio above 0.55, with a close in the upper or lower third of the range — confirming directional conviction
These appear as bright colored dots at the bottom of the chart (yellow-green for bull, red for bear)
Absorption Candles — Hidden Accumulation and Distribution
A large wick (more than 2× the body) with high volume — indicating large orders absorbing supply or demand without a visible directional body
The wick must be at least 1.5× larger than the opposing wick, and the candle range must exceed the ATR minimum
These appear as dimmer dots at the bottom of the chart — subtler activity, but often a precursor to a directional move
Volume Spikes — when high volume occurs without an institutional candle pattern, a neutral gray dot appears — flagging elevated participation without clear directional conviction.
Institutional activity feeds into the confluence engine and acts as a significant signal amplifier when aligned with price action and key levels.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Two Signal Layers
AlphaX Prism produces two distinct signal types, each serving a specific role in the trade lifecycle:
1 ─ Entry Signals (▲ / ▼)
Entry signals are generated when the confluence engine determines that enough independent factors are aligned simultaneously. A bullish entry (▲) or bearish entry (▼) label appears offset from the bar with a dotted connector line for visual clarity.
Entry signals require ALL of the following to fire:
Confluence score meets or exceeds the minimum threshold (default: 4 out of 10 factors)
A qualifying Price Action pattern is present
A structural reason exists (key level, institutional candle, or trend context)
The candle is clean — not overextended, not at an RSI extreme, and with a meaningful body
ADX confirms a trending environment (not a ranging, directionless market)
Signal cooldown has elapsed since the last signal
When both bull and bear conditions trigger simultaneously, the higher-confluence side wins. If scores are equal, no signal fires — tie goes to caution.
2 ─ Exit Signals (✕)
Exit signals fire after an entry signal has been established and a reversal condition develops. They are filtered by the same cooldown as entries to prevent rapid oscillation.
Long Exit — price reaches a resistance zone and a bearish engulfing forms, or the trend shifts down with price below the medium EMA and MACD bearish, or an institutional selling candle closes below the fast EMA, or RSI is overbought with a bearish pattern
Short Exit — the inverse of the above conditions for a long exit
Exit signals indicate that the momentum behind the current trade is deteriorating. Use them to take partial or full profit, or to tighten your stop loss ahead of a potential reversal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 10-Factor Confluence Scoring System
Every bar is evaluated against ten independent confluence factors — each one a separate reason to consider a trade. Only setups where enough factors align simultaneously are displayed.
The 10 Confluence Factors:
1. Key Level — price is bouncing from support or rejecting resistance (highest weight)
2. Price Action Pattern — any qualifying PA pattern is present
3. Strong Pattern Bonus — engulfing or momentum shift (higher-conviction PA types)
4. Institutional Activity — institutional candle or absorption present in signal direction
5. Trend Structure — swing-based trend direction (HH/HL or LL/LH) aligns with signal
6. MACD Momentum — MACD line above/below signal line and histogram expanding in signal direction
7. RSI Alignment — RSI slope rising/falling within the mid-range zone (not extreme)
8. RSI Divergence — price makes a new extreme but RSI does not confirm, signaling exhaustion
9. Volume — current volume exceeds the moving average in the signal direction
10. EMA Alignment — fast, medium, and slow EMAs are stacked in the signal direction, or price is positioned correctly relative to the 200 EMA
The score (0–10) is displayed in the dashboard alongside a weighted confidence percentage (0–100%) and a letter grade (D through A+).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Weighted Confidence Engine
In addition to the 10-factor binary confluence score, AlphaX Prism computes a weighted confidence percentage that assigns different point values to each factor based on its structural importance.
Bull / Bear Confidence Scoring Breakdown:
Bounce from Support / Rejection from Resistance — up to 18 points (the single most important condition in price action trading)
Price at Key Level without confirmed bounce/rejection — 12 points
PA Pattern Type — Engulfing: 14 pts | Momentum Shift: 12 pts | Pin Bar: 10 pts | Inside Bar Break: 8 pts
Institutional Candle — 12 points | Absorption: 8 points
Trend Structure Aligned — 10 points | Structural confirmation only: 6 points
MACD Momentum — both line and histogram aligned: 6 pts | line only: 3 pts
RSI Slope in Range — 5 points
RSI Divergence — 8 points
Volume Spike — 6 points | Above average: 3 points
EMA Trend Fully Aligned — 8 points | Price above/below 200 EMA only: 3 points
ADX Strong — 6 points
Penalty Deductions:
RSI at opposite extreme — -12 points (signal in wrong RSI zone)
Counter-trend direction — -15 points (trading against the established structure)
ADX weak / no trend — -6 points
Price overextended from EMA — -8 points
No PA pattern at all — -10 points (structure without a trigger is not enough)
Below average volume — -4 points
Letter Grade Scale:
A+ — 70% and above: exceptional confluence, all major factors aligned
A — 55–69%: high-quality setup with strong structural backing
B — 40–54%: good setup with most factors aligned
C — 25–39%: marginal setup, use caution and tighter risk management
D — below 25%: weak confluence, typically filtered out before display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 EMA System
Three Exponential Moving Averages provide structural context for trend bias and signal filtering:
Fast EMA (21) — yellow-green cross markers — the immediate momentum reference. When price holds above the Fast EMA, intrabar momentum favors longs.
Medium EMA (50) — gray line — the intermediate trend filter. Slope direction confirms trend momentum across recent bars.
Slow EMA (200) — dark gray line, thicker — the structural backbone. Price position relative to the 200 EMA contributes to the confidence score and defines the macro bias.
EMA Fan Analysis:
All three EMAs fanning outward in order (Fast > Medium > Slow for bullish) — healthy trend, re-entry signals carry higher confidence
EMAs converging — trend is weakening, expect chop or reversal
EMAs tangled and flat — range-bound market, step aside and wait for structure to return
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Trend Structure Detection
AlphaX Prism tracks swing-based market structure using configurable pivot detection:
Uptrend (▲ UPTREND) — confirmed when the most recent significant high is higher than the prior high AND the most recent significant low is higher than the prior low (Higher Highs + Higher Lows)
Downtrend (▼ DOWNTREND) — confirmed when the most recent significant high is lower than the prior high AND the most recent significant low is lower than the prior low (Lower Highs + Lower Lows)
A configurable cooldown prevents label spam during choppy structure transitions
The trend structure direction is used as a directional filter and adds directly to the confluence score. Signals trading against the identified structure receive a significant confidence penalty.
ADX is calculated alongside the swing structure to confirm whether the trend has sufficient momentum. The ADX threshold (default: 22) prevents signals from firing during flat, low-conviction periods — regardless of how many other factors align.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 RSI Divergence Detection
AlphaX Prism includes a built-in RSI divergence scanner that runs continuously alongside all other analysis:
Bullish Divergence — price makes a lower low but the RSI pivot low is higher than the prior RSI low — indicating weakening bearish momentum
Bearish Divergence — price makes a higher high but the RSI pivot high is lower than the prior RSI high — indicating weakening bullish momentum
Divergences are validated against pivot lookback windows to ensure they represent meaningful structural shifts rather than random oscillator noise. When detected, they are marked with small diamond shapes and contribute up to 8 points to the confidence score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Prism — Step by Step
Step 1 — Read the Dashboard
Check PRICE POSITION: Is price bouncing from support, rejecting resistance, or between levels?
Check TREND: Is structure bullish, bearish, or ranging?
Check ADX: Is there a trending environment, or is it weak and directionless?
Check PA PATTERN: Is there a qualifying candle pattern on the current bar?
If VERDICT reads "WEAK TREND — WAIT" or "NO PA PATTERN — WAIT" → do not enter. Preserve capital.
Step 2 — Wait for an Entry Signal
A ▲ or ▼ signal label appears when all mandatory conditions are met
Check the dashboard for the BULL SCORE or BEAR SCORE and the letter grade — higher grades represent cleaner, higher-probability setups
An A or A+ grade at a confirmed key level with institutional activity is the highest-conviction setup the system can produce
Step 3 — Confirm the Setup Manually
Review FACTORS in the dashboard — which of the 10 conditions are confirmed?
Look for a Bounce from Support or Rejection from Resistance as the anchor
Verify that volume is above average and the institutional footprint dots support the direction
Place your stop loss beyond the recent swing high/low or beyond the key level zone
Step 4 — Manage the Trade
Monitor the dashboard for changes in trend, RSI state, and institutional flow
If the VERDICT shifts from your trade direction, begin tightening your stop loss
Use subsequent entry signals in the same direction as opportunities to add to a winning position
Step 5 — Exit on the ✕ Mark
When an exit marker appears, the system has detected a counter-trend structural condition
Take partial or full profit
Do not immediately reverse — wait for a new entry signal in the opposite direction before committing to a new trade
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🏗 Automatic Key Level detection with zone merging, touch counting, and age management
🕯 Five Price Action pattern types — Engulfing, Pin Bar, Inside Bar Breakout, Momentum Shift, and Strong Directional Candle
🏦 Institutional footprint tracking — directional institutional candles and absorption patterns with volume validation
🧠 10-factor confluence binary score + weighted percentage confidence engine with A+ to D letter grading
📐 Three EMAs (21 / 50 / 200) for structural context, fan analysis, and trend bias
📉 Swing-based trend structure detection with HH/HL and LL/LH logic and a configurable trend label cooldown
⚡ ADX integration — prevents signals from firing in low-conviction, ranging environments
💎 RSI divergence scanner — continuously monitors for bullish and bearish momentum divergence
📊 MACD momentum engine — directional and histogram-based momentum alignment
✕ Context-aware exit signals — fire only after an active entry and only under specific structural reversal conditions
🖥 Fully featured dashboard — price position, PA pattern, institutional activity, trend, EMA, RSI, volume, confluence scores, verdict, and last signal details all in one panel
🎨 Cohesive dual-tone color theme — yellow-green for bullish, red for bearish, gray for neutral and weak conditions
🔔 8 alert conditions — long/short signals, engulfing at key levels, institutional candles, and RSI divergences
⚙ Fully configurable — all swing lengths, thresholds, ATR multipliers, confluence minimums, EMA periods, colors, and display toggles are adjustable from the settings panel
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Key Levels
Key Level Swing Length — pivot detection lookback for support/resistance identification (default: 8)
Merge Zones (x ATR) — how close two levels must be to merge into a single zone (default: 1.2× ATR)
Max Active Zones — maximum number of key level zones displayed simultaneously (default: 6)
Zone Max Age (bars) — how many bars before a zone is retired and removed (default: 250)
Show Key Level Zones — toggle zone box fills
Show Key Level Lines — toggle dotted center lines
Min Touches to Confirm — how many interactions before a zone is considered confirmed and color-coded (default: 2)
Price Action
Show PA Pattern Markers — toggle all price action pattern markers
Min Body Ratio (Engulf) — minimum body-to-range ratio required for engulfing patterns (default: 0.4)
Pin Bar Wick Ratio — minimum wick-to-body ratio required for pin bars (default: 2.5)
Show Inside Bar Breakouts — enable/disable inside bar breakout signals
Show Momentum Shift — enable/disable 3-bar momentum shift detection
Institutional Flow
Inst. Body Size (x Avg) — body size multiplier required for institutional candle detection (default: 1.8)
Inst. Volume (x Avg) — volume multiplier required for institutional candle detection (default: 1.3)
Show Institutional Candles — toggle all institutional footprint dots
Trend Context
Trend Swing Length — pivot lookback for trend structure HH/HL/LL/LH detection (default: 12)
Show Trend Shift Labels — toggle UPTREND/DOWNTREND structural labels
Trend Label Cooldown — minimum bars between consecutive trend labels (default: 18)
ADX Length — period for ADX trend strength calculation (default: 14)
ADX Trend Threshold — minimum ADX value required to permit signal generation (default: 22)
Momentum
RSI Length — period for RSI calculation (default: 14)
Show RSI Divergence — toggle the RSI divergence scanner and markers
Volume
Volume MA Length — period for volume moving average used in all volume comparisons (default: 20)
EMA Settings
Show Fast / Medium / Slow EMA — individual visibility toggles for each EMA
Fast EMA Length — default: 21
Medium EMA Length — default: 50
Slow EMA Length — default: 200
Confluence Engine
Min Confluence Score — minimum number of the 10 factors required to permit signal generation (default: 4)
Show Entry Signals — toggle all ▲ / ▼ entry signal labels
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 12)
Show Exit Signals — toggle all ✕ exit signal markers
Display
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Right / Top Left / Bottom Right / Bottom Left
Dashboard Text Size — Tiny / Small / Normal
Dashboard Background — configurable background color
Theme Colors
Bull Primary / Bright / Dim — the yellow-green family for all bullish elements
Bear Primary / Bright / Dim — the red family for all bearish elements
Support / Resistance / Neutral Zone Colors — configurable zone color scheme
Pattern Color — marker color for price action pattern labels
Institutional Color — dot color for institutional footprint markers
Individual EMA Colors — Fast (yellow-green), Medium (gray), Slow (dark gray)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Prism Long Signal — fires when a confirmed ▲ entry signal appears
Prism Short Signal — fires when a confirmed ▼ entry signal appears
Engulf at Support — fires when a bullish engulfing pattern forms at a confirmed support zone
Engulf at Resistance — fires when a bearish engulfing pattern forms at a confirmed resistance zone
Institutional Buying — fires when an institutional bullish candle is detected
Institutional Selling — fires when an institutional bearish candle is detected
RSI Bull Divergence — fires when a confirmed bullish RSI divergence is detected
RSI Bear Divergence — fires when a confirmed bearish RSI divergence is detected
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook and bot integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for intraday trading on XAUUSD, forex majors, and indices (NAS100, US30, SPX500) on timeframes from M1 to H1.
For best results across different instruments:
Higher timeframes (H1, H4) — increase Trend Swing Length to 18–25, increase Min Confluence to 5–6, increase Signal Cooldown to 20–30
Volatile instruments (Gold, NAS100) — use defaults or increase ADX threshold to 25 for tighter trend filtering
Forex majors (EURUSD, GBPUSD) — reduce Inst. Body Size multiplier to 1.5, keep defaults otherwise
Calmer instruments — reduce ADX threshold to 18–20, reduce Min Confluence to 3
Fewer, cleaner signals — increase Min Confluence Score, increase ADX Threshold, increase Signal Cooldown
More frequent signals — decrease Min Confluence Score to 3, decrease Signal Cooldown to 8, reduce ADX Threshold to 18
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🥇 Price action traders — built on the foundations of PA trading: key levels, candlestick patterns, and structural context, with no dependence on arbitrary indicator signals
🏦 Traders who want to track institutional activity — the footprint engine highlights where large money is likely entering and exiting the market
📊 Confluence-based traders — the 10-factor scoring system provides a systematic, quantified framework for evaluating setups rather than relying on intuition alone
🧠 Systematic and discretionary traders alike — the dashboard makes every condition transparent and readable at a glance, while the alert system supports fully automated notification workflows
📈 Traders who struggle with overtrading — the mandatory ADX filter, PA pattern requirement, and minimum confluence threshold physically prevent weak or unqualified setups from generating signals
🎨 Traders who value clean, uncluttered charts — all elements follow a cohesive color theme, and the system is designed to show you only what matters, when it matters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are calculated on bar close — AlphaX Prism is non-repainting. A signal that appears will not disappear on the next bar.
The key level zone boxes extend to the right edge of the chart in real time. As new bars form, zones that have aged beyond the maximum bar count are automatically removed.
RSI divergence detection uses a 5-bar pivot lookback on each side — divergences are confirmed only when the current bar is within 3 bars of the pivot, and the two pivots are between 5 and 50 bars apart, ensuring only meaningful divergences are flagged.
Designed for M1 through H1 timeframes. On daily or weekly charts, the ADX and confluence filters still function, but key level zone density may need adjustment via the swing length and max zones settings.
Maximum 500 labels and 500 boxes are used — on very low timeframes with extended chart history, oldest elements may be automatically removed by PulseWire's rendering limits.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who trade what they see — not what they hope. Indicator

[ A L P H A X ] Elliott Wave Detection & Fibonacci Golden ZoneAlphaX Wave – Elliott Wave Detection, Fibonacci Golden Zone Mapping, Multi-Confluence Scoring & Smart SL/TP System
AlphaX Wave is a professional-grade Elliott Wave analysis and trade signal system built on a proprietary multi-engine architecture that fuses automated wave counting, Fibonacci golden zone projection, multi-factor momentum scoring, and structure-based stop loss and target placement into a single cohesive tool. It identifies impulse wave patterns (waves 1–5), detects corrective ABC structures, projects Fibonacci retracement zones, scores trade setups across eight independent confluence factors, and generates graded entry signals with intelligent SL/TP levels derived from swing structure, Fibonacci levels, and wave projections. Designed for traders who use Elliott Wave theory as their primary framework on instruments like XAUUSD, indices, forex majors, and crypto.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 The Wave Engine — How It Works
At the core of AlphaX Wave is an automated Elliott Wave detection algorithm that identifies the classical 5-wave impulse structure and 3-wave corrective patterns in real-time. Unlike manual wave counting, this engine applies strict mathematical validation rules derived from Elliott Wave theory to ensure only structurally valid patterns are labeled.
Impulse Wave Detection (Waves 1–5)
The engine uses a rolling buffer of confirmed swing highs and swing lows detected via a configurable pivot lookback. When at least three swing highs and three swing lows are available, the engine tests them against the following Elliott Wave rules:
Wave 2 must not retrace beyond the start of Wave 1 — validated by checking that the second swing low remains above the first swing low (bullish) or below the first swing high (bearish)
Wave 3 must not be the shortest impulse wave — validated by comparing the Wave 3 range to at least 70% of the Wave 1 range
Wave 4 must not overlap into Wave 1 territory — validated by checking that the Wave 4 low stays above the Wave 2 low (bullish) or Wave 4 high stays below the Wave 2 high (bearish)
Wave 2 retracement must be between 15% and 95% of Wave 1 — filters out patterns that are too shallow or too deep
Wave 4 retracement must be between 10% and 90% of Wave 3 — ensures proper proportionality
Temporal ordering must be correct — all six pivot points must occur in strict chronological sequence
Wave 5 must exceed Wave 3's high (bullish) or undercut Wave 3's low (bearish) — confirms the impulse completed with a new extreme
When all rules pass simultaneously, the engine marks the complete 1–5 impulse structure on the chart with numbered labels and connecting wave lines. Wave 3 and Wave 5 receive larger, brighter labels because they represent the highest-momentum phases of the impulse.
Corrective Wave Detection (ABC Pattern)
After an impulse completes, the engine monitors for corrective price action:
For a completed bullish impulse — the engine watches for a pullback that retraces between 20% and 72% of the impulse range, indicating an ABC correction is forming
For a completed bearish impulse — the engine watches for a bounce that retraces between 20% and 72% of the impulse range
The correction must originate after Wave 5 completes — ensures proper sequence
A configurable cooldown prevents multiple correction labels from firing on the same structure
Corrective zones are particularly valuable because they represent potential entry opportunities in the direction of the prior impulse trend — the market is pulling back within a larger trend structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Fibonacci Golden Zone System
When an impulse wave completes, the engine automatically projects Fibonacci retracement levels across the entire impulse range:
38.2% Retracement — the shallowest institutional retracement level
50.0% Retracement — the equilibrium midpoint of the impulse
61.8% Retracement — the golden ratio level, highest-probability reversal zone
The area between the 38.2% and 61.8% levels forms the Golden Zone — a shaded box that represents the highest-probability area for the corrective wave to terminate and the trend to resume. This is where institutional traders typically place their limit orders.
The Golden Zone system includes intelligent lifecycle management:
Zones automatically expire after a configurable maximum age (default 80 bars)
Zones are removed when price closes significantly beyond them (1.5 ATR past the zone boundary) — indicating the zone has been invalidated
Maximum active zones are capped (configurable) to keep the chart clean
The indicator tracks whether price is currently inside a bullish or bearish Golden Zone — this information feeds directly into the confluence scoring engine
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Wave 3 Setup Detection
Wave 3 is traditionally the strongest and longest wave in Elliott Wave theory. AlphaX Wave includes a dedicated Wave 3 Setup Scanner that identifies potential Wave 3 initiations in real-time:
Detects when price has completed a valid Wave 1 (impulse move) followed by a Wave 2 (pullback between 15% and 90% of Wave 1)
Confirms the pullback low remains above the Wave 1 starting point (bullish) or below it (bearish) — validating the wave structure
Requires a directional confirmation candle (close above prior high for bullish, close below prior low for bearish)
Marked with small purple triangles — ▲ below bar for bullish Wave 3 setups, ▼ above bar for bearish
Wave 3 setups are among the highest-probability trade entries in all of technical analysis because they align with the strongest phase of the impulse trend.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 8-Factor Confluence Scoring Engine
Every potential trade signal is evaluated across eight independent confluence factors . Each factor scores either 0 or 1 point, producing a confluence score from 0 to 8. Only signals meeting your configured minimum confluence threshold are displayed.
Factor 1 — Wave 3 Setup (W3)
Is a valid Wave 3 initiation pattern present?
This is the single most powerful factor — Wave 3 moves are the strongest in Elliott theory
Factor 2 — ABC Correction Zone (ABC)
Is the market currently in a corrective phase following a completed impulse?
Corrections within trends offer the best risk/reward entries
Factor 3 — Price in Fibonacci Golden Zone (FIB)
Is price currently inside an active Golden Zone box (between 38.2% and 61.8% retracement)?
Golden Zone entries have institutional backing
Factor 4 — Price at Specific Fibonacci Level (FLV)
Is price at or near the 38.2%, 50.0%, or 61.8% retracement level specifically?
Precision Fibonacci entries add edge beyond just being "in the zone"
Factor 5 — Momentum Alignment (MOM)
Are RSI slope, MACD direction, MACD histogram momentum, and Stochastic all aligned in the signal direction?
Requires at least 2 of 5 momentum sub-factors to confirm
Factor 6 — RSI Divergence (DIV)
Is a confirmed RSI divergence present (price makes new low but RSI makes higher low, or vice versa)?
Divergence is one of the most reliable reversal confirmation signals
Factor 7 — Volume Confirmation (VOL)
Is current volume above the moving average with a candle closing in the signal direction?
Volume validates institutional participation in the move
Factor 8 — EMA Trend Alignment (EMA)
Are the Fast (21), Medium (50), and Slow (200) EMAs properly stacked in the signal direction?
Or is price at least above/below the 200 EMA with Fast above/below Medium?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Confidence Scoring & Grade System
Beyond the 8-factor confluence count, each signal receives a weighted confidence score from 0 to 100% that reflects the quality and strength of the setup:
Wave Structure (up to 22 points)
Wave 3 Setup present = 22 points (highest single contributor)
ABC Correction active = 12 points
Fibonacci Alignment (up to 22 points)
Price inside Golden Zone = 15 points
Price at 61.8% level = 7 points, at 50.0% = 5 points, at 38.2% = 4 points
Momentum Confirmation (up to 23 points)
Momentum aligned (2+ sub-factors) = 12 points
Strong momentum (4+ sub-factors) = additional 6 points
MACD crossover on signal bar = 5 points
RSI Analysis (up to 14 points)
RSI divergence confirmed = 10 points
RSI slope in ideal range = 4 points
RSI already at opposite extreme (penalty) = -5 points
Volume & Trend (up to 20 points)
Volume above average + directional candle = 5 points
Volume spike + directional candle = 3 points
Full EMA alignment (Fast > Medium > Slow or reverse) = 8 points
Cloud direction confirmed = 4 points
Signals are classified into grades based on the final confidence score:
A+ Grade (70%+) — Exceptional setup. Maximum confluence across wave structure, Fibonacci, momentum, and trend.
A Grade (55–69%) — High-quality setup. Most major factors aligned.
B Grade (40–54%) — Solid setup. Core conditions met with moderate confirmation.
C Grade (25–39%) — Marginal setup. Basic conditions met but weaker confirmation. Hidden by default.
D Grade (below 25%) — Weak setup. Minimal confluence. Hidden by default.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Signal Labels — What They Show
Each entry signal label displays comprehensive information in a compact format:
Direction — ▲ LONG or ▼ SHORT with spaced lettering
Grade — A+, A, B, C, or D classification
Confidence Percentage — The weighted score from the confidence engine
Confluence Count — How many of the 8 factors are active (e.g., 5/8)
Active Factor Checklist — Shows exactly which factors contributed: ✓W3 ✓ABC ✓FIB ✓FLV ✓MOM ✓DIV ✓VOL ✓EMA
Label colors follow the grade system:
Bull signals — Bright green (A+), Primary green (A), Dim green (B), Neutral gray (C/D). All use dark text for readability.
Bear signals — Bright red (A+), Primary red (A), Dim red (B), Neutral gray (C/D). All use white text for readability.
A thin dotted line connects the signal label to the price bar, keeping the label offset from price action to avoid chart clutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Smart SL/TP System — Structure-Based Risk Management
Every entry signal automatically generates three trade management levels — Stop Loss, Target 1, and Target 2 — using a multi-source calculation engine that prioritizes structural price levels over arbitrary ATR multiples.
Stop Loss Calculation
The SL engine searches for the optimal stop placement using this priority cascade:
Nearest swing structure — Finds the closest confirmed swing low (for longs) or swing high (for shorts) within a 50-bar lookback. Places the SL beyond this level with ATR padding.
ATR floor and cap — Ensures the SL is never too tight (70% of base ATR multiple) or too wide (180% of base ATR multiple) regardless of swing structure.
Confidence modifier — Higher-grade signals receive tighter stops (0.85× for A+, 0.92× for A, 1.0× for B, 1.15× for C/D). This reflects the higher-probability nature of strong setups.
Target 1 Calculation
TP1 represents the conservative take-profit level:
Nearest opposing swing — Searches for the closest swing high above entry (longs) or swing low below entry (shorts) that provides at least 1.2× the SL distance.
Fibonacci level targeting — If an active Fibonacci zone has a 38.2% or 50.0% level above/below entry that provides better targeting than the swing level, the Fib level is used.
Minimum R:R enforcement — TP1 is guaranteed to provide at least the configured ATR multiple (default 2.5×) of risk-reward.
Target 2 Calculation
TP2 represents the extended profit target:
Wave-based projection — If an impulse wave is active, TP2 is calculated as 61.8% of the total impulse range — representing the typical next-wave target.
Far swing structure — Searches for swing levels further than TP1 that provide at least 1.3× the TP1 distance.
Fibonacci extension — If the 61.8% Fibonacci level provides a target beyond TP1, it is used as TP2.
Minimum spacing — TP2 is guaranteed to be at least 1.5× the TP1 distance from entry.
Break-Even Protection
When TP1 is hit, the system automatically adjusts the Stop Loss to the entry price (break-even). The SL label changes to "BE" with a neutral color, visually confirming that the trade is now risk-free on the remaining position targeting TP2.
Hit Tracking
All SL/TP levels are tracked in real-time:
When a level is hit, the label changes color — red fill for SL hits, green fill for TP hits
SL hits are processed first — if the SL is hit, TP levels for that trade are no longer tracked
TP1 must be hit before TP2 tracking activates the break-even mechanism
Historical SL/TP groups are automatically trimmed to keep the chart clean (configurable history count)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Trend Context Layer
Three independent trend analysis systems provide structural context:
Triple EMA System
Fast EMA (21) — Yellow-green crosses. Immediate momentum reference.
Medium EMA (50) — Gray line. Intermediate trend filter.
Slow EMA (200) — Dark gray, thicker line. Macro structural backbone used in confidence scoring.
When all three are properly stacked (Fast > Medium > Slow for bullish, reverse for bearish), trend alignment scores maximum points.
Trend Cloud
Calculated from the midpoints of the highest high / lowest low over fast (9) and slow (26) periods
When the fast midpoint is above the slow midpoint, the cloud fills green — bullish bias
When below, the cloud fills red — bearish bias
Cloud direction adds 4 points to the confidence score when aligned with the signal
RSI Divergence System
Detects classical RSI divergence using pivot-based comparison
Bullish divergence — price makes a lower low but RSI makes a higher low
Bearish divergence — price makes a higher high but RSI makes a lower high
Divergence must occur within a valid lookback window (5–50 bars between pivots) and be recent (within 3 bars of the current RSI pivot)
Marked with small diamond shapes — green below bar for bullish, red above bar for bearish
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Momentum Engine
The momentum engine combines four oscillator systems into a unified momentum score:
RSI Slope — Smoothed RSI direction over 2 bars. Bullish when RSI is between 40–75 and rising. Bearish when RSI is between 25–60 and falling.
MACD Direction — MACD Line above Signal Line = bullish, below = bearish.
MACD Histogram Momentum — Histogram increasing = bullish momentum, decreasing = bearish momentum.
Stochastic Alignment — %K above %D with room to run (below 80) = bullish. %K below %D with room to fall (above 20) = bearish.
MACD Crossover — Fresh MACD crossover on the signal bar adds additional confirmation.
Scores of 2+ out of 5 confirm momentum alignment. Scores of 4+ indicate strong momentum — adding bonus points to the confidence score.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Dashboard Intelligence
A comprehensive 3-column AlphaX-branded dashboard provides real-time analysis across all engine layers:
Wave & Fibonacci Status
Current wave phase — Impulse 1–5 (detected/active), Corrective ABC, or Scanning
Wave trend direction — Bullish or Bearish impulse context
Fibonacci status — In Golden Zone, at specific level, or no active zone
Active Fibonacci zone count
Momentum & Trend
Momentum state — Strong Bull/Bear, Bullish/Bearish, or Flat
Bull/Bear sub-factor scores (e.g., 3▲ 1▼)
EMA trend alignment — Bull Aligned, Bear Aligned, or Mixed
Price position relative to 200 EMA
Cloud direction — Bullish, Bearish, or Flat
Volume & Oscillators
Relative volume — Spike, High, Normal, or Dry with exact ratio
RSI state — Overbought, Oversold, Rising, Falling, or Neutral with numeric value
Confluence & Verdict
Bull confluence score — count out of 8, confidence percentage, and letter grade
Bear confluence score — count out of 8, confidence percentage, and letter grade
Verdict — the engine's overall assessment: High Confidence Long, High Confidence Short, Lean Long/Short with Caution, Mixed — Stand Aside, or No Clear Edge
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX Wave — Step by Step
Step 1 — Identify the Wave Structure
Look for completed impulse patterns (numbered 0–5 on the chart)
Check the Dashboard: What is the current Wave Phase?
If "SCANNING" — no valid wave structure detected yet. Wait for pattern formation.
Step 2 — Wait for Correction or Wave 3 Setup
After an impulse completes, watch for the "ABC CORRECTION ZONE" label — this is where the market is pulling back within the trend
Watch for Wave 3 Setup triangles (▲/▼) — these mark the beginning of the strongest wave
Check if price is entering a Fibonacci Golden Zone (purple shaded box)
Step 3 — Enter on Confluence Signal
Wait for a graded entry label (▲ LONG or ▼ SHORT) to appear
Check the grade — A+ and A signals have the highest probability
Review the factor checklist — more ✓ marks = stronger setup
The SL and TP levels are automatically plotted for immediate trade management
Step 4 — Manage the Trade
Monitor the SL/TP levels on the chart — they update automatically
When TP1 is hit, the label lights up green and the SL moves to break-even
Hold the remaining position for TP2 risk-free
If SL is hit first, the label turns red — accept the loss and wait for the next setup
Step 5 — Read the Verdict
The Dashboard Verdict row summarizes the engine's real-time assessment
"HIGH CONFIDENCE LONG/SHORT" — all systems aligned, actively look for entries
"LEAN LONG/SHORT — CAUTION" — some alignment but not full, trade with reduced size
"MIXED — STAND ASIDE" — conflicting signals, do not trade
"NO CLEAR EDGE" — insufficient data, wait for structure to develop
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ When NOT to Trade — Reading the Warning Signs
Dashboard shows "SCANNING" — No valid wave structure detected. The market may be in a complex correction or transition phase.
Verdict shows "MIXED — STAND ASIDE" — Bull and bear confluence are both active simultaneously. Conflicting signals cancel each other.
Cloud is flat or rapidly switching colors — No established trend direction. Signals during cloud transitions are less reliable.
EMAs are tangled and flat — Range-bound market. Wave patterns in choppy conditions produce lower-quality signals.
Only C or D grade signals appearing — Insufficient confluence. These grades are hidden by default for a reason.
RSI showing "OVERBOUGHT" on a long signal — The confidence engine already penalizes this (-5 points), but it is worth noting visually as well.
Volume showing "DRY" — Low-volume environments reduce the reliability of all technical patterns including waves.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
🔬 Automated Elliott Wave impulse detection (1–5) with strict rule validation
📐 ABC corrective pattern recognition with retracement depth validation
🎯 Wave 3 Setup Scanner — identifies the strongest wave initiation points
📊 Fibonacci Golden Zone projection with intelligent lifecycle management
🧠 8-factor confluence scoring — Wave, ABC, Fibonacci, Fibonacci Level, Momentum, Divergence, Volume, EMA
📈 Weighted confidence scoring (0–100%) with A+ through D grade classification
▲▼ Detailed signal labels showing grade, confidence, confluence count, and active factor checklist
🎯 Structure-based SL/TP system — swing levels, Fibonacci targets, and wave projections
🛡 Automatic break-even protection when TP1 is hit
📊 Real-time hit tracking with visual color changes on SL/TP labels
☁ Trend Cloud with gradient fill for instant directional bias
📐 Triple EMA system (21/50/200) for structural trend context
💎 RSI divergence detection with pivot-based validation
📊 Multi-oscillator momentum engine (RSI, MACD, Stochastic)
📊 Volume spike detection with configurable multiplier
📐 Comprehensive 3-column dashboard with verdict system
🎨 Cohesive triple-tone color theme — Green for bull, Red for bear, Purple for wave structure
🔔 10 alert conditions — signals, impulses, corrections, Wave 3 setups, and divergences
⚙ Fully configurable — wave detection, Fibonacci, momentum, signals, SL/TP, and all visuals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Wave Detection
Swing Detection Length — Pivot lookback for identifying swing highs and lows (default: 6)
Show Wave Count Labels — Toggle the numbered 0–5 labels on impulse waves
Show Wave Structure Lines — Toggle the connecting lines between wave points
Show Impulse Completion — Toggle the "IMPULSE COMPLETE" notification labels
Show Corrective Patterns — Toggle the "ABC CORRECTION ZONE" labels
Show Wave 3 Setup Markers — Toggle the purple triangle markers
Wave Pattern Cooldown — Minimum bars between wave pattern detections (default: 18)
Fibonacci
Show Fib Golden Zone Boxes — Toggle the shaded 38.2%–61.8% retracement zone
Max Fib Zone Boxes — Maximum simultaneous Golden Zones (default: 3)
Fib Zone Max Age — Bars before a zone auto-expires (default: 80)
Momentum
RSI Length / Smoothing — Core RSI calculation parameters
MACD Fast / Slow / Signal — MACD oscillator parameters
Show RSI Divergence — Toggle divergence diamond markers
Volume
Volume MA Length — Baseline period for volume comparison (default: 20)
Volume Spike Multiplier — Threshold for spike detection (default: 1.6×)
Show Volume Spike Dots — Toggle volume spike indicators at bar bottom
EMA Settings
Fast / Medium / Slow EMA — Independently toggle visibility and set periods
Defaults: 21 / 50 / 200
Trend Cloud
Show Trend Cloud — Toggle the gradient cloud fill
Cloud Fast / Slow Length — Midpoint calculation periods (default: 9 / 26)
Confluence Engine
Min Confluence Score — Minimum factors required for a signal (default: 3 of 8)
Show Entry Signals — Toggle signal labels
Signal Cooldown — Minimum bars between signals (default: 10)
Signal Label Offset — Distance below/above bar in ATR units (default: 3.0)
Show Grade C / D Signals — Toggle lower-quality signal visibility (default: off)
SL / TP
Show Stop Loss & Targets — Toggle all SL/TP visual elements
Stop Loss (× ATR) — Base ATR multiple for stop loss calculation (default: 2.0)
Target 1 (× ATR) — Base ATR multiple for conservative target (default: 2.5)
Target 2 (× ATR) — Base ATR multiple for extended target (default: 5.0)
Limit SL/TP History — Cap the number of visible historical trade levels
SL/TP History Count — Maximum trade groups shown (default: 8)
Move SL to Break Even after TP1 — Enable/disable break-even protection
Display
Show Dashboard — Toggle the information panel
Dashboard Position — Top Right, Top Left, Bottom Right, Bottom Left
Dashboard Text Size — Tiny, Small, Normal
Dashboard Background — Background color for the panel
Theme Colors
Bull Primary / Bright / Dim — Green family for bullish elements
Bear Primary / Bright / Dim — Red family for bearish elements
Wave Primary / Bright / Dim — Purple family for wave structure elements
Fibonacci Levels / Dim — Purple-pink family for Fibonacci zones
EMA colors — Fast (green), Medium (gray), Slow (dark gray)
Neutral — Gray for inactive/mixed states
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions
Wave Long Signal — Fires when a graded bullish entry signal appears
Wave Short Signal — Fires when a graded bearish entry signal appears
Bullish Impulse Complete — Fires when a full 1–5 bullish impulse is detected
Bearish Impulse Complete — Fires when a full 1–5 bearish impulse is detected
Wave 3 Bull Setup — Fires when a bullish Wave 3 initiation pattern is detected
Wave 3 Bear Setup — Fires when a bearish Wave 3 initiation pattern is detected
RSI Bull Divergence — Fires when bullish RSI divergence is confirmed
RSI Bear Divergence — Fires when bearish RSI divergence is confirmed
Bullish ABC Correction — Fires when a bullish corrective zone is identified
Bearish ABC Correction — Fires when a bearish corrective zone is identified
All alert messages include {{ticker}} and {{interval}} placeholders for clean webhook integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Default Settings — Optimized For
The default configuration is tuned for XAUUSD (Gold) and major instruments on the 5-minute to 1-hour timeframes :
Swing Length at 6 captures wave structure without excessive lag on intraday charts
Minimum confluence at 3/8 ensures signals have meaningful multi-factor backing
Signal cooldown at 10 bars prevents rapid-fire signals during volatile wave transitions
SL at 2.0 ATR with structure-based adjustment provides adaptive risk sizing
TP1 at 2.5 ATR and TP2 at 5.0 ATR provide minimum 1.25R and 2.5R risk-reward ratios
Break-even protection ensures profitable trades are protected after TP1
Grade C and D signals hidden by default to maintain signal quality
For other instruments or timeframes, adjust:
Higher timeframes (4H, Daily) — Increase Swing Length to 8–14, increase Wave Cooldown to 30–50, increase SL/TP ATR multiples
Lower timeframes (1m) — Reduce Swing Length to 4–5, reduce Signal Cooldown to 5–7, increase Min Confluence to 4
Forex majors — Use defaults, optionally reduce Swing Length to 5 for tighter wave detection
Crypto — Increase Swing Length to 8–10 (higher volatility), increase SL ATR multiple to 2.5–3.0
Fewer, higher-quality signals — Increase Min Confluence to 4–5, increase Signal Cooldown, hide Grade C/D
More signals — Reduce Min Confluence to 2, enable Grade C signals, reduce cooldown
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📐 Elliott Wave Practitioners — Automated wave counting with strict rule validation eliminates subjective bias
📊 Fibonacci Traders — Automatic Golden Zone projection with lifecycle management removes manual drawing
🥇 Gold & Forex Intraday Traders — Optimized for instruments with clean wave structures on fast timeframes
🧠 Systematic Traders — The 8-factor confluence + weighted confidence system provides a fully quantitative framework
🎯 Traders who want complete trade plans — Entry, SL, TP1, TP2, and break-even all generated automatically
📈 Traders learning Elliott Wave — The visual wave labels and structure lines serve as an educational overlay
⚠ Traders who struggle with exit management — The SL/TP system with hit tracking and break-even automation removes emotional decision-making
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Wave detection uses confirmed pivot points (offset by the swing length) — wave labels appear after structural confirmation, not in real-time. This prevents repainting.
The indicator requires sufficient bar history to populate swing buffers — allow at least 100+ bars of data before expecting wave pattern detection
Elliott Wave rules are applied as mathematical approximations of the classical theory — certain complex wave structures (extended waves, truncations, diagonal triangles) may not be detected
SL/TP levels are calculated at signal time and do not adjust afterward (except the break-even mechanism on TP1 hit)
Maximum 500 labels, 500 lines, and 500 boxes are used — on very low timeframes with extended history and many signals, oldest drawings may be automatically removed by PulseWire's rendering limits
The SL/TP history is automatically trimmed to the configured limit (default 8 trade groups = 24 labels/lines) to stay within PulseWire's drawing limits
All confluence factors and confidence scores are recalculated on every bar — the dashboard reflects the current bar's state, not the last signal's state
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Elliott Wave patterns, Fibonacci levels, and all signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Elliott Wave theory is inherently subjective and interpretive; automated detection provides one possible wave count among many valid alternatives. Past wave patterns and signal performance do not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who demand clarity, confidence, and precision from their charts. Indicator

Indicator

Viprasol Sniper Confluence Entry/Exit## Overview
The Sniper Confluence Entry/Exit indicator builds on Sniper Entry/Exit with SL&TP by , which provided EMA crossover signals with ATR-based stop-loss/take-profit levels, a VWAP overlay, RSI/MACD display, and retest candle highlighting. This version adds a 7-factor confluence scoring engine that gates every signal — crossovers only fire when multiple technical factors align, dramatically reducing false entries. Built for swing and intraday traders who want clean, high-probability setups with automatic risk management.
## How It Works
**Signal Generation (from original):**
Entries are triggered by a Fast EMA / Slow EMA crossover. When the fast EMA crosses above the slow EMA, a long signal is generated; when it crosses below, a short signal is generated. The original script displayed these crossovers alongside supporting indicators (VWAP, RSI, MACD) but did not require them to agree before firing a signal.
**7-Factor Confluence Engine (new):**
This version adds a scoring layer that sits between the crossover and the signal output. Each bar, the indicator evaluates 7 independent factors and assigns 1 point for each that confirms the trade direction. A signal only fires when the total score meets your minimum threshold (default: 4/7).
Scoring logic (pseudocode):
```
confluenceScore = 0
// Factor 1: Price vs VWAP
if (long and close > vwap) or (short and close < vwap) → score += 1
// Factor 2: RSI direction
if (long and rsi > 50) or (short and rsi < 50) → score += 1
// Factor 3: MACD trend
if (long and macdLine > signalLine) or (short and macdLine < signalLine) → score += 1
// Factor 4: EMA alignment
if (long and fastEMA > slowEMA) or (short and fastEMA < slowEMA) → score += 1
// Factor 5: ADX + directional index
if adx > 25 and ((long and diPlus > diMinus) or (short and diMinus > diPlus)) → score += 1
// Factor 6: Volume confirmation
if volume > volumeSMA and ((long and close > open) or (short and close < open)) → score += 1
// Factor 7: Secondary timeframe RSI
if (long and secondaryRSI > 50) or (short and secondaryRSI < 50) → score += 1
signal fires only if confluenceScore >= minimumScore
```
A score of 5/7 or higher typically indicates a strong, well-supported setup. The configurable minimum lets you tune signal frequency vs. quality.
**Bar-Close Confirmation (new):**
When enabled, signals are delayed until the bar closes, preventing premature entries from intra-bar wicks that reverse before close.
**ATR-Based Stop-Loss & Take-Profit (from original, extended):**
The original calculated a single stop-loss and take-profit from ATR. This version extends that to:
- **Stop-Loss** — ATR multiplied by your chosen risk factor (same core logic as original)
- **Take-Profit Levels (1-5)** — Configurable number of TP levels at 1R, 2R, 3R, 4R, 5R distances (new — original had fixed levels)
- **Trailing Stop to Breakeven** — Optionally moves SL to entry price once TP1 is hit (new)
**Retest Candle Highlighting (from original):**
Bars that pull back to the fast EMA after a signal are highlighted in orange, marking potential add-on or re-entry opportunities.
**Secondary Timeframe RSI (from original, extended):**
The original included a secondary timeframe RSI hardcoded to the 5-minute chart. This version makes the timeframe user-configurable.
## Key Features
**From the Original:**
- EMA crossover signal generation (fast/slow EMA)
- ATR-based stop-loss and take-profit calculation
- VWAP overlay with directional coloring
- RSI and MACD display
- Retest candle highlighting at EMA pullbacks
- Secondary timeframe RSI confirmation
**Added in This Version:**
- 7-factor confluence scoring engine with configurable minimum score threshold
- Bar-close confirmation filter to prevent wick-driven false entries
- Trailing stop-loss to breakeven after TP1 is hit
- Configurable number of take-profit levels (1-5, was fixed)
- Configurable secondary timeframe (was hardcoded to 5m)
- SL label showing breakeven status when trailing is active
- 5 alert conditions with dynamic messages
- Full dashboard showing all 7 confluence factors, position status, and targets hit
## How to Use
**Setup:**
1. Add to any chart (works on all markets and timeframes)
2. Set your preferred EMA periods (default: 9/21)
3. Adjust the minimum confluence score — higher = fewer signals, better quality
4. Set your ATR multiplier for stop-loss width
**Reading Signals:**
- **LONG label** appears below bar when bullish crossover fires with sufficient confluence
- **SHORT label** appears above bar when bearish crossover fires with sufficient confluence
- Blue line = Entry, Red line = Stop-Loss, Green dashed lines = Take-Profit levels
- Lines turn turquoise when their target is hit
- Orange candles indicate price retesting the fast EMA (potential add-on opportunity)
**Dashboard:**
The side panel shows real-time scores for all 7 factors plus current position info, targets hit, and SL status.
**Recommended Starting Settings:**
- Scalping (1m-5m): Fast EMA 5, Slow EMA 13, Min Score 5, ATR Mult 1.0
- Intraday (15m-1H): Fast EMA 9, Slow EMA 21, Min Score 4, ATR Mult 1.5
- Swing (4H-1D): Fast EMA 9, Slow EMA 21, Min Score 4, ATR Mult 2.0
## Settings
**Signal Settings:** Fast/Slow EMA periods and bar-close confirmation toggle.
**Confluence Filter:** Enable/disable the score filter and set the minimum threshold.
**Risk Management:** ATR period, SL multiplier, number of TP levels, and breakeven trailing toggle.
**Secondary Timeframe:** Choose which timeframe provides the secondary RSI confirmation.
**Dashboard:** Position, font size, and show/hide toggle.
**Visuals:** Toggle EMA ribbon, VWAP, TP/SL lines, retest highlighting, label sizes and offsets.
## Alerts
1. **Long Entry Signal** — Fires when a bullish confluence entry triggers
2. **Short Entry Signal** — Fires when a bearish confluence entry triggers
3. **Any Entry Signal** — Fires on either long or short entry
4. **Strong Bull Bias** — Fires when bull confluence score crosses above 70%
5. **Strong Bear Bias** — Fires when bear confluence score crosses above 70%
All alerts include {{ticker}}, {{close}}, and {{interval}} for dynamic notification messages.
## Limitations & Disclaimer
- EMA crossover signals are inherently lagging — they work best in trending markets and may produce whipsaws during consolidation
- The confluence score uses current-bar values; in fast markets, conditions can change quickly
- The secondary timeframe RSI uses `request.security()` which may repaint on the current bar of that timeframe
- TP/SL levels are visual guides — they do not execute trades automatically
- Past performance of any signal system does not guarantee future results
- This indicator is for educational and analytical purposes only — it is not financial advice. Always use proper risk management and do your own analysis before trading.
## Credits & Attribution
This indicator is derived from **"Sniper Entry/Exit with SL&TP (open-source, PulseWire). The following components originate from that script:
- EMA crossover signal generation logic
- ATR-based stop-loss and take-profit calculation
- VWAP overlay
- RSI and MACD display
- Retest candle highlighting concept
- Secondary timeframe RSI (originally hardcoded to 5m)
Viprasol additions: 7-factor confluence scoring engine, bar-close confirmation, trailing stop to breakeven, configurable TP levels (1-5), configurable secondary timeframe, breakeven status labels, alert conditions, and dashboard.
Indicator

Indicator

The Great Anchors: Dual AVWAP Powered by RSI
The Great Anchors
*Dual Anchored Volume Weighted Average Price Powered by RSI*
---
📌 Overview
The Great Anchors is a dual AVWAP-based indicator that resets dynamically using RSI extremes — either from the current asset or a master symbol (e.g., BTCUSDT). It identifies meaningful shifts in price structure and momentum using these "anchored" levels.
It’s designed to help traders spot trend continuations, momentum inflection points, and entry signals aligned with overbought/oversold conditions — but only when the market confirms through volume-weighted price direction.
---
🛠 Core Logic
• AVWAP 1 (favwap): Anchored when RSI reaches overbought levels (top anchor)
• AVWAP 2 (savwap): Anchored when RSI reaches oversold levels (bottom anchor)
• AVWAPs are recalculated each time a new OB/OS condition is triggered — acting like "fresh anchors" at key market turning points.
---
⚙️ Key Features
🔁 Auto or Manual RSI Thresholds
→ Automatically determines dynamic RSI OB/OS levels based on past peaks and troughs, or lets you set fixed levels.
🧠 Master Symbol Control
→ Use the RSI of a separate asset (like BTCUSDT, ETHUSDT, SOLUSDT, BNBUSDT, SUPRAUSDT) or indices (like TOTAL, TOTAL2, BFR) to control resets — ideal for tracking how BTC/major coins impacts altcoins/others.
🔍 Trend-Filtering Signal Logic
→ Signals are filtered for less noise and are triggered when:
- Both AVWAPs are rising (bullish) or falling (bearish)
- Price action confirms the structure
🎯 Visual Markers & Alerts
→ "💥" for bullish signals and "🔥" for bearish ones. Alerts included for automation or push notifications.
---
🎯 How to Use It
1. Add the indicator to your chart.
2. Choose whether to use RSI from the current symbol or a master symbol (e.g., BTC).
3. Select auto-adjusted or manual OB/OS levels.
4. Watch for:
- AVWAP(s) making a significant change (at this point it's one of the AVWAPs resetting)
- Check if price flip it upwards or downwards
- If price goes above both AVWAPs thats a likely bullish trend
- If price can't go above both AVWAPs up and fall bellow both that's a likely bearish trend
- Price retesting upper AVWAP and bounce
- likely bullish continuation
- Price retesting lower AVWAP and dip
- likely bearish continuation
- Signal icons on chart ("💥 - Bullish" or "🔥- Bearish")
Best suited for:
• Swing traders
• Momentum traders
• Traders timing altcoin entries using BTC/Major asset's RSI
---
🔔 Signal Explanation
💥 Bullish Signal =
• Both AVWAPs rising
• Higher lows in price structure
• Bullish candle close
• Triggered from overbought RSI reset
🔥 Bearish Signal =
• Both AVWAPs falling
• Lower highs in price structure
• Bearish candle close
• Triggered from oversold RSI reset
Signals reset by opposite signals to prevent noise or overfitting.
---
⚠️ Tips & Notes
• Use AVWAPs as dynamic support/resistance, even without signal triggers
• Pair with volume or divergence tools for stronger confirmation
---
🧩 Credits & Philosophy
This tool is built with a simple philosophy:
"Anchor your trades to meaningful moments in price — not arbitrary time."
The dual AVWAP concept helps you see how price reacts after momentum peaks, giving you a cleaner bias and more precise trade setups.
--- Indicator

Indicator

Relative Risk MetricOVERVIEW
The Relative Risk Metric is designed to provide a relative measure of an asset's price, within a specified range, over a log scale.
PURPOSE
Relative Position Assessment: Visualizes where the current price stands within a user-defined range, adjusted for log scale.
Logarithmic Transformation: Utilizes the natural log to account for a log scale of prices, offering a more accurate representation of relative positions.
Calculation: The indicator calculates a normalized value via the function Relative Price = / log(UpperBound) − log(LowerBound) . The result is a value between 0 and 1, where 0 corresponds to the lower bound and 1 corresponds to the upper bound on a log scale.
VISUALIZATION
The indicator plots three series:
Risk Metric - a plot of the risk metric value that’s computed from an asset's relative price so that it lies within a logarithmic range between 0.0 & 1.0.
Smoothed Risk Metric - a plot of the risk metric that’s been smoothed.
Entry/Exit - a scatter plot for identified entry and exit. Values are expressed as percent and are coded as red being exit and green being entity. E.g., a red dot at 0.02 implies exit 2% of the held asset. A green dot at 0.01 implies use 1% of a designated capital reserve.
USAGE
Risk Metric
The risk metric transformation function has several parameters. These control aspects such as decay, sensitivity, bounds and time offset.
Decay - Acts as an exponent multiplier and controls how quickly dynamic bounds change as a function of the bar_index.
Time Offset - provides a centering effect of the exponential transformation relative to the current bar_index.
Sensitivity - controls how sensitive to time the dynamic bound adjustments should be.
Baseline control - Serves as an additive offset for dynamic bounds computation which ensures that bounds never become too small or negative.
UpperBound - provides headroom to accomodate growth an assets price from the baseline. For example, an upperbound of 3.5 accommodates a 3.5x growth from the baseline value (e.g., $100 -> $350).
LowerBound - provides log scale compression such that the overall metric provides meaningful insights for prices well below the average whilst avoiding extreme scaling. A lowerbound of 0.25 corresponds to a price that is approx one quarter of a normalised baseline in a log context.
Weighted Entry/Exit
This feature provides a weighted system for identifying DCA entry and exit. This weighting mechanism adjusts the metric's interpretation to highlight conditions based on dynamic thresholds and user-defined parameters to identify high-probability zones for entry/exit actions and provide risk-adjusted insights.
Weighting Parameters
The weighting function supports fine-tuning of the computed weighted entry/exit values
Base: determines the foundational multiplier for weighting the entry/exit value. A higher base amplifies the weighting effect, making the weighted values more pronounced. It acts as a scaling factor to control the overall magnitude of the weighting.
Exponent: adjusts the curve of the weighting function. Higher exponent values increase sensitivity, emphasizing differences between risk metric values near the entry or exit thresholds. This creates a steeper gradient for the computed entry/exit value making it more responsive to subtle shifts in risk levels.
Cut Off: specifies the maximum percentage (expressed as a fraction of 1.0) that the weighted entry/exit value can reach. This cap ensures the metric remains within a meaningful range and avoids skewing
Exit condition: Defines a threshold for exit. When the risk metric is below the exit threshold (but above the entry threshold) then entry/exit is neutral.
Entry condition: Defines a threshold for entry. When the risk metric is above the entry threshold (but below the exit threshold) then entry/exit is neutral.
Weighting Behaviour
For entry conditions - value is more heavily weighted as the metric approaches the entry threshold, emphasizing lower risk levels.
For exit conditions - value is more heavily weighted as the metric nears the exit threshold, emphasizing increased risk levels.
USE-CASES
Identifying potential overbought or oversold conditions within the specified logarithmic range.
Assisting in assessing how the current price compares to historical price levels on a logarithmic scale.
Guiding decision-making processes by providing insights into the relative positioning of prices within a log context
CONSIDERATIONS
Validation: It's recommended that backtesting over historical data be done before acting on any identified entry/exit values.
User Discretion: This indicator focus on price risk. Consider other risk factors and general market conditions as well.
Indicator

Chandelier Exit Pro w/ExtensionsChandelier Exit Pro w/Extensions
The Chandelier Exit Pro w/Extensions indicator is designed to assist traders in managing risk and identifying trend reversals. The strategy is based on the Chandelier Exit concept, originally created by Charles Le Beau. It uses the Average True Range (ATR) to calculate dynamic stop levels that adjust based on market volatility. This script not only implements the standard Chandelier Exit, but also introduces extension levels and alerts to enhance decision-making.
Key Features:
➡️Dynamic Stop Levels: The indicator calculates stop levels for both long and short positions based on an ATR multiple. This allows traders to determine exit points by monitoring when the price crosses above or below these levels. These levels adapt in real-time based on price volatility, making them a versatile tool for trend-following strategies.
➡️Extension Levels: In addition to the primary stop levels, the script includes extension levels for more advanced stop-loss management. Traders can view active and extension levels separately, providing more flexibility in their exit strategies.
➡️Labels and Visual Cues: The indicator provides dynamic labels that automatically update and follow the plotted stop levels. Labels include the ATR multiplier value (e.g., "2.5" or "2.5ext"), clearly showing the significance of each level. When price crosses below or above a level, the corresponding label is highlighted, aiding traders in quickly identifying the most relevant stop level.
➡️Bar Confirmation and Alerts: The script includes an "await bar confirmation" option to ensure that the stop levels and alerts only trigger after the bar has closed. Alerts are customizable and will notify traders when price crosses critical levels, helping to make timely decisions without the need to constantly monitor charts.
➡️Multiple ATR Levels for Enhanced Precision: The indicator supports up to four different ATR levels, each with customizable multipliers. This allows traders to set different thresholds for exits based on varying degrees of volatility. For example, Level 1 (2.5x ATR) might represent a tighter stop, while Level 4 (10x ATR) could serve as a wider stop for long-term positions.
➡️Calc_bars_count: Improves efficiency of the indicator by reducing the on-chart calculations in to the past. This input can be found at the bottom of the INPUTS tab.
How it Helps Traders:
💥Trend Identification: By using the Chandelier Exit levels, traders can identify when the trend is likely to reverse. When the price crosses below the stop level in a long trade or above the stop level in a short trade, it signals a potential exit point.
💥Volatility-based Adjustments: Unlike static stop-loss methods, the ATR-based stop levels dynamically adjust based on the market’s volatility. This means tighter stops during low volatility periods and wider stops during high volatility periods, reducing the chance of being stopped out prematurely.
💥Risk Management: The dynamic stop levels and extension levels provide a structured way to manage risk. Traders can set tighter stops for short-term trades and wider stops for longer-term trades. The script's visual labels make it easy to track these levels in real-time.
💥Automation with Alerts: The built-in alert system ensures that traders are notified when key levels are crossed. This helps to avoid emotional decision-making and allows for better execution of trading strategies.
Confluence and Price Fluidity:
One of the powerful ways to enhance the effectiveness of the Chandelier Exit indicator is by using it in conjunction with other technical analysis tools to create confluence. Confluence occurs when multiple indicators or price action signals align, providing stronger confirmation for a trade decision. For example:
🎯Support and Resistance Levels: Traders can use the Chandelier Exit levels in combination with key support and resistance zones. If the price is nearing a support level and the Chandelier Exit signals a bullish reversal, this alignment strengthens the case for entering a long position.
🎯Moving Averages: When the Chandelier Exit signals a trend reversal and this is confirmed by a crossover in moving averages (such as a 50-day and 200-day moving average), traders gain additional confidence in the trade direction.
🎯Momentum Indicators: Traders can also look for momentum indicators like RSI or MACD to confirm the strength of a trend or potential reversal. For instance, if the Chandelier Exit triggers a short signal and the RSI also shows overbought conditions, this could provide stronger confirmation to exit a long trade or enter a short position.
🎯Candlestick Patterns: Price fluidity can be monitored using candlestick formations. For example, a bearish engulfing pattern near a Chandelier Exit resistance level offers confluence, adding confidence to the signal to close or short the trade.
By combining the Chandelier Exit with other tools, traders ensure that they are not relying on a single indicator. This layered approach can reduce the likelihood of false signals and improve overall trading accuracy.
Practical Use Case:
Imagine a trader enters a long position, and the price moves favorably. Using the Chandelier Exit, the trader sets the initial stop level at 2.5x ATR below the highest close. As the price continues to rise, the stop level follows the price, locking in profits. If the market suddenly turns, the price crossing below the stop level signals an exit, helping the trader preserve gains. With extension levels, the trader can further refine exits, adjusting based on their risk tolerance and market conditions.
Good luck and I hope that you can find a place in your tool bag to use this dynamic indicator 🙏 Indicator

Indicator

+ Average Candle Bodies RangeACBR, or, Average Candle Bodies Range is a volatility and momentum indicator designed to indicate periods of increasing volatility and/or momentum. The genesis of the idea formed from my pondering what a trend trader is really looking for in terms of a volatility indicator. Most indicators I've come across haven't, in my opinion, done a satisfactory job of highlighting this. I kept thinking about the ATR (I use it for stops and targets) but I realized I didn't care about highs or lows in regards to a candle's volatility or momentum, nor do I care about their relation to a previous close. What really matters to me is candle body expansion. That is all. So, I created this.
ACBR is extremely simple at its heart. I made it more complicated of course, because why would I want anything for myself to be simple? Originally it was envisaged to be a simple volatility indicator highlighting areas of increasing and decreasing volatility. Then I decided some folks might want an indicator that could show this in a directional manner, i.e., an oscillator, so I spent some more hours tackling that
To start, the original version of the indicator simply subtracts opening price from closing price if the candle closes above the open, and subtracts the close from the open if the candle closes below the open. This way we get a positive number that simply measures candle expansion. We then apply a moving average to these values in order to smooth them (if you want). To get an oscillator we always subtract the close from the open, thus when a candle closes below its open we get a negative number.
I've naturally added an optional signal line as a helpful way of gauging volatility because obviously the values themselves may not tell you much. But I've also added something that I call a baseline. You can use this in a few ways, but first let me explain the two options for how the baseline can be calculated. And what do I mean by 'baseline?' I think of it as an area of the indicator where if the ACBR is below you will not want to enter into any trades, and if the ACBR is above then you are free to enter trades based on your system (or you might want to enter in areas of low volatility if your system calls for that). Waddah Attar Explosion is another indicator that implements something similar. The baseline is calculated in two different ways: one of which is making a Donchian Channel of the ACBR, and then using the basis as the baseline, while the other is applying an RMA to the cb_dif, which is the base unit that makes up the ACBR. Now, the basis of a Donchian Channel typically is the average of the highs and the lows. If we did that here we would have a baseline much too high (but maybe not...), however, I've made the divisor user adjustable. In this way you can adjust the height (or I guess you might say 'width' if it's an oscillator) however you like, thus making the indicator more or less sensitive. In the case of using the ACBR as the baseline we apply a multiplier to the values in order to adjust the height. Apologies if I'm being overly verbose. If you want to skip all of this I have tooltips in the settings for all of the inputs that I think need an explanation.
When using the indicator as an oscillator there are baselines above and below the zero line. One funny thing: if using the ACBR as calculation type for the baselines in oscillator mode, the baselines themselves will oscillate around the zero line. There is no way to fix this due to the calculation. That isn't necessarily bad (based on my eyeball test), but I probably wouldn't use it in such a way. But experiment! They could actually be a very fine entry or confirmation indicator. And while I'm on the topic of confirmation indicators, using this indicator as an oscillator naturally makes it a confirmation indicator. It just happens to have a volatility measurement baked into it. It may also be used as an exit and continuation indicator. And speaking of these things, there are optional shapes for indicating when you might want to exit or take a continuation trade. I've added alerts for these things too.
Lastly, oscillator mode is good for identifying divergences.
Above we have the indicator set to directional, or oscillator, mode. Baselines are Donchian Channels. I changed the default EMA length from 4 to 24 in this case, otherwise all the settings are default, as in the main image for the indicator (which is clearly set to non-directional). The indicator is set to requiring an advancing signal line for background and bar colors. Background color is not on by default. Candle colors, as you can see are aqua when above the top baseline (and only when the signal line is advancing, as per the settings), magenta when below the bottom baseline, and grey for anything else. The red and blue X's are exit signals. There are two types: one, when the signal line weakens and, two, when the ACBR crosses above or below the signal line. There are also arrows. These are continuation signals (ACBR crossing signal line).
Same image as above, but the baselines are set to ACBR rather than Donchian Channels.
Again, the same image, but with everything but the ACBR Baseline turned off. You can see how this might make for an excellent confirmation indicator, but for the areas of chap. Maybe run a second instance of the indicator on your chart as a volatility indicator, as you would not be using it in that way in this instance.
Here I have bar coloring turned off except for signal line crosses NOT requiring the signal line to be advancing. Background coloring is also turned on. You can see that these all line up with continuation signals, or exits for purple candles.
Same image as above but requiring the signal line to be advancing. You can see that continuation signals are not contingent upon the signal line to be advancing. I had it setup that way at first, but of course it still gave false signals, so I thought more signals (not that there are many) is better than fewer. To be sure, just because the indicator shows a continuation signal does not mean you should always take it. Indicator

Indicator

Indicator

Indicator

CHOP Zone Entry Strategy + DMI/PSAR ExitThis is a Strategy with associated visual indicators and Long/Short and Reverse/Close Position Alerts for the Choppiness Index (CHOP) . It is used to determine if the market is choppy (trading sideways) or not choppy (trading within a trend in either direction). CHOP is not directional, so a DMI script was ported into this strategy to allow for trend confirmation and direction determination; it consists of an Average Directional Index (ADX) , Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI) . In addition, a Parabolic SAR is also included to act as a trailing stop during any strong trends.
Development Notes
---------------------------
This indicator, and most of the descriptions below, were derived largely from the PulseWire reference manual. Feedback and suggestions for improvement are more than welcome, as well are recommended Input settings and best practices for use.
www.pulsewire.com
www.pulsewire.com
www.pulsewire.com
Recommend using the below DMI and PSAR indicators in conjunction with this script to fully visualize and understand how entry and exit conditions are chosen. Variable inputs should correlate between the scripts for uniformity and visual compatibility.
THANKS to LazyBear and his Momentum Squeeze script for helping me quickly develop a momentum state model for coloring the Chop line by trend.
Strategy Description
---------------------------
CHOP produces values that determine whether the market is choppy or trending . The closer the value is to 100 , the higher the choppiness levels , while the closer it is to 0 , the stronger the market is trending . Territories for both levels, and their associated upper and lower thresholds, are popularly defined using the Fibonacci Retracements, 61.8 and 38.2.
Basic Use
---------------------------
CHOP is often used to confirm the market condition to help you stay out of sideways markets and only enter when there is movement or imminent explosions. When readings are above the upper threshold, continued sideways movement may be expected, while readings below the lower threshold are typically indicative of a continuing trend. It is also used to anticipate upcoming trendiness changes, with the general belief that extended periods of consolidation (sideways movement) are followed by extended periods of strong, trending, directional movement, and vice versa.
One limitation in this index is that you must be cautious in deciding whether the range or trend will likely continue, or if it will reverse.
Confidence in price action and trend is higher when two or more indicators are in agreement -- while this strategy combines CHOP with both DMI and PSAR, we would still recommend pairing with other indicators to determine entry or exit trade opportunities.
Recommend also choosing 'Once Per Bar Close' when creating alerts.
Inputs
---------------------------
Strategy Direction - an option to only trade Short, Long, Both, or only in the direction of the Trend (Follow Trend is the Default).
Sensitivity - an incremental variable to test whether the past n candles are in the same trend state before triggering a delayed long or short alert (1 is the Default). Can help filter out noise and reduces active alerts.
Show Chop Index - two visual styles are provided for user preference, a visible Chop line with a background overlay, or a compact column and label only view.
Chop Lookback Period - the time period to be used in calculating CHOP (14 is the Default).
Chop Offset - changing this number will move the CHOP either forwards or backwards relative to the current market (0 is the Default).
Smooth Chop Line and Length - if enabled, the entered time period will be used in calculating a smooth average of the index (Enabled and 4 are the Defaults).
Color Line to Trend Direction - toggles whether the index line is colored to visually depict the current trend direction (Enabled is the Default).
Color Background - toggles the visibility of a background color based on the index state (Enabled is the Default).
Enable DMI Option - if enabled, then entry will be confirmed by and dependent on the ADX Key Level, with any close or reversal confirmed by both ADX and +/-DI to determine whether there is a strong trend present or not (Enabled is the Default).
ADX Smoothing - the time period to be used in calculating the ADX which has a smoothing component (14 is the Default).
DI Length - the time period to be used in calculating the DI (14 is the Default).
ADX Key Level - any trade with the ADX above the key level is a strong indicator that it is trending (23 to 25 is the suggested setting).
Enable PSAR Option - enables trailing stop loss orders (Enabled is the Default).
PSAR Start - the starting value for the Acceleration Force (0.015 is our chosen Default, 0.02 is more common).
PSAR Increment - the increment in which the Acceleration Force will move (0.001 is our chosen Default, 0.02 is more common).
PSAR Max Value - the maximum value of the Acceleration Factor (0.2 is the Default).
Color Candles Option - an option to transpose the CHOP condition levels to the main candle bars. Note that the outer red and green border will still be distinguished by whether each individual candle is bearish or bullish during the specified timeframe.
Note too that if both DMI and PSAR are deselected, then close determinations will default to a CHOP reversal strategy (e.g., close long when below 38.2 and close short when above 61.8). Though if either DMI or PSAR are enabled, then the CHOP reversal for close determination will automatically be disabled.
Indicator Visuals
---------------------------
For the candle colors, black indicates tight chop (45 to 55), yellow is loose chop (38.2 to 45 and 55 to 61.8), dark purple is trending down (< 38.2), and dark blue is trending up (> 61.8).
The background color has additional shades to differentiate a wider range of more levels…
• < 30 is dark purple
• 30 to 38.2 is purple
• 38.2 to 45 is light purple
• 45 to 55 is black
• 55 to 61.8 is light blue
• 61.8 to 70 is blue
• > 70 is dark blue
Long, Short, Close, and Reverse labels are plotted on the Chop line, which itself can be colored based on the trend. The chop line can also be hidden for a clean and compact, columnar view, which is my preferred option (see example image below).
Visual cues are intended to improve analysis and decrease interpretation time during trading, as well as to aid in understanding the purpose of this strategy and how its inclusion can benefit a comprehensive trading plan.
DMI and Trend Strength
---------------------------
To analyze trend strength, the focus should be on the ADX line and not the +DI or -DI lines. An ADX reading above 25 indicates a strong trend , while a reading below 20 indicates a weak or non-existent trend . A reading between those two values would be considered indeterminable. Though what is truly a strong trend or a weak trend depends on the financial instrument being examined; historical analysis can assist in determining appropriate values.
DMI exits trade when ADX is below the user selected key level (e.g., default is 25) and when the +/- DI lines cross (e.g., -DI > +DI exits long position and +DI > -DI exits short position).
PSAR and Trailing Stop
---------------------------
PSAR is a time and price based indicator that excels at measuring direction and duration, though not the actual strength of a trend, which is why we use this in conjunction with DMI. It is also included in this script as a trailing stop option to maximize gains during strong trends and to mitigate any false ADX strengthening signals.
This creates a parabola that is located below the candle during a Bullish trend and above during a Bearish trend. A buy or reversal is signaled when the price crosses above or below the Parabolic SAR.
Long/Short Entry
---------------------------
1. CHOP must be over 61.8 (long) or under 38.2 (short).
2. If DMI is enabled, then the ADX signal line must be above the user selected Key Level (default is 25).
3. If Sensitivity is selected, then that past candle must meet the criteria in step 1, as well as all the intermediate candles in between.
4. If "Follow Trend" is selected and PSAR is enabled, then a long position can only open when the momentum and PSAR are in an uptrend, or short when both are in a downtrend, to include all intermediate candles if the Sensitivity option is set on a past candle.
Close/Reverse
---------------------------
1. If DMI is enabled, then a close flag will be raised when the ADX signal drops below the Key Level (of 25), and -DI crosses over +DI (if long), or +DI crosses over -DI (if short).
2. If PSAR is enabled, then a close flag will be raised when the current trend state is opposite the last state.
3. If both DMI and PSAR are disabled, then a close flag will be raised if the Chop line drops under 38.2 (if long) or goes over 61.8 (if short).
4. If a Long or Short Entry is triggered on the same candle as any of the above close flags, then the position will be reversed, else the position will be closed.
Strategy Alerts
---------------------------
1. Long Entry
2. Short Entry
3. Reverse
4. Close
The provided backtest result is based on a position sizing of 10% equity with 100k initial capital. When testing SPX, disabling the DMI performed the best, but EURUSD performed poorly without it enabled, and TSLA had a small reduction in net profit. Timeframe likewise differed between commodities with TSLA performing best at 30M, SPX at 15M, and EURUSD at 4H. I do not plan on using this as a standalone strategy, but I also was expecting better results with the inclusion of EMI and PSAR to compliment the CHOP. Key elements of this script will likely be included in future, more holistic strategies.
Disclaimer
---------------------------
Past performance may not be indicative of future results. Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting. This post and the script are not intended to provide any financial advice. Trade at your own risk.
No known repainting, though there may be if an offset is introduced in the Inputs. I did my best not to code any other variables that repaint, but cannot fully attest to this fact.
Strategy
