Edge Profiler - Self-Learning Signal StatisticsAlmost every indicator answers one question: when should I enter. Edge Profiler answers the two questions that actually decide whether an entry is tradable: how far did this exact setup historically go against me before it resolved, and how long did it usually take.
It does that by keeping a record of its own signals on the symbol and timeframe you have open, and turning that record into a stop distance, a target and an expected holding time.
WHAT IT MEASURES
For every signal it has ever produced on the current chart, the script stores four numbers:
MAE, Maximum Adverse Excursion. How far price travelled against the signal before the signal resolved, measured in ATR units so the value is comparable across symbols and volatility regimes.
MFE, Maximum Favourable Excursion. How far price travelled in favour, in the same units.
Duration. How many bars the signal remained the active one.
Outcome. The signal-to-signal return, again in ATR units.
The last N signals are kept, older ones are dropped, so the statistics describe the current regime rather than a market that no longer exists. The sample size is adjustable.
WHAT IT DERIVES
Data Stop. Entry minus the 80th percentile of historical MAE, times the ATR at entry. Read plainly, this is a stop level that 80 percent of past signals on this chart never reached. The percentile is adjustable, so 90 gives a wider and safer stop, 70 a tighter and more aggressive one.
Data Target. Entry plus the median historical MFE. A level that half of past signals reached before resolving. Also adjustable by percentile.
Expected duration. The median bar count of past signals. The panel shows the age of the open signal as a percentage of that median, which flags a move that has already outlived what this setup normally delivers.
Expectancy. The average signal-to-signal return in ATR units. Positive means the engine has historically produced more favourable resolution than adverse on this chart. Negative is a warning, and it is deliberately shown rather than hidden.
Win rate. The share of stored signals whose signal-to-signal return was positive.
WHY EXCURSION STATISTICS AND NOT A BACKTEST
A backtest tells you what a complete rule set produced, and it is only as honest as its exit assumptions. Excursion statistics measure something narrower and more robust: the shape of the move that follows a trigger, independent of any exit rule. That makes the numbers usable no matter how you personally manage the trade. If the median adverse excursion on this chart is 0.4 ATR and you are risking 0.15 ATR, the data is telling you the stop is inside the noise, and no entry technique will fix that.
BRING YOUR OWN SIGNAL
Three transparent entry engines are included, and the statistics profile whichever one is selected:
Volatility Trail. An ATR trailing stop that flips direction when price closes through it. Default.
EMA Cross. Close crossing a single exponential moving average.
Donchian Breakout. Close breaking the highest high or lowest low of the last N bars.
Switching the engine reprofiles everything from scratch on the same chart, which makes it easy to see which of the three has the cleaner statistical footprint on the instrument you actually trade. Two engines with the same win rate can have very different adverse excursion, and that difference is what decides whether a stop survives.
ON THE CHART
Entry line, Data Stop line and Data Target line for the currently open signal.
Shaded risk zone between entry and stop, reward zone between entry and target.
Triangles at each signal.
Bars tinted by the active signal direction.
A panel with the full statistics and the live state of the open signal, including its running MAE and MFE so you can see in real time whether the current move is behaving like its own history or not.
ALERTS
Long signal.
Short signal.
Open signal has moved further against entry than the historical stop percentile.
Open signal has outlived the median duration.
SETTINGS THAT MATTER
Entry Engine. Which signal gets profiled.
Sample Size. How many past signals are kept. Smaller adapts faster and is noisier, larger is more stable and slower to react to a regime change.
Minimum Sample. Statistics stay hidden below this count instead of showing numbers built on four observations. Default 15.
Stop Percentile. The single most consequential setting. It is the trade-off between stop survival and risk size.
READING IT HONESTLY
These are descriptive statistics of past signals on one chart. They are not a forecast and they carry no guarantee. A sample of 20 signals is a hint, not evidence. Statistics drawn from a trending period will misprice risk the moment the market goes sideways, and the percentile you choose is an assumption about how much you are willing to be wrong before you are stopped. Load enough history for the sample to fill, check that expectancy is positive before you take the levels seriously, and treat a negative expectancy reading as the script telling you this engine has no edge here.
This is an analysis tool, not financial advice, and not a trading system on its own. Use it with your own risk management and position sizing. Past behaviour of any method does not guarantee future results. Indicator

Time Based ORBTime Based ORB — Multi-Anchor Opening Ranges with Session Context
WHAT IT DOES
Plots up to three independent, time-anchored opening ranges (defaults: 7:30,
8:50, and 9:30 ET) as boxes with high/low/midpoint lines extended to 16:00 ET,
alongside a session-anchored VWAP and the prior day's key reference levels:
Midnight Open (MNO), Previous Day High (PDH), Previous Day Low (PDL), and
Previous Day Midpoint (PDMid).
WHY THESE COMPONENTS ARE COMBINED
This is not a collection of unrelated tools — it implements one workflow:
trading opening-range breakouts *in context*. An ORB breakout signal alone
has a weak edge; its quality depends on where the range sits relative to
the prior day's structure and whether price is trading with or against
session value:
- The three time anchors map how the range develops: the 7:30 range captures
pre-market structure, the 8:50 range captures positioning just before the
cash open, and the 9:30 range is the classic opening range. Nesting or
expansion between them shows whether the open is compressing or trending.
- PDH/PDL/PDMid define the levels a breakout must clear to have room to run.
A 9:30 breakout directly into PDH is a very different trade than one
breaking out above it.
- Session VWAP acts as the with-value / against-value filter: breakouts
taken on the VWAP side of price have participation behind them; breakouts
against VWAP are treated as fade candidates.
The components share one anchoring engine and one alert framework, which is
why they live in a single script rather than three indicators stacked on
a chart.
HOW IT WORKS
Ranges are captured from the high/low of the bar at each configured ET time,
then drawn as boxes with extended H/L and midpoint lines. Breakout icons
print once per range per day on the first confirmed close outside the range.
Prior-day levels are requested from confirmed daily data (no repainting).
VWAP is session-anchored, matching PulseWire's built-in, with optional
standard-deviation bands. All times use America/New_York regardless of
chart timezone.
HOW TO USE
Intraday timeframes (1–15 min). Set your anchor times in Settings or use
the defaults. Alerts are available for every range breakout, VWAP cross,
and PDH/PDL break. Indicator

Indicator

Advanced Support and Resistance with Reversal [AlphaPine]Advanced Support and Resistance with Reversal | AlphaPine
I built this indicator for a simple reason: a breakout line on its own does not tell me enough. I also want to know whether price comes back, holds the level from the other side, and later loses it again.
The script starts with confirmed swing highs and lows. Those become resistance and support. It then follows each level through three possible events: breakout, retest, and failure. Nothing here predicts the next move. It is a way to keep market structure organised without redrawing the same levels by hand.
The image below shows the full level lifecycle in one view, including the symbols that appear at each stage:
How a level is created
A resistance level comes from a confirmed pivot high. A support level comes from a confirmed pivot low. If zones are enabled, the zone uses the wick range of the pivot candle rather than an arbitrary fixed width.
Pivot confirmation takes time. With Pivot Length set to 10, for example, the script needs ten bars on the right side of the pivot before the level exists. This delay is intentional.
Pivot Length controls how selective the swing detection is. A larger value usually gives fewer levels and confirms them later.
Lookback Period sets how long a level remains in the script's working history.
Maximum Levels per Type limits stored resistance and support records so the chart does not keep growing indefinitely.
Wick Dominance Filter keeps only pivot candles whose rejection wick is larger than the body and opposite wick.
Merge Nearby Active Levels removes clutter by skipping a new pivot when an active level of the same type is already nearby. Broken levels do not block a fresh one.
The merge distance uses ATR-14, so it adjusts to the instrument instead of relying on one fixed price interval.
Breakouts
The default breakout mode is Close . Resistance must close above its boundary, while support must close below it. This avoids counting every small wick through a level.
Wick mode reacts earlier. It triggers when the high or low crosses the boundary during the live candle. The recorded extreme cannot retract, but price can still close back inside the level, so Wick mode will naturally include more intrabar fakeouts.
Breakout Buffer adds an optional ATR-based distance beyond the level. Leave it at zero for the exact boundary, or raise it if very small breaks are not useful for your chart.
By default:
A resistance breakout prints an upward blue triangle below the candle.
A support breakout prints a downward orange triangle above the candle.
The marker colours are fully adjustable.
Retests and role reversals
After resistance breaks, the script waits to see whether price can retest it as support. After support breaks, it watches for the same level to act as resistance.
RS means old resistance has been confirmed as new support.
SR means old support has been confirmed as new resistance.
Reversal Confirmation controls what counts as a retest:
Close (default) requires the retest candle to touch the original zone and close back beyond the whole zone on the new-role side.
Touch accepts any later overlap with the zone. It is more sensitive and less strict.
Once confirmed, the new role stays fixed. An RS level remains tracked as support; it does not turn red merely because the latest candle happens to sit below it.
When a flip fails
A flipped level is removed when a confirmed candle closes through the far side of its zone. In other words, RS support fails below the zone and SR resistance fails above it.
If Show Reversal Failures is enabled, an ✕ marks the failure candle. The flipped line stops there, but the cross stays on the chart as a record of where the level died. That is why a failure cross can appear without a continuing line.
Breakout triangles and failure crosses use the original pivot as their Lookback anchor. This keeps their expiry on the same structural clock as the level they came from instead of giving every marker a new lifetime from its event candle.
Reading the chart
R1 is the nearest active resistance above price, followed by R2, R3, and so on.
S1 is the nearest active support below price, followed by S2, S3, and so on.
RS marks a confirmed resistance-to-support flip.
SR marks a confirmed support-to-resistance flip.
Triangles mark breakouts. Crosses mark failed flips.
A breakout marker is an event, not an entry instruction. I find the retest more useful than the first break, but how it is traded still depends on trend, execution, and risk rules outside this indicator.
Lines, zones, and historical placement
Historical Level Start decides where an original level begins:
Confirmation (default) starts it on the bar where the pivot became known in real time.
Pivot extends it back to the swing candle. This is useful for visual context, but the level was not available on that earlier candle.
Display as Zones replaces the single-price lines with the original pivot-wick range. If that level flips, the same price range is preserved; the zone is not moved to the opposite side of the price.
Colours
The Colors group separates colours by purpose, so changing a label does not force the matching line to use the same colour.
Resistance and support lines/zones.
RS and SR lines/zones.
Resistance, support, RS, and SR price labels.
Resistance and support breakout triangles.
Support and resistance failure crosses.
Zone fills and borders use transparent versions of the selected line colour so candles remain visible underneath.
Alerts
Seven alert conditions are included:
Resistance Breakout
Support Breakout
Resistance to Support Flip
Support to Resistance Flip
Flipped Support Failed
Flipped Resistance Failed
Any S/R Event
The combined alert is useful when one alert should cover every structural event. Separate conditions are available when different actions are needed for breaks, flips, or failures.
A sensible starting setup
The defaults use Close confirmation for both breakouts and retests. Start there if you prefer signals that wait for the candle to finish. Wick breakout and Touch retest are available when earlier, more sensitive reactions are more important.
If the chart feels crowded, try increasing Pivot Length, increasing Merge Distance, enabling the Wick Dominance Filter, or reducing Maximum Levels per Type. Settings should be adjusted for the instrument and timeframe rather than treated as universal values.
Important limitations
Confirmed pivots always arrive late by Pivot Length bars. That is how pivot confirmation works, not a hidden predictive signal.
Pivot historical placement back-draws a confirmed level for context. Use Confirmation placement when real-time availability matters.
Wick mode can mark a breakout that later closes back inside the level.
The current-bar drawings rebuild while the candle updates.
The script uses chart data only. It does not request higher-timeframe data or use lookahead.
It does not place orders, calculate position size, or guarantee that a level will hold.
Use it as a structure tool, then apply your own trade plan and risk management.
Indicator

Coil & Fire - Ashish*Updated version of Momentum Scanner*
Finds stocks that had a strong explosive move (EP candle), are now coiling quietly near their EMAs, and marks the exact entry and stop-loss levels based on the most recent low-volume healthy-dip candle.
How it works:
Screens for stocks with a recent 8%+ single-day move that are outperforming their benchmark since that move, holding above the EMA9/21 cloud with the trend structure intact, and showing genuinely quiet volume on the pullback. When all conditions align, it marks a teal bar — a low-volume healthy-dip candle sitting within 5% above EMA9. The high of that bar is your entry. The low is your stop-loss. Purple dots show the entry level. Red dots show the stop.
Orange background = price has crossed the entry level. Yellow background = setup is valid, waiting for the trigger.
What's different from Momentum Scanner:
Entry and stop-loss are now anchored to the most recent teal bar rather than a historical coil-high level, so levels are always close to current price. Volume comparison for the teal bar now uses a 10-day average instead of 50-day, making it more responsive to recent trading activity rather than a long historical baseline.
Note: Indicators are tools, not oracles — every signal still requires human judgment, risk management, and context before any trade is taken. Indicator

Dynamic Trend Bands & Anchored VWAP Signals [BigBeluga]Dynamic Trend Bands & Anchored VWAP Signals is an institutional-grade market structure toolkit built for PulseWire. It blends smooth mathematical trend mapping with real-time volume calculations to identify key market turning points and trade breakout momentum.
Instead of displaying standard lag-heavy moving averages, this system locks onto real-time volatility boundaries and anchors Volume Weighted Average Price (VWAP) paths to major swing pivots. It tells you exactly who controls the market—buyers or sellers—and tracks the net volume driving every single expansion phase.
🔵 MAIN ENGINE & MARKET CALCULATION MECHANICS
1. Dynamic Volatility Envelope Framework
Smoothed Base Filter: The indicator runs a double-smoothed exponential moving average engine ( Baseline Length ) to find the true structural baseline of the asset.
ATR Volatility Channels: It projects dynamic outer bands based on market volatility over a set period ( ATR Volatility Length ). The width adjusts automatically using your preference ( ATR Band Multiplier ) to trap standard price fluctuations and highlight true volatility expansion zones.
Trend Flip Architecture: A definitive close above the upper band switches the system to a Bullish Regime, while a close below the lower band forces a Bearish Regime.
2. Pivot-Anchored VWAP Matrix
Structural Anchor Selection: The engine scans your chart using your lookback criteria ( Pivot Point Detection Length ) to pinpoint major structural market highs and lows.
Live VWAP Projections: The moment a trend flip occurs and a pivot is confirmed, the script constructs a dynamic, non-repainting polyline tracking the Volume Weighted Average Price (VWAP) directly from that structural anchor point.
Delta Volume Accumulation Engine: As price moves along the anchored line, a real-time looping counter sums up the true buy and sell volume to calculate Delta Volume (buying volume minus selling volume).
// Pivot-Anchored VWAP Delta Volume Accumulation Loop Snippet
for i = 0 to bar_index - highIndex - 1
cp1.push(chart.point.from_index(bar_index - i, vwap1 ))
loopDeltaVolHigh := loopDeltaVolHigh + (close > open ? volume : -volume )
poly1 := polyline.new(cp1, line_color = bullColor, line_style = line.style_dotted, line_width = 2)
🔵 WHY IT IS USEFUL
Exposes Institutional Commitments: Standard indicators show where price has been. This engine anchors to major structural pivots and factors in volume data to show you exactly where big institutional players are positioning their capital.
Provides Instant Market Context: The floating real-time dashboard reveals the macro trend status and the exact volume backing the latest market cycle at a glance, allowing you to instantly align your bias with the dominant force.
Quantifies Breakout Authenticity: When price breaches the anchored VWAP baseline, the indicator immediately calculates the net Delta Volume. This tells you if a breakout is backed by aggressive institutional participation or if it is just a low-volume trap.
🔵 HOW TO USE THE SYSTEM
Trading Bullish Breakouts: During an active uptrend, watch for price to pull back toward the lower volatility support bands or consolidation zones. Look for price to break sharply back up through the anchored VWAP baseline line. When a green breakout triangle ( ▲ ) appears, check the Delta Volume text label to verify aggressive buying pressure before entering.
Trading Bearish Breakdowns: When the macro regime shifts to bearish, monitor rallies into the upper resistance bands. Wait for price to cross down through the bearish anchored VWAP baseline. A purple breakdown triangle ( ▼ ) signals a high-probability short opportunity backed by aggressive selling volume.
Managing Risk and Invalidations: Use the outer volatility bands as dynamic structural backstops. For long positions, place your defensive stop loss just below the lower dotted line boundary; for short positions, manage risk right above the upper dotted line boundary.
Master institutional volume cycles and track true structural momentum using the Dynamic Trend Bands & Anchored VWAP Signals workspace. Indicator

Buy-Sell with Liquidity Breakout PRO using Volume Confluence# Liquidity Breakout PRO with Volume Confirmation — Swing Edition
A professional major swing breakout indicator designed to identify important liquidity breakout and breakdown zones using confirmed swing highs, confirmed swing lows, volume confluence, smart stop-loss modes, Fibonacci-based targets, and historical risk-reward boxes.
This indicator is built for traders who want cleaner breakout signals, structured trade planning, and visual performance review directly on the chart.
--------------------------------------------------
## What This Indicator Does
Liquidity Breakout PRO helps identify major breakout and breakdown opportunities after price crosses an important confirmed swing level.
Instead of reacting to every small move, this indicator focuses on major swing highs and swing lows. These levels often act as liquidity zones where stop orders, breakout traders, and institutional activity may become visible.
When price closes above a confirmed major swing high, the indicator marks a bullish breakout setup.
When price closes below a confirmed major swing low, the indicator marks a bearish breakdown setup.
Each confirmed signal comes with:
✅Entry level
✅Stop-loss level
✅Fibonacci-based target levels
✅Risk zone
✅Reward zone
✅Historical risk-reward box
✅Volume confirmation
✅Dashboard panel
--------------------------------------------------
## Core Concept
Markets often move from one liquidity zone to another.
A major swing high usually represents an area where sellers previously defended price. When price closes above that area with volume confirmation, it may suggest breakout strength.
A major swing low usually represents an area where buyers previously defended price. When price closes below that area with volume confirmation, it may suggest breakdown weakness.
This indicator is designed around that simple idea:
✅Identify major liquidity level
✅Wait for confirmed close beyond that level
✅Check volume confluence
✅Plot entry, stop loss, and Fibonacci targets
✅Keep the setup on chart for future performance review
--------------------------------------------------
## Key Features
📊 1. Major Swing Detection
The indicator uses confirmed pivot highs and pivot lows to identify important swing levels.
These are not random support and resistance lines. They are confirmed swing points based on user-defined left and right pivot strength.
This helps reduce noise and focuses only on important market structure level s.
--------------------------------------------------
📊 2. Non-Repainting Logic
Signals are generated only after candle close.
The indicator uses confirmed pivot levels and candle-close breakout confirmation. This means signals are not designed to appear and disappear during live candle movement.
Important note: pivot-based swing levels naturally confirm after the selected right-side candles are completed. This delay helps improve swing reliability and reduces false signals.
--------------------------------------------------
📊 3. Volume Confluence
Breakout signals become stronger when supported by volume.
The indicator includes a volume filter that checks whether current volume is greater than the average volume multiplied by the selected volume multiplier.
This helps avoid weak breakout attempts where price crosses a level without strong participation.
--------------------------------------------------
📊 4. ATR Breakout Buffer
Many breakouts fail because price barely crosses a level and then quickly reverses.
To reduce such weak signals, the indicator includes an optional ATR-based breakout buffer.
This means price must close beyond the swing level with a minimum volatility-adjusted distance before a signal is generated.
--------------------------------------------------
📊 5. Multiple Stop-Loss Modes
Different traders use different stop-loss styles, so this indicator provides multiple SL calculation modes.
Available stop-loss modes:
✅Previous Candle
✅ATR
✅Major Swing Level
✅Breakout Candle
✅Previous Candle + ATR Buffer
This gives flexibility for intraday traders, swing traders, and positional traders.
--------------------------------------------------
## Stop-Loss Modes Explained
📊 Previous Candle
For a buy breakout, stop loss is placed below the previous candle low.
For a sell breakdown, stop loss is placed above the previous candle high.
This is useful for traders who prefer tighter and structure-based stop losses.
--------------------------------------------------
📊 ATR
For a buy breakout, stop loss is calculated below entry using ATR.
For a sell breakdown, stop loss is calculated above entry using ATR.
This is useful for traders who want volatility-adjusted stop losses.
--------------------------------------------------
📊Major Swing Level
For a buy breakout, stop loss is placed near the last confirmed major swing low.
For a sell breakdown, stop loss is placed near the last confirmed major swing high.
This is useful for traders who prefer wider structure-based stops.
--------------------------------------------------
📊 Breakout Candle
For a buy breakout, stop loss is placed below the breakout candle low.
For a sell breakdown, stop loss is placed above the breakout candle high.
This is useful when traders want the breakout candle itself to define risk.
--------------------------------------------------
📊 Previous Candle + ATR Buffer
This mode uses the previous candle high or low with an added ATR cushion.
For a buy breakout, stop loss is placed below the previous candle low with ATR buffer.
For a sell breakdown, stop loss is placed above the previous candle high with ATR buffer.
This is a balanced stop-loss method because it gives slightly more breathing room than a pure previous candle stop.
--------------------------------------------------
##Separate Fibonacci Target Calculation
One important feature of this indicator is that Fibonacci targets are calculated separately from stop loss.
This means if stop loss becomes wider, targets do not automatically become wider.
Targets are based on a separate target range calculation, not on risk distance.
This avoids unrealistic target expansion when using wide stop-loss methods.
--------------------------------------------------
## Fibonacci Target Base Options
The indicator provides different target base modes:
✅Major Swing Range
✅Breakout Candle Range
✅ATR Range
📊Major Swing Range
Targets are calculated using the range between the latest major swing high and major swing low.
This is suitable for swing trading and higher timeframes.
📊Breakout Candle Range
Targets are calculated using the breakout candle range.
This is useful for intraday traders who want more practical and closer targets.
📊 ATR Range
Targets are calculated using ATR.
This gives volatility-adjusted target levels.
--------------------------------------------------
## Risk-Reward Boxes
Every confirmed signal plots a visual risk-reward structure on the chart.
✅The red box shows the risk zone.
✅The green box shows the reward zone.
✅Fibonacci target zones are displayed visually so traders can instantly understand where TP1, TP2, and TP3 are placed.
Historical boxes can remain on the chart, allowing traders to review past signal performance visually. Those who dont want any noise on the chart can opt out from historical boxes in the Settings menu.
This helps users observe:
✅Which signals reached target
✅Which signals hit stop loss
✅How price reacted after breakout
✅How often TP1, TP2, or TP3 was reached
✅Whether breakout continuation was strong or weak
--------------------------------------------------
## Visual Features
This indicator includes multiple visual enhancements:
✅Premium color themes
✅Risk-reward box styles
✅Layered Fibonacci target zones
✅Signal candle highlight
✅Breakout background flash
✅Signal glow effect
✅Custom line styles
✅Dashboard panel
✅Historical setup plotting
These features are designed to make the chart more readable, more professional, and easier to analyze.
--------------------------------------------------
## Best Default Settings
For a balanced setup:
Pivot Left Strength: 20
Pivot Right Strength: 20
ATR Breakout Buffer: ON
ATR Buffer Multiplier: 0.15
Volume Confluence: ON
Volume Multiplier: 1.3
Stop Loss Mode: Previous Candle + ATR Buffer
SL Buffer ATR Multiplier: 0.20
Fibonacci Target Base: Major Swing Range
Targets: 1.0 / 1.618 / 2.618
Keep Previous Target/SL Boxes: ON
--------------------------------------------------
## Suggested Intraday Settings
For 15-minute or lower timeframes:
Pivot Left Strength: 10
Pivot Right Strength: 10
ATR Breakout Buffer: 0.10
Volume Multiplier: 1.2
Stop Loss Mode: Previous Candle or Previous Candle + ATR Buffer
Fibonacci Target Base: Breakout Candle Range
Risk-Reward Box Extension: 20–25 bars
--------------------------------------------------
## Suggested Swing Trading Settings
For 1H, 4H, or daily charts:
Pivot Left Strength: 20–30
Pivot Right Strength: 20–30
ATR Breakout Buffer: 0.15–0.30
Volume Multiplier: 1.3–1.5
Stop Loss Mode: Previous Candle + ATR Buffer or Major Swing Level
Fibonacci Target Base: Major Swing Range
Risk-Reward Box Extension: 25–40 bars
--------------------------------------------------
## How To Use
1. Wait for a major swing high or swing low to form.
2. Let price break and close beyond the swing level.
3. Check whether the signal is volume confirmed.
4. Observe the plotted entry, stop loss, and Fibonacci targets.
5. Use the risk-reward box to understand the trade structure.
6. Avoid taking signals directly into strong nearby support or resistance.
7. Use higher timeframe trend direction for stronger confirmation.
--------------------------------------------------
## Bullish Signal
A bullish breakout signal appears when price closes above a confirmed major swing high with required confluence.
This suggests that buyers may be taking control above a previous liquidity zone.
--------------------------------------------------
## Bearish Signal
A bearish breakdown signal appears when price closes below a confirmed major swing low with required confluence.
This suggests that sellers may be taking control below a previous liquidity zone.
--------------------------------------------------
## Best Use Cases
📊Breakout trading
📊Liquidity breakout analysis
📊Market structure trading
📊Swing high and swing low breakout setups
📊Intraday breakout confirmation
📊Multi-timeframe analysis
📊Risk-reward planning
--------------------------------------------------
⚠️ Important Notes
⚠️ No indicator can predict the market with certainty.
⚠️ This tool is designed to help with structure, confirmation, and visual trade planning.
⚠️ Always combine signals with market context, higher timeframe direction, support and resistance, risk management, and your own trading plan.
⚠️ Avoid using any breakout signal blindly. This indicator itself suggests that using Stoploss is more important than Targets. Always use stoploss to protect the capital.
--------------------------------------------------
Trading Rules & Best Practices
✅ When to Use This Indicator
Trend-Following Setups: Use on trending charts where swing levels have clear structure
Breakout Trading: Ideal for breakout traders targeting support/resistance breaks
Range Identification: Works well when price oscillates between major highs/lows
Multi-Timeframe Analysis: Use higher timeframes (4H, 1D) to identify major swings for entry on lower timeframes
⚠️ When NOT to Use
Choppy/Ranging Markets: In sideways markets, many false breakouts may occur
Low Liquidity Assets: Volume filter may never trigger; consider disabling it
Highly Volatile Instruments: Increase ATR buffer multiplier to reduce noise
--------------------------------------------------
## Risk Disclaimer
This indicator is for educational and analytical purposes only. It does not provide financial advice, investment advice, or guaranteed trading signals.
Trading and investing involve risk. Always use proper risk management and do your own analysis before taking any trade.
--------------------------------------------------
Test it on different timeframes and comment which SL mode works best for your trading style.
Feedback and improvement suggestions are welcome. Indicator

High Volume Pivot Support & Resistance Zones [BigBeluga]High Volume Pivot Support & Resistance Zones is a market-structure indicator built for PulseWire. It helps traders find key support and resistance levels by looking for major pivot points backed by institutional volume.
Instead of drawing simple unweighted lines, this tool tracks the volume of swing highs and lows. When a high-volume pivot is found, the script creates a dynamic zone box on your chart and fits a live Cumulative Volume Delta (CVD) trendline inside it. This lets you monitor real-time buying and selling pressure exactly where the market is most likely to reverse.
🔵 MAIN ENGINE & VOLUME ZONE LOGIC
1. Volume-Validated Pivots
Swing Isolation Fields: The tool uses customizable lookback settings ( Resistance/Support Pivot Length ) to find prominent structural swing highs and lows.
Institutional Volume Filters: Every new swing point is checked against a volume baseline ( Volume MA Length ). A zone is only plotted if the pivot bar's volume beats the baseline multiplier ( Volume Threshold Multiplier ), filtering out weak retail moves.
2. Embedded Zone CVD Lines
Intra-Box Order Flow Tracking: The script counts the volume delta (buying volume minus selling volume based on candle closes) from the exact bar the pivot formed.
Normalized Inside the Box: Using custom polylines, the script scales and plots the rolling CVD trend directly inside the height of the zone box. This lets you see order-flow accumulation without cluttering your screen with bottom dashboard panels.
Live Labels: A small text readout updates on the leading edge of the box, showing the current net CVD volume.
// Normalize and scale running CVD values perfectly inside the zone box coordinates
normalizeDeltaToBox(float currentDelta, float minDelta, float maxDelta, float boxBottom, float boxTop) =>
float rangeDelta = maxDelta - minDelta
float rangeBox = boxTop - boxBottom
rangeDelta == 0 ? boxBottom + rangeBox / 2 : boxBottom + (currentDelta - minDelta) / rangeDelta * rangeBox
🔵 DYNAMIC ZONE FLIPS & SIGNALS
1. Support and Resistance Flips
Automatic Re-Coloring: When a strong candle close breaks entirely through a zone, the script changes its role. Broken resistance boxes switch to your Support Zone Color (yellow), and broken support boxes turn into your Resistance Zone Color (blue).
Border Style Changes: The box outline instantly switches from a solid line to a dashed line the moment a zone is breached, flagging a clear shift in institutional liquidity.
2. Retest and Breakout Plots
Breakout Arrows: The system prints clean triangle up or down arrows ( ▲ or ▼ ) on your chart labeled "Res Breakout" or "Sup Breakdown" the exact bar a zone boundary fails.
Proximity Retest Shapes: It plots tiny circle markers when price pulls back to successfully test a normal support/resistance hold. If price tests a broken zone that has reversed roles, it prints a diamond marker to flag an advanced flipped S/R retest.
// Zone Breakout and Role Inversion Logic snippet
if close > rTop
box.set_bgcolor(lastResBox, color.new(supColor, 90))
box.set_border_color(lastResBox, supLine)
box.set_text_color(lastResBox, supLine)
box.set_border_style(lastResBox, line.style_dotted)
if not resBroken
triggerResBreak := true
resBroken := true
🔵 TRADING STRATEGIES & RISK
CVD Absorption Entries: When price rallies up into a blue resistance box, check the internal dotted CVD line.
If price pushes high into the box but the internal CVD trend slopes down, sellers are absorbing the buy orders. This sets up a high-probability short entry.
Flipped Support Re-Entries: When a bullish breakout triggers a "Res Breakout" arrow, wait for price to pull back to the top border of the broken box. A clean bounce marked by a diamond shape confirms the old resistance has flipped to support, offering a safe continuation trade.
Clear Risk Invalidation floors: You can use the exact borders of the generated boxes to place your stop loss. If you buy a support hold retest, your clear risk invalidation point sits right below the bottom line of that specific support box.
🔵 SETTINGS & CONFIGURATION
Pivot Geometry Controls: Easily fine-tune lookback lengths and volume multipliers to adapt the indicator for volatile crypto assets, indexes, or liquid forex pairs.
Visual Zone Overrides: Adjust background colors, transparency levels, and text label sizing to match your dark or light charting interface seamlessly.
Clean up your layout and trade with volume-weighted precision using the High Volume Pivot Support & Resistance Zones terminal. Indicator

Indicator

Apex Edge - Trend Breakout V1.1Apex Edge — Trend Breakout
A with-trend channel breakout system with a 30-symbol radar and a dual-window, cost adjusted backtest.
Indicator Guide · Apex Edge
This guide explains exactly what the indicator does, how every number is calculated, why the backtest is built the way it is, and how to trade it. Nothing here is hidden behind a black box — the whole point of the tool is that you can see the workings and judge the edge for yourself.
1. What it is
Apex Edge — Trend Breakout is a single overlay indicator that does four jobs at once:
• Signals trades when price breaks the recent range in the direction of the dominant trend.
• Manages the trade with a chandelier trailing stop, so winners are allowed to run and losers are cut quickly.
• Scans a 30-symbol watchlist (the Radar), ranking what is trending and flagging what is about to break.
• Tests the rules on the chart symbol across two separate date windows and reports the result as average R and sample size — then auto-grades it Red, Amber or Green.
The thesis. Most price action is noise. Occasionally a market trends, and when it does, a break of the recent range tends to continue. The edge of such a system does not come from being right often — it comes from a fat right tail: many small losses when breaks fail, paid for by the occasional large runner that the trailing stop rides for multiples of the initial risk. The tool is built end-to-end to find that behaviour and to stop you fooling yourself about whether it is really there.
2. What appears on your chart
• Green and red rails — the upper and lower edges of the breakout channel. A close beyond a
rail is a potential trigger.
• Up / down triangles — confirmed entries (a close-break that agrees with the trend).
• Orange line — the live trailing stop for the most recent signal. This is where your protective
order goes.
• HUD (top-right by default) — the chart symbol's trend, distance to its rail, current setup state, last signal and a running long/short signal count.
• Radar (top-left) — the 30-symbol scanner with score, direction, state and a Red/Amber/Green
“Go” column.
• Backtest panel (bottom-right) — two date windows side by side, each showing average R and
trade count per side, plus an automatic verdict.
3. The entry signal — how it is calculated
3.1 The breakout channel
The rails are the highest high and lowest low of the last N bars (default 20), measured up to the
previous bar so they never repaint:
upBreak = highest(high, 20) of the prior bar
dnBreak = lowest(low, 20) of the prior bar
A long trigger is a close crossing above the upper rail; a short trigger is a close crossing below the lower rail. Because the test is on the close, an intrabar wick through a rail that closes back inside does not trigger — only a genuine close beyond the range counts.
3.2 The dominant-trend filter
A breakout alone is not enough; it must agree with the trend. Trend is defined by a long EMA (default 200) and that EMA's slope, so a flat market counts as no trend:
Uptrend = close > EMA(200) AND EMA(200) rising over the last 5 bars
Downtrend = close < EMA(200) AND EMA(200) falling over the last 5 bars
Requiring both price position and EMA slope filters out the chop that ruins most breakout systems: if the EMA is flat, neither condition is true and no trades are taken.
3.3 Optional higher-timeframe agreement
You can additionally require the higher timeframe (default daily) to agree, using its last closed bar's EMA so it cannot repaint. With it on, a 4H long also needs the daily to be pointing up. Off by default.
3.4 The final rule
Long = close-break of the upper rail AND dominant uptrend
Short = close-break of the lower rail AND dominant downtrend
With “with-trend only” enabled (the default), counter-trend and flat-market breaks are blocked entirely.
The triangle only prints when both halves line up.
4. The exit — chandelier trailing stop, and what “R” means
Risk is defined the moment you enter. The initial stop sits a multiple of Average True Range away from entry (default 1.5 × ATR(14)). That distance — entry to initial stop — is one R.
Every outcome the tool reports is measured in multiples of that initial risk.
Once in the trade, the stop trails using a chandelier: it hangs a multiple of ATR (default 3 × ATR)
below the highest high reached since entry (mirrored for shorts). It only ever moves in your favour - it ratchets, never loosens. You exit when price touches the line.
• A loss is roughly −1R: the break fails and price falls back to the initial stop.
• A win is whatever the trail captures — often small, occasionally very large when a real trend
develops. There is no fixed profit target; capping the winners would throw away the exact tail
the system exists to harvest.
Note Live, you place a resting stop on the orange line and step it along as the line moves. The
backtest exits on the same intrabar touch, so what you test is what you trade.
5. The Market Radar — how the scan is built
The Radar pulls 30 symbols on the scan timeframe (default 4H) and ranks them so you watch the right markets. Four numbers drive it.
5.1 Trend-strength score
The score blends how cleanly a market is moving with how strongly:
• Efficiency Ratio (ER) — net distance travelled divided by the total path taken, over a lookback
(default 20). A straight move scores high; a market that thrashes back and forth to end up in the same place scores low.
ER = |close − close | / sum of |bar-to-bar moves over 20| (as a %)
• ADX — the standard directional-strength index (default 14).
The two are scaled and blended 55% ER / 45% ADX, calibrated so a market in a genuine trend reads roughly 60–70. Only symbols above the score threshold (default 50) are shown, strongest first.
5.2 Direction, NEAR and the Go grade
• Direction comes from the same dominant-EMA logic as the chart (up, down, or flat).
• NEAR flags a symbol that is trending and within a set distance of its breakout rail in the trend
direction (default 0.5 × ATR) — i.e. about to trigger.
• Go (Red / Amber / Green) is read from your own curated lists. You tell the indicator which
symbols you trade long and short at Green (confirmed) and Amber (testing) confidence; the Go
column then lights up only for those symbols in that direction.
Note The Radar does not grade edges for you — you populate the Green/Amber lists from your own backtest sweep (Section 6). The Go column simply surfaces your decisions on the live scan.
6. The backtest engine and the Auto verdict
This is where you decide whether a symbol earns a place on your lists. For the chart symbol, the engine replays every historical signal forward (up to 60 bars), simulates the exact chandelier trail with intrabar touch exits, deducts your cost per trade, and records each result in R.
It does this across two independent date windows and reports, for each window and each side
(long / short / all):
• Avg R — the average result per trade, net of cost. This is the system's expectancy.
• N — the number of trades in that window. This tells you whether to believe the Avg R.
The Auto column then turns that into a verdict using two thresholds (defaults shown), applied to both windows:
Verdict Condition
GREEN Avg R ≥ 0.10 AND N ≥ 50 in BOTH windows — a real, repeatable edge
AMBER Qualifies in one window, or only marginally — promising, not proven
no Fails the bar — no demonstrated edge this way
A Green therefore is not a single good run; it is an edge that survived two separate market periods with a large enough sample in each. That is the bar a symbol must clear before it goes on your Green list.
Note Cost is entered in price units and applies to the chart symbol, so set it to that instrument's
realistic round-trip spread before trusting a marginal (Amber) result. A couple of pips is what flips a thin edge from positive to negative — which is exactly the truth you want before risking money.
7. Why those default backtest dates?
The two windows default to 2019–2021 and 2022–present, and the split is deliberate. These are not two halves of one stretch — they are two genuinely different market regimes:
• 2019–2021 spans the late-cycle calm, the COVID crash and the violent recovery — a high volatility, strong-trend era.
• 2022–present is the rate-hiking regime: broad USD strength, a real equity bear in 2022, and a
different volatility character.
A set of rules that prints a profit in one regime might simply be tuned, by luck or by hand, to that regime. The only honest test is whether the same untouched rules also work in a different one.
Requiring an edge to clear the bar in both windows is the out-of-sample check built directly into the panel. The dates are adjustable — what matters is that the two windows cover different conditions, not the exact years.
8. Why we judge by R and N, not win rate
Win rate is the most quoted and least useful statistic in trading. On its own it tells you almost nothing, and for a system like this it actively misleads.
8.1 Win rate hides the size of wins and losses
Two systems can have wildly different win rates and the opposite profitability. Expectancy — average R per trade — is what actually ties to your account:
System Win rate Expectancy Reality
“High win rate” (avg win 90% +0.5R Loses Money
+0.5R, avg loss −5R)
Trend breakout (avg win 40% +0.60R Strong edge
+3R, avg loss −1R)
The 90%-winner loses on the rare 5R disaster; the 40%-winner thrives because its winners dwarf its losers. Judge either by win rate and you draw the wrong conclusion. Expectancy = (win% × avg win) − (loss% × avg loss), expressed in R, is the number that matters.
8.2 This system is meant to be a low win-rate system
A trend-breakout-with-trail design is designed to win less than half the time. Most breakouts fail and cost ~1R; a minority become trends and the trail rides them for many R. The profit lives entirely in those few big winners — the fat right tail. Win rate cannot see that tail; only average R can.
Optimising for win rate would push you to cap winners and widen stops, destroying the very edge the tool is built to capture.
8.3 N is what makes the average believable
An average R is only as trustworthy as the number of trades behind it. A +0.8R average on 8 trades is a coin landing heads a few times in a row — it tells you nothing. The same average on 120 trades is a genuine signal. That is why the Auto grade refuses to certify anything below N ≥ 50 per window, no matter how attractive the Avg R looks. Small samples are where traders fool themselves most, so the tool simply will not show Green there.
8.4 How to read an Avg R figure
Avg R (net of cost) Read it as
≤ 0 (negative) A losing side — shown red and correctly left off your lists
+0.05 to +0.15 Marginal — cost and slippage can erase it
+0.15 to +0.35 A solid, tradeable edge
+0.35 to +0.80 Strong — and normal for this let-run design when a market trends cleanly
+0.80 and up Exceptional — sanity-check it before you believe it (see below)
Two cautions. First, R is signed. A side can be negative, meaning that direction lost money over the test — it is shown in red, and the Auto verdict only turns green for positive R that clears the bar in both windows. A red number is not a high score you should chase; it is a losing side the tool is keeping you out of.
Second, because this design lets winners run, a healthy average is usually carried by a minority of large trades rather than spread evenly across all of them. That is expected behaviour for trend following, not a flaw — but it means a very high figure deserves a look at the trade distribution, and a check for look-ahead, before you treat it as durable. High positive R here is the system working; it is only suspect when it is extreme or rests on a handful of trades.
9. How to trade it
The workflow separates the slow, careful job (deciding what to trade) from the fast one (executing when it triggers).
1. Weekly — curate. Flick through your watchlist. On each symbol read the Auto panel and note
the verdict per side. Add Green symbols to the matching Green list (long or short) in settings,
and Amber symbols to the Amber lists. Skip the reds.
2. Set once — the blanket alert. On a 4H chart create the “Watchlist near breakout” alert, set to Once Per Bar Close. It pings only for your Green/Amber symbols when one is trending and
nearing its rail.
3. On the ping — find the trade. Open the Radar. Confirm the symbol shows Green/Amber Go +
NEAR + the right direction.
4. Arm the entry. On that symbol's chart set the “Breakout Long/Short” alert, also Once Per Bar
Close, so only a close beyond the rail can fire it (no wicks).
5. Enter. When the triangle prints, take the trade and place your stop on the orange trailing line.
6. Manage. Step the stop along with the line as it moves your way — never against you. Exit on the touch. No fixed target; let the trail decide.
10. Trading rules and risk discipline
• Trade Green in the validated direction. Amber is watch-and-small-size. Red is no trade.
• A break against the trend is not your trade. Skip it, however tempting.
• Judge over a batch of trades, never one. A single loss says nothing about a positive expectancy system; variance is the cost of admission.
• One settings set for all symbols. Never tune the inputs per symbol to flatter the past — that is
curve-fitting. If you change a strategy setting, re-test both windows before trusting it again.
• Size correlated instruments as one position. A basket of yen crosses, or a basket of equity
indices, is one bet wearing several names. Three 1% longs that all rise and fall together is a 3%
bet on one theme, not three diversified trades.
11. Settings reference
Setting Defaults and What they mean:
Breakout channel 20 Bars - used for the high/low rails
Near-break heads-up 0.5 ATR - How close to the rail counts as NEAR
Dominant EMA 200 - The trend reference line
EMA slope lookback 5 Bars - used to judge the EMA's slope
With-trend only On - Blocks counter-trend and flat-market breaks
Higher timeframe Off / 1D - Optionally require the daily to agree
Initial stop 1.5 ATR - Defines one R (entry to stop)
Chandelier trail 3.0 ATR - Trailing distance below the running extreme
Trade window 60 bars - How far the backtest follows each signal
Cost per trade 0 - Round-trip cost in price units (set per instrument)
Test windows A / B 2019–21 / 22–now - The two regimes the Auto grade checks
Qualify Avg R / N 0.10 / 50 - Thresholds for a Green verdict, per window
Scan timeframe 4H - Timeframe the Radar evaluates
Score threshold 50 - Minimum trend score to appear on the Radar
12. Non-repainting, and honest limitations
Non-repainting by design. Signals use closed-bar prices and the prior-bar channel, the higher timeframe pull uses the last closed bar, and the backtest only ever replays bars that were already in the past relative to each signal. What you see on history is what you would have seen live.
What a backtest can and cannot tell you. The replay is a simulation. It assumes fills at the touched price and a fixed cost; live trading adds variable spread, slippage, gaps and partial fills. Treat the Avg R as an estimate of edge and direction, not a promise of returns. Forward-test before you scale.
• The Green/Amber lists are your inputs — the tool surfaces your decisions, it does not validate
them for you.
• Correlated symbols inflate the apparent number of edges; the count is not the same as
diversification.
• A strong directional drift in an asset class (equities up, for example) can make a one-sided
system look better than the rule itself is.
This indicator is a decision-support and research tool. It is not financial advice and does not place trades.
Markets carry risk; past performance does not guarantee future results. You are responsible for your own decisions and risk.
Apex Edge - Trend Breakout - Radar finds the trend - Auto/Go says if it pays - Arrow times entry - Orange line manages - exit Indicator

Apex Edge - Trend BreakoutApex Edge — Trend Breakout
A with-trend channel breakout system with a 30-symbol radar and a dual-window, cost
adjusted backtest.
Indicator Guide - Apex Edge
This guide explains exactly what the indicator does, how every number is calculated, why the backtest is built the way it is, and how to trade it. Nothing here is hidden behind a black box — the whole point of the tool is that you can see the workings and judge the edge for yourself.
1. What it is
Apex Edge — Trend Breakout is a single overlay indicator that does four jobs at once:
Signals trades when price breaks the recent range in the direction of the dominant trend.
Manages the trade with a chandelier trailing stop, so winners are allowed to run and losers are cut quickly.
Scans a 30-symbol watchlist (the Radar), ranking what is trending and flagging what is about to break.
Tests the rules on the chart symbol across two separate date windows and reports the result as average R and sample size — then auto-grades it Red, Amber or Green.
The thesis.
Most price action is noise. Occasionally a market trends, and when it does, a break of the
recent range tends to continue. The edge of such a system does not come from being right often — it comes from a fat right tail: many small losses when breaks fail, paid for by the occasional large runner that the trailing stop rides for multiples of the initial risk. The tool is built end-to-end to find that behaviour and to stop you fooling yourself about whether it is really there.
2. What appears on your chart
Green and red rails — the upper and lower edges of the breakout channel. A close beyond a
rail is a potential trigger.
Up / down triangles — confirmed entries (a close-break that agrees with the trend).
Orange line — the live trailing stop for the most recent signal. This is where your protective
order goes.
HUD (top-right by default) — the chart symbol's trend, distance to its rail, current setup state, last signal and a running long/short signal count.
Radar — the 30-symbol scanner with score, direction, state and a Red/Amber/Green
“Go” column.
Backtest panel — two date windows side by side, each showing average R and
trade count per side, plus an automatic verdict.
3. The entry signal — how it is calculated
3.1 The breakout channel
The rails are the highest high and lowest low of the last N bars (default 20), measured up to the
previous bar so they never repaint:
upBreak = highest(high, 20) of the prior bar
dnBreak = lowest(low, 20) of the prior bar
A long trigger is a close crossing above the upper rail; a short trigger is a close crossing below the lower rail. Because the test is on the close, an intrabar wick through a rail that closes back inside does not trigger — only a genuine close beyond the range counts.
3.2 The dominant-trend filter
A breakout alone is not enough; it must agree with the trend. Trend is defined by a long EMA (default 200) and that EMA's slope, so a flat market counts as no trend:
Uptrend = close > EMA(200) AND EMA(200) rising over the last 5 bars
Downtrend = close < EMA(200) AND EMA(200) falling over the last 5 bars
Requiring both price position and EMA slope filters out the chop that ruins most breakout systems: if the EMA is flat, neither condition is true and no trades are taken.
3.3 Optional higher-timeframe agreement
You can additionally require the higher timeframe (default daily) to agree, using its last closed bar's EMA so it cannot repaint. With it on, a 4H long also needs the daily to be pointing up. Off by default.
3.4 The final rule
Long = close-break of the upper rail AND dominant uptrend
Short = close-break of the lower rail AND dominant downtrend
With “with-trend only” enabled (the default), counter-trend and flat-market breaks are blocked entirely. The triangle only prints when both halves line up.
4. The exit — chandelier trailing stop, and what “R” means
Risk is defined the moment you enter. The initial stop sits a multiple of Average True Range away from entry (default 1.5 × ATR(14)). That distance — entry to initial stop — is one R. Every outcome the tool reports is measured in multiples of that initial risk.
Once in the trade, the stop trails using a chandelier: it hangs a multiple of ATR (default 3 × ATR)
below the highest high reached since entry (mirrored for shorts). It only ever moves in your favour — it ratchets, never loosens. You exit when price touches the line.
A loss is roughly −1R: the break fails and price falls back to the initial stop.
A win is whatever the trail captures — often small, occasionally very large when a real trend
develops. There is no fixed profit target; capping the winners would throw away the exact tail
the system exists to harvest.
Note Live, you place a resting stop on the orange line and step it along as the line moves. The
backtest exits on the same intrabar touch, so what you test is what you trade.
5. The Market Radar — how the scan is built
The Radar pulls 30 symbols on the scan timeframe (default 4H) and ranks them so you watch the right markets. Four numbers drive it.
5.1 Trend-strength score
The score blends how cleanly a market is moving with how strongly:
Efficiency Ratio (ER) — net distance travelled divided by the total path taken, over a lookback
(default 20). A straight move scores high; a market that thrashes back and forth to end up in the same place scores low.
ER = |close − close | / sum of |bar-to-bar moves over 20 (as a %)
ADX — the standard directional-strength index (default 14).
The two are scaled and blended 55% ER / 45% ADX, calibrated so a market in a genuine trend reads roughly 60–70. Only symbols above the score threshold (default 50) are shown, strongest first.
5.2 Direction, NEAR and the Go grade
Direction comes from the same dominant-EMA logic as the chart (up, down, or flat).
NEAR flags a symbol that is trending and within a set distance of its breakout rail in the trend
direction (default 0.5 × ATR) — i.e. about to trigger.
Go (Red / Amber / Green) is read from your own curated lists. You tell the indicator which
symbols you trade long and short at Green (confirmed) and Amber (testing) confidence; the Go
column then lights up only for those symbols in that direction.
Note The Radar does not grade edges for you — you populate the Green/Amber lists from your own backtest sweep (Section 6). The Go column simply surfaces your decisions on the live scan.
6. The backtest engine and the Auto verdict
This is where you decide whether a symbol earns a place on your lists. For the chart symbol, the engine replays every historical signal forward (up to 60 bars), simulates the exact chandelier trail with intrabar touch exits, deducts your cost per trade, and records each result in R.
It does this across two independent date windows and reports, for each window and each side
(long / short / all):
Avg R — the average result per trade, net of cost. This is the system's expectancy.
N — the number of trades in that window. This tells you whether to believe the Avg R.
The Auto column then turns that into a verdict using two thresholds (defaults shown), applied to both windows:
Verdict/Condition:
GREEN
Avg R ≥ 0.10 AND N ≥ 50 in BOTH windows — a real, repeatable edge
AMBER
Qualifies in one window, or only marginally — promising, not proven
no
Fails the bar — no demonstrated edge this way
A Green therefore is not a single good run; it is an edge that survived two separate market periods with a large enough sample in each. That is the bar a symbol must clear before it goes on your Green list.
Note - Cost is entered in price units and applies to the chart symbol, so set it to that instrument's realistic round-trip spread before trusting a marginal (Amber) result. A couple of pips is what flips a thin edge from positive to negative — which is exactly the truth you want before risking money.
7. Why those default backtest dates?
The two windows default to 2019–2021 and 2022–present, and the split is deliberate. These are not two halves of one stretch — they are two genuinely different market regimes:
2019–2021 spans the late-cycle calm, the COVID crash and the violent recovery — a high
volatility, strong-trend era.
2022–present is the rate-hiking regime: broad USD strength, a real equity bear in 2022, and a
different volatility character.
A set of rules that prints a profit in one regime might simply be tuned, by luck or by hand, to that regime. The only honest test is whether the same untouched rules also work in a different one.
Requiring an edge to clear the bar in both windows is the out-of-sample check built directly into the panel. The dates are adjustable — what matters is that the two windows cover different conditions, not the exact years.
8. Why we judge by R and N, not win rate
Win rate is the most quoted and least useful statistic in trading. On its own it tells you almost nothing, and for a system like this it actively misleads.
8.1 Win rate hides the size of wins and losses
Two systems can have wildly different win rates and the opposite profitability. Expectancy — average R per trade — is what actually ties to your account:
Example:
System - “High win rate” (avg win +0.5R, avg loss −5R)
Win rate - 90%
Expectancy -0.05R
Reality - Loses money
System - Trend breakout (avg win +3R, avg loss −1R)
Win rate - 40%
Expectancy - 0.60R
Reality - Strong edge
The 90%-winner loses on the rare 5R disaster; the 40%-winner thrives because its winners dwarf its losers. Judge either by win rate and you draw the wrong conclusion. Expectancy = (win% × avg win) − (loss% × avg loss), expressed in R, is the number that matters.
8.2 This system is meant to be a low win-rate system
A trend-breakout-with-trail design is designed to win less than half the time. Most breakouts fail and cost ~1R; a minority become trends and the trail rides them for many R. The profit lives entirely in those few big winners — the fat right tail. Win rate cannot see that tail; only average R can.
Optimising for win rate would push you to cap winners and widen stops, destroying the very edge this tool is built to capture.
8.3 N is what makes the average believable
An average R is only as trustworthy as the number of trades behind it. A +0.8R average on 8 trades is a coin landing heads a few times in a row — it tells you nothing. The same average on 120 trades is a genuine signal. That is why the Auto grade refuses to certify anything below N ≥ 50 per window, no matter how attractive the Avg R looks. Small samples are where traders fool themselves most, so the tool simply will not show Green there.
8.4 How to read an Avg R figure
Avg R (net of cost) Read it as
≤ 0 No edge
+0.05 to +0.10 Marginal — cost and slippage can erase it
+0.10 to +0.20 Workable edge
+0.20 to +0.40 Strong
+0.40 and up Suspect — check for look-ahead, tiny N, or an error
Bigger is not automatically better. A sustained average above ~+0.40R on a simple system is more often a sign of a mistake than a goldmine, and should be interrogated, not celebrated.
9. How to trade it
The workflow separates the slow, careful job (deciding what to trade) from the fast one (executing when it triggers).
1. Weekly — curate. Flick through your watchlist. On each symbol read the Auto panel and note
the verdict per side. Add Green symbols to the matching Green list (long or short) in settings,
and Amber symbols to the Amber lists. Skip the reds.
2. Set once — the blanket alert. On a 4H chart create the “Watchlist near breakout” alert, set to Once Per Bar Close. It pings only for your Green/Amber symbols when one is trending and
nearing its rail.
3. On the ping — find the trade. Open the Radar. Confirm the symbol shows Green/Amber Go +
NEAR + the right direction.
4. Arm the entry. On that symbol's chart set the “Breakout Long/Short” alert, also Once Per Bar
Close, so only a close beyond the rail can fire it (no wicks).
5. Enter. When the triangle prints, take the trade and place your stop on the orange trailing line.
6. Manage. Step the stop along with the line as it moves your way — never against you. Exit on the touch. No fixed target; let the trail decide.
10. Trading rules and risk discipline
Trade Green in the validated direction. Amber is watch-and-small-size. Red is no trade.
A break against the trend is not your trade. Skip it, however tempting.
Judge over a batch of trades, never one. A single loss says nothing about a positive
expectancy system; variance is the cost of admission.
One settings set for all symbols. Never tune the inputs per symbol to flatter the past — that is
curve-fitting. If you change a strategy setting, re-test both date windows before trusting it again.
Size correlated instruments as one position. A basket of yen crosses, or a basket of equity
indices, is one bet wearing several names. Three 1% longs that all rise and fall together is a 3%
bet on one theme, not three diversified trades.
11. Settings reference
Setting Default What it does
Breakout channel 20 Bars used for the high/low rails
Near-break heads-up 0.5 ATR How close to the rail counts as NEAR
Dominant EMA 200 The trend reference line
EMA slope lookback 5 Bars used to judge the EMA's slope
With-trend only On Blocks counter-trend and flat-market breaks
Higher timeframe Off / 1D Optionally require the daily to agree
Initial stop 1.5 ATR Defines one R (entry to stop)
Chandelier trail 3.0 ATR Trailing distance below the running extreme
Trade window 60 bars How far the backtest follows each signal
Cost per trade 0 Round-trip cost in price units (set per instrument)
Test windows A / B 2019–21 / 22–now The two regimes the Auto grade checks
Qualify Avg R / N 0.10 / 50 Thresholds for a Green verdict, per window
Scan timeframe 4H Timeframe the Radar evaluates
Score threshold 50 Minimum trend score to appear on the Radar
12. Non-repainting, and honest limitations
Non-repainting by design. Signals use closed-bar prices and the prior-bar channel, the higher
timeframe pull uses the last closed bar, and the backtest only ever replays bars that were already in the past relative to each signal. What you see on history is what you would have seen live.
What a backtest can and cannot tell you. The replay is a simulation. It assumes fills at the touched price and a fixed cost; live trading adds variable spread, slippage, gaps and partial fills. Treat the Avg R as an estimate of edge and direction, not a promise of returns. Forward-test before you scale.
The Green/Amber lists are your own settings inputs — the tool surfaces your decisions, it does not validate them for you.
Correlated symbols inflate the apparent number of edges; the count is not the same as
diversification.
A strong directional drift in an asset class (equities up, for example) can make a one-sided
system look better than the rule itself is.
This indicator is a decision-support and research tool. It is not financial advice and does not place trades. Markets carry risk; past performance does not guarantee future results. You are responsible for your own decisions and risk.
Apex Edge — Trend Breakout Radar finds the trend Auto/Go says if it pays Arrow times entry Orange line manages Exit Indicator

Adaptive Trend Expansion Bands [BigBeluga]Adaptive Trend Expansion Bands is an advanced, volatility-scaled mathematical modeling terminal engineered for PulseWire. It operates as a dynamic trend-following corridor system that maps asset extension, mean-reversion horizons, and structural exhaustion thresholds across four distinct mathematical volatility tiers.
Rather than relying on static channels or fixed-percentage envelopes, this system uses an adaptive algorithmic architecture. It combines a selectable baseline smoothing core (such as an EMA or HMA) with standard Average True Range (ATR) step multipliers. This approach maps predictable, gradient-shaded risk corridors that expand and contract in perfect synchronization with real-time market volatility.
🔵 SYSTEM ARCHITECTURE & EXECUTING CORE ENGINES
1. Smooth Multi-Engine Core Baseline
Selectable Mathematical Foundations: The central anchor line runs your preferred moving average smoothing type ( SMA, EMA, WMA, or HMA ). This allows you to tailor the script to act as a responsive high-velocity scalp line or an institutional trend tracking system.
Volatility Expansion Envelopes: Spawns four upper and four lower risk bands symmetrically off the baseline. Driven by the asset's raw ATR Length , these bands act as a multi-layered support and resistance map, defining exactly where price action transitions from normal distribution into extreme variance.
2. Asymmetric Structural Trend Inversion Locking
Zone 3 Structural Threshold Flipped Tracking: The script utilizes a structural state machine that changes color parameters only when a candle successfully forces a crossover above the upper Zone 3 band ( Bullish Lock ) or a crossunder below the lower Zone 3 band ( Bearish Lock ).
Clean Workspace Overwrites: Once a trend direction is verified, the engine overwrites your primary layout candle bars with clear, customized hex-theme presets ( Bullish/Bearish Base Colors ) to maintain absolute structural awareness.
Dynamic Zone-Tier Mapping Labels: When a structural trend shift occurs, the system prints crisp zone indicators ( +1 to +4 or -1 to -4 ) directly in the background spaces to immediately define the volatility tiers.
3. High-Variance Exhaustion Spotting (Zone 4 Hits)
Counter-Trend Spike Identifiers: The terminal flags moments when an active trend experiences a sudden, high-velocity counter-trend surge into deep premium or discount territory ( Zone 4 Extreme Target Layers ).
Localized Inversion Candlestick Highlights: The exact candle that spikes into a Zone 4 level is instantly recolored with a high-visibility contrast override ( Zone 4 Hit Candle Color ). This provides immediate visual warning of exhaustion before any pullback begins.
Anti-Overlap Cooldown Guardrails: Built-in index buffer logic ( Zone 4 Label Bar Gap ) prevents the system from cluttering your workspace with consecutive text labels during high-velocity runs.
4. Automatic Order-Tracking Boxes & Escape Latches
Historical Low/High Sizing Brackets: The moment a Zone 4 anomaly is logged, the graphical engine automatically anchors a structural box tracking the recent 3-bar high/low territory.
Dynamic Trailing Tracker Dashed Lines: Extends crisp upper and lower horizontal tracker boundaries from the exhaustion point. These dashed lines track the consolidation range and remain active until the market breaches either boundary, triggering a directional arrow glyph ( ▲ or ▼ ) to mark the breakout.
🔵 SYSTEMATIC EXECUTION STRATEGIES & RISK INTERPRETATION
Counter-Trend Overextension Inversions: When an asset is structurally trading in a downtrend but experiences an aggressive squeeze that spikes into the upper Zone 4 envelope, it triggers a Zone 4 exhaustion print. This alerts you that buyers have pushed deep into an illiquid mathematical ceiling. Look for short-side setups as price targets a mean-reversion move back down toward the primary baseline.
Zone Range Breakdown Continuations: Monitor the horizontal dashed tracking lines spawned by a Zone 4 hit. If price action consolidates inside these boundaries and then prints a strong close outside the high/low bracket, look to trade the breakout in that direction, using the opposite dashed line as a hard risk invalidation level.
Trend Health Assessment via Gradient Fills: Use the layered background fills to gauge trend strength. Healthy, sustainable trends typically ride smoothly along the Zone 1 and Zone 2 channels. When price aggressively pierces into Zone 3 or Zone 4, it signals a climax state, warning you to tighten trailing protective lines or take profits before a mean-reversion event.
🔵 INTERFACE CONFIGURATION AND PARAMETERS
Core Mathematical Tuning: Easily adjust baseline types, lookback periods, and baseline multipliers to optimize the indicator for any asset class, volatility cycle, or chart time frame.
Exhaustion Label Cleanliness Filters: Customize the bar index gap parameters to keep your layout workspace clean and legible during highly volatile market conditions.
Visual Theme Customization Modifiers: Fully adjust color properties for bullish states, bearish states, and exhaustion candle overrides to blend seamlessly into your dark or light charting interface.
Transform your charting layout from flat geometric indicators into a highly responsive, volatility-scaled risk map with the Adaptive Trend Expansion Bands terminal. Indicator

MLP - BTC Breakout Probability [Deep Learning] [Open Source]I trained a single Multilayer Perceptron on 13 years of Bitcoin price history and open-sourced the result. Not because it's perfect, but because the idea is worth sharing.
The concept is simple.
Most breakout strategies are rule-based. Fixed levels, static conditions. This one is different, instead of predicting direction, the model learned the distribution of Bitcoin's daily price moves. You pick a threshold, it gives you the probability. Same model, any level.
How to use it
Pick a percentage threshold , by doing that you're asking the model to evaluate. When price breaks that level and the model is showing meaningful confidence, a label is shown on the chart.. Daily only. BTC only.
Under the hood
A lightweight Multilayer Perceptron (MLP) trained on ~4,700 daily candles of raw OHLC data from May 2009 to May 2022 . The architecture is two hidden layers (16→8), ReLU activations throughout, and a sigmoid output that squashes the result into a clean 0–1 probability score. ReLU keeps the internal representations sparse and non-linear, sigmoid makes the output as a probability.
What makes this interesting is that the model didn't just learn a raw number, it learned the underlying distribution of Bitcoin's daily price moves. That's what allows a single model to answer probability questions across different thresholds rather than being hardcoded to one fixed level.
The output isn't a prediction, it's a calibrated belief about where price is likely to go, derived from 13 years of market structure.
Honest limitations
Fat tails eat this model alive. The features are correlated and the model has no concept of liquidity. It underestimates the extremes.
Daily timeframe only. Bitcoin only. Long only.
This was built as a personal project, mostly for fun and to serve as a working example of how ML concepts can be applied to market data.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, trading recommendations, or a guarantee of future results. Past performance does not predict future returns. You alone are responsible for your trading decisions. Always test thoroughly in a simulated environment before trading with real capital. Indicator

Breakout Evidence Board [TradeDots]Breakout Evidence Board
Summary
This indicator detects Donchian-style breakouts (a close beyond the highest close or lowest close over a user-configured lookback) and scores each breakout from 0 to 100 across seven independent factors of supporting evidence. The output is a composite "Evidence Score" with a tier label of Strong, Valid, Mixed, or Weak. It is intended as a quality filter for continuation entries — traders use it to separate breakouts that occur in supportive context from breakouts that occur on thin volume, late extension, or counter-trend conditions.
What is original here
Breakout detection from prior-bar Donchian extremes is standard and is already present in many public scripts. The contribution of this script is the seven-factor evidence panel applied at the moment of the breakout. The factors quantify the breakout's pre-conditions (compression), the breakout's immediate character (volume, ATR expansion, close location), its position relative to mean (VWAP distance), and its alignment with higher-timeframe context. The combination — and the transparency of each factor's contribution to the final score — is what differentiates this script. Each factor weight is exposed as an input so the model can be inspected, tuned, or partially disabled.
How it works
Breakout detection uses the highest close and lowest close over the prior donchian_len bars, indexed by so the breakout level is the previous bar's extreme rather than the current bar's own extreme. A bullish breakout is registered when the current close exceeds the prior-bar highest close; the bearish case is symmetric. To avoid re-firing on every bar that remains above the prior high, only the first breakout (a transition from "not broken" to "broken") is treated as a signal. Optionally, a "Require Compression Before Breakout" filter rejects breakouts that do not follow a mature Bollinger Bandwidth compression — useful in choppy markets. Signal evaluation is gated by barstate.isconfirmed.
When a breakout is detected, the following seven factors are computed.
1. Compression score. The Bollinger Bandwidth at the prior bar, expressed as a percentile rank over the configured lookback. The score is inverted: tight pre-break (low BBW percentile) yields a high score, while a breakout from already-expanded volatility yields a low score.
2. ATR expansion score. The current bar's ATR percentile rank. High ATR percentile means the breakout is moving with thrust, not just drifting across the level.
3. Volume score. The current bar's volume percentile rank.
4. Close-location score. Where the close sits within the bar's high-low range. For a bullish breakout the score rewards a close near the bar's high; for a bearish breakout, a close near the bar's low. A weak close (in the middle of the range or against direction) indicates indecision.
5. VWAP distance score. The absolute distance from an anchored VWAP, expressed in ATR units. A breakout that is already extended from VWAP scores lower than a breakout that occurs near the mean. The anchor is user-selectable: Session, Week, or Month.
6. HTF alignment score. A higher-timeframe trend reference is fetched and the breakout direction is compared against the HTF trend. Aligned breakouts score full credit; neutral HTF scores half; counter-HTF scores zero.
7. Compression-to-expansion confirmation. A binary factor that earns full credit only when the prior bar was in a mature compression and the current bar shows clear expansion (ATR percentile above a threshold). This captures the classic "coil release" pattern.
The composite is the weighted average of all seven factors. Tier mapping:
Strong : score 80 or higher
Valid : score 60 to 79
Mixed : score 30 to 59
Weak : below 30
Repainting and data integrity
Signal generation and labels are gated by barstate.isconfirmed. Donchian extremes are indexed by so they refer to the prior bar's high or low, not the current bar's own value. The higher-timeframe trend reference is fetched with request.security() using a prior-bar source together with barmerge.lookahead_on — the standard non-repainting idiom that returns the last confirmed HTF bar's value. This pattern does not access future data.
How to read the chart
The Donchian rails (prior-bar highest and lowest closes) are plotted as thin green and red lines so the breakout level is visible.
A small triangle marks the breakout bar (below for bullish, above for bearish).
A directional tier label is placed on the breakout bar, color-graded from red at low scores to green at high scores. Text shows the tier and numeric composite score.
An "Evidence Board" dashboard panel displays each of the seven factors as a row, with gradient cells reflecting that factor's contribution, plus the composite score and tier.
All sub-scores are also output as hidden plots for use in the Data Window and alert messages.
Inputs
Inputs are grouped into five sections.
Core Settings : Donchian lookback, Bollinger Band length and standard-deviation multiplier, percentile-rank lookback, ATR length.
Filters : HTF trend reference, VWAP anchor (Session / Week / Month), optional "Require Compression Before Breakout" toggle.
Score Tuning : a 0 to 1 weight for each of the seven factors.
Visual Settings : panel position, panel size, label cap, marker toggles.
Any Alert() function call conditions : per-alert boolean toggles.
Alerts
Four alert conditions are provided: Strong Bull Breakout (bullish breakout with score at or above 80), Strong Bear Breakout, Any Breakout with Score ≥ 70, and Any Breakout with Score ≥ 80. Each alert is declared via alertcondition() for the native PulseWire alert UI and is fired programmatically through alert() when the corresponding input toggle is enabled. Programmatic alerts use alert.freq_once_per_bar_close. Alert message templates include {{ticker}}, {{interval}}, and {{close}} placeholders.
How to use this script
This is a continuation filter, not a complete system.
Look for a chart setup where a breakout would be your trade thesis (range break, base break, retest of a prior high, etc.).
Wait for a breakout marker.
Read the Evidence Board panel. A Strong or Valid score with HTF aligned is the highest-conviction case.
A Weak score on a Donchian breakout usually indicates either thin volume, no prior compression, or counter-trend pressure — useful as a "skip this one" signal.
The script does not place orders or define stops; sizing and exits remain the user's responsibility.
Limitations and honest caveats
The composite is a heuristic evidence weighting, not a probability. A Strong tier does not imply a specific success rate.
Fast news-driven breakouts may print with little prior compression and may receive lower scores than they deserve. The "Require Compression" filter is therefore off by default; users who want it strict can enable it.
The anchored VWAP uses a fixed anchor choice (Session, Week, or Month). It does not support multiple simultaneous VWAPs or user-defined anchor points.
Donchian breakouts on the current chart timeframe may not align with breakouts a user perceives at higher timeframes; consider the HTF alignment factor as a coarse check, not as multi-timeframe structure analysis.
The script does not include any backtesting, position sizing, or order management logic.
Disclaimer
This script is published for informational and educational purposes. It is not investment advice and is not a recommendation to buy or sell any instrument. Past appearance of any pattern, including high-quality breakouts, does not guarantee future behaviour. Users are solely responsible for their own trading decisions and risk management.
Indicator

Breakout and Retest Signals - FloAlgoThis indicator detects breakout and retest signals by identifying key pivot zones and validating price rejection through wick sweeps and volume analysis.
How It Works
The script operates in three stages:
Pivot Zone Detection — Identifies swing highs and lows, then constructs zones anchored to the candle body and wick that formed the pivot. Demand zones span from body top down to wick low; supply zones span from wick high down to body bottom.
Rejection Validation — Confirms a valid signal when price sweeps beyond the zone extreme (wick tip) and closes back through the zone body, indicating institutional liquidity capture.
Volume Confirmation — Uses lower timeframe volume delta and buy/sell ratio to validate signal strength, filtering weak rejections with insufficient conviction.
Key Advantages
No Repaint — Single-period pivot detection ensures signals fire on confirmed historical bars, eliminating repaint delay between alert and visual.
Fixed Width Zones — Zones do not grow indefinitely; they are drawn with fixed horizontal width and trimmed only on signal, keeping charts clean.
Range-Based Overlap Guard — Demand and supply zones cannot overlap; range-based checking prevents conflicting zones from occupying the same price area.
Professional Visuals — No text labels or arrow clutter; only shaded zones and volume ratio splits for clean, professional appearance.
Accurate Zone Geometry — Zones anchored to actual candle body and wick formations, not flat ATR bands.
Auto-Cleanup — Zones are automatically removed one bar after signal or on expiry, preventing chart clutter.
Seconds Chart Support — Volume timeframe input guarded to prevent errors on sub-minute charts.
No Signal Conflicts — Removed confirmation divisor that caused opposing signals on the same bar.
Zone Lifecycle
Unlike traditional indicators that grow zones indefinitely, this script uses a fixed-width approach:
Zones are drawn from the pivot candle to a fixed future bar (born + maxLife)
Upon signal, the zone right edge is trimmed to the signal bar
The zone remains visible for one bar after the signal, then is automatically removed
Expired zones without signals are cleanly purged to prevent chart clutter
Visual Elements
Shaded boxes marking demand (green) and supply (red) pivot zones
Volume ratio split boxes within zones showing buy/sell pressure balance
Dashed target projection lines from signal bars
Zone borders fade and thin out after signal confirmation
Key Settings
Swing Length — Sensitivity of pivot high/low detection
Max Bars Active — Fixed horizontal width of zones in bars
Min Bars Between — Minimum bars between consecutive signals
Max Zones Per Side — Maximum active zones per direction
Volume TF — Frame for volume delta analysis
Show Ratio Split — Display buy/sell volume ratio inside zones
Show TP Line — Display target projection lines
Indicator

Structure Deviation Ledger [JOAT]Structure Deviation Ledger
Introduction
Structure Deviation Ledger is an open-source structure-tracking overlay designed to monitor how price behaves around a stepped volatility corridor and pivot-derived structure rails. It combines pivot rail continuation, a stateful stepped midpoint, inner and outer ATR corridors, frozen breakout rails, right-edge structural labels, and an optional TP/SL scaffold when confirmed structural displacement occurs.
The purpose of the script is to answer a practical question: is price still behaving inside accepted structure, or has it displaced far enough to qualify as a meaningful structural event? By scoring deviation relative to a stepped corridor and confirmed pivot rails, the indicator provides a cleaner framework for continuation and failure analysis than simple moving-average crossovers.
Core Concepts
1. Pivot-Derived Structure Rails
Confirmed pivot highs and lows are connected into forward rails. These rails act as the nearest structural references for continuation or failure.
2. Stepped ATR Corridor
The script maintains a stepped midpoint derived from a smoothed basis and ATR logic. The midpoint only reanchors when price stretches far enough to justify a structural adjustment.
3. Confirmed Structural Breaks
A structural break is only promoted when price closes beyond the relevant active rail and also pushes outside the inner corridor. This confirmation rule is designed to reduce weak intrabar noise.
4. Frozen Break Rails
When a fresh break is confirmed, the script freezes a breakout rail and a related context box so the chart retains forward reference after the initial event.
5. Execution Scaffold
On fresh structural expansion or structural pressure events, the indicator can build an informational TP/SL ladder using ATR-based stop distance and configurable R multiples.
Features
Pivot structure rails: Forward-projected high and low rails derived from confirmed pivots
Stepped structure midpoint: State-aware corridor center that does not update every bar like a normal average
Inner and outer ATR corridors: Layered bands for contained vs displaced price behavior
Fresh break detection: Confirmed-bar breakout logic for upside and downside structural events
Frozen break rails and zones: Persistent post-break context on the chart
Right-edge labels: Live labels for midpoint, inner levels, and active rail reference
Optional TP/SL ladder: Entry, stop, TP1, TP2, TP3 with risk/reward fill
Top-right dashboard: Displays current structural state, deviation, corridor levels, and rail count
How to Use This Indicator
Step 1: Read whether price is inside the corridor or displacing beyond it.
Step 2: Compare price to the active high or low rail. These are the nearest structure references.
Step 3: When a fresh confirmed break appears, use the frozen rail and optional ladder as a planning map, not as a guarantee.
Step 4: If price returns back through the corridor after a break, treat that as a sign of failed displacement.
Indicator Limitations
Pivot rails are naturally delayed because pivots require confirmed bars on both sides
Stepped corridors intentionally lag during transitions in order to avoid unstable shifting
A dense market with many pivots can still generate frequent rail updates
The TP/SL ladder is informational only and does not place orders
Originality Statement
Structure Deviation Ledger is original in the way it merges pivot-derived structural rails, a stepped ATR corridor, frozen breakout context, and execution scaffolding into a single open-source structure overlay. Its goal is to provide a reusable institutional structure map rather than a simplified breakout marker.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Structural breaks and corridor deviations are derived from historical price action and do not guarantee future movement. Always use appropriate risk controls.
-Made with passion by jackofalltrades
Indicator

Liquidity Intelligence Entry SystemLiquidity Intelligence System
Liquidity Intelligence System is a liquidity-based market analysis framework designed around one central idea:
market movement is often shaped by liquidity pools, stop sweeps, directional bias, displacement, volatility conditions, and the quality of confluence around a signal.
This script is not designed to mark every candle, every swing, or every possible reversal. It is not intended to behave like a simple buy/sell indicator that reacts to one isolated condition. Its purpose is to detect structured liquidity events, compare multiple confluence models in the background, classify the current market regime, display signal quality, and project a visual risk/reward framework directly on the chart.
The script combines liquidity sweep detection, trend confirmation, FVG presence, volume expansion, RSI extremes, displacement behavior, market regime logic, adaptive preset modes, TP1/TP2/TP3 projection, visual liquidity mapping, and a model-performance dashboard into one organized workflow.
The goal is to help users review liquidity-based signals in a more structured way, not to promise future performance or replace independent analysis.
🔓 PUBLICATION NOTE
This script is published to provide a structured liquidity-analysis workflow.
The description is intentionally detailed because many users do not inspect every part of the Pine Script logic line by line. The purpose of this page is to explain what the script does, how its components connect, why the system is organized this way, and what limitations should be understood before using it.
The script should be treated as a decision-support and research tool. It is not financial advice, it is not an automated trading system, and it does not guarantee profitable results.
📌 OVERVIEW
At a high level, Liquidity Intelligence System does several things:
1. It detects liquidity sweep conditions around recent swing highs and swing lows.
2. It identifies buy-side liquidity and sell-side liquidity areas.
3. It can mark Equal High and Equal Low liquidity pools.
4. It changes swept liquidity levels visually once price takes them.
5. It evaluates 16 different liquidity/confluence signal models in the background.
6. It allows the user to manually choose which model should be active on the chart.
7. It prevents repeated same-direction signals from stacking unnecessarily.
8. It calculates virtual trade outcomes for each model.
9. It displays model statistics such as Trades, Win Rate, Profit Factor, Average R, and Net R.
10. It identifies the current best-performing model according to a selected metric.
11. It detects the current market regime using trend, ADX-style directional movement, ATR behavior, and candle body conditions.
12. It gives the most recent signal a Signal Quality score.
13. It displays a Signal Quality panel with a visual score bar.
14. It projects Entry, TP1, TP2, TP3, and SL levels on the chart.
15. It draws soft reward and risk zones around the active signal.
16. It provides theme modes for different chart styles.
17. It includes dynamic alert messages with signal, model, quality, regime, entry, TP, SL, and performance details.
The script is therefore not a single-purpose liquidity sweep marker. It is a multi-model liquidity intelligence and signal-review framework.
🧠 CORE IDEA
The core idea of the script is that a liquidity sweep by itself is only one part of the story.
A market may sweep a previous high or low, but that does not automatically mean the move is actionable. A sweep can lead to reversal, continuation, expansion, or false movement depending on the broader context.
For that reason, Liquidity Intelligence System does not rely on one condition alone.
Instead, it builds a layered model around the following question:
When liquidity is taken, what other evidence exists around that event?
The system can evaluate liquidity events together with:
- trend direction,
- recent FVG behavior,
- volume expansion,
- RSI extreme positioning,
- displacement strength,
- current market regime,
- and model-specific confluence.
This allows the script to compare different interpretations of the same market environment.
For example, one user may prefer simple liquidity sweeps, while another may prefer liquidity sweeps only when FVG and trend alignment are also present. The script does not force one fixed interpretation. It allows multiple models to run in the background while the user selects the model they want to display.
🧩 WHY THIS SCRIPT IS NOT A SIMPLE MASHUP
This script combines several concepts that are familiar in technical analysis and liquidity-based trading:
- swing highs and swing lows,
- liquidity sweeps,
- equal highs and equal lows,
- FVG-style imbalance logic,
- trend filters,
- volume filters,
- RSI conditions,
- displacement candles,
- ATR-based risk projection,
- dashboard statistics,
- alert messages.
These individual concepts are not unique by themselves.
The main purpose of this script is the way these elements are organized into one structured liquidity workflow:
Liquidity map
→ sweep detection
→ confluence model selection
→ market regime classification
→ signal quality scoring
→ TP1/TP2/TP3 projection
→ model-performance dashboard
→ dynamic alert system
Each part has a specific role.
- The liquidity map shows where price may be interacting with stop pools.
- The sweep engine defines the base signal event.
- The confluence models decide which extra filters should be required.
- The regime engine gives context about the current environment.
- The quality panel summarizes the last signal.
- The dashboard compares the performance of different models.
- The TP/SL projection gives a visual review structure.
- The alert system allows monitoring without constantly watching the chart.
For that reason, the script is intended as one complete liquidity-intelligence framework, not as a random collection of unrelated tools.
💧 WHAT THE SCRIPT DOES
The script begins by detecting swing-based liquidity references.
It uses recent pivot highs and pivot lows to define potential buy-side and sell-side liquidity levels.
Then it can classify and draw:
- BSL: Buy-Side Liquidity
- SSL: Sell-Side Liquidity
- EQH: Equal High liquidity
- EQL: Equal Low liquidity
When price later trades through one of these mapped levels, the script can visually mark that level as swept. This makes the liquidity map more informative because old untouched levels and swept levels are no longer displayed the same way.
After the liquidity engine identifies sweep conditions, the script evaluates whether the sweep qualifies under one of the available model combinations.
Those models are tested in the background, while the user chooses which one should be active on the chart.
The active model controls the visible LONG / SHORT labels and the projected Entry / TP / SL structure.
⚙️ HOW THE SCRIPT WORKS
1) LIQUIDITY SWEEP ENGINE
The script uses swing pivots to identify important recent highs and lows.
A buy-side sweep occurs when price moves above a previous swing high and then closes back below that swing high.
A sell-side sweep occurs when price moves below a previous swing low and then closes back above that swing low.
The script also checks sweep depth and wick rejection. This helps avoid treating every small break of a level as an equally meaningful sweep.
The sweep engine uses:
- swing pivot length,
- maximum sweep depth measured with ATR,
- rejection wick ratio,
- current candle structure,
- and the most recent mapped swing levels.
This base liquidity engine creates the foundation for all model combinations.
2) BSL / SSL LIQUIDITY MAP
The script can draw liquidity levels directly on the price chart.
The map may include:
- BSL above swing highs,
- SSL below swing lows,
- EQH when similar highs form near each other,
- EQL when similar lows form near each other.
The liquidity map is designed to be selective rather than excessive.
A quality mode controls how many levels are displayed:
- Balanced: more levels,
- Conservative: cleaner default view,
- Strict: fewer but more selective levels.
The script also limits the maximum number of active liquidity lines so the chart does not become overloaded.
3) SWEPT LIQUIDITY VISUAL STATE
When price reaches a mapped liquidity level, the script can mark that line as swept.
A swept liquidity line changes visually:
- the line becomes grey,
- the style changes,
- the label changes to SWEPT.
This makes it easier to distinguish active liquidity pools from liquidity that has already been taken.
This visual behavior is important because liquidity levels are not static forever. Once price has interacted with a level, its meaning may change.
4) EQUAL HIGH / EQUAL LOW LOGIC
The script can detect similar high or low points using an ATR-based tolerance.
Equal highs can represent a potential buy-side liquidity pool.
Equal lows can represent a potential sell-side liquidity pool.
Because instruments have different volatility, the tolerance is not fixed in raw price terms. It is scaled with ATR.
This makes the EQH / EQL logic more adaptive across different markets and timeframes.
🧠 16 MODEL SYSTEM
The script includes 16 model combinations.
These models are evaluated in the background:
1. LQ
2. LQ + Trend
3. LQ + FVG
4. LQ + Volume
5. LQ + RSI
6. LQ + Displacement
7. LQ + Trend + FVG
8. LQ + Trend + Volume
9. LQ + Trend + RSI
10. LQ + Trend + Displacement
11. LQ + FVG + Volume
12. LQ + FVG + RSI
13. LQ + FVG + Displacement
14. LQ + Volume + RSI
15. LQ + Trend + FVG + Volume
16. LQ + Trend + FVG + Volume + RSI + Displacement
The user can choose one active model from the settings.
The active model is the one that controls the visible chart signals.
The other models still run in the background for dashboard comparison.
This is one of the main ideas of the script: the user does not have to guess which confluence combination is currently performing better. The dashboard can compare the models over the visible historical calculation period.
📈 TREND COMPONENT
The trend component compares a fast EMA and a slow EMA.
If the fast EMA is above the slow EMA, the script treats the trend condition as bullish.
If the fast EMA is below the slow EMA, the script treats the trend condition as bearish.
This does not mean the EMA lines have to be plotted on the chart. They can work silently as internal filters.
When a model uses Trend, the liquidity signal must align with the EMA-based directional condition.
🟩 FVG COMPONENT
The FVG component checks for recent imbalance-style behavior.
The script identifies bullish and bearish FVG-style conditions and then checks whether such a condition has occurred within a recent lookback window.
This allows models such as:
- LQ + FVG,
- LQ + Trend + FVG,
- LQ + FVG + Volume,
- LQ + FVG + Displacement,
to require liquidity behavior together with recent imbalance context.
The FVG logic in this version is used as a filter and confluence component. It is not presented as a full FVG box-management system.
🔊 VOLUME COMPONENT
The volume component compares current volume against a volume moving average.
When current volume exceeds the selected volume average by the chosen multiplier, the script treats it as a volume expansion condition.
This can help models focus on sweeps that occur with stronger activity.
Volume is not used as proof of future direction. It is used as one additional context layer.
📉 RSI COMPONENT
The RSI component allows the script to include oscillator conditions in selected models.
For long models, RSI can be required to be near or below a selected lower threshold.
For short models, RSI can be required to be near or above a selected upper threshold.
This allows RSI to function as a contextual filter around liquidity events rather than as a standalone signal generator.
⚡ DISPLACEMENT COMPONENT
The displacement component checks whether the signal candle has enough body strength relative to ATR and total candle range.
A bullish displacement condition requires:
- bullish candle body,
- minimum body size relative to ATR,
- minimum body ratio inside the candle range.
A bearish displacement condition uses the opposite candle direction.
This helps identify signals where the sweep is followed by stronger directional candle behavior.
🧠 MARKET REGIME DETECTION
The script includes a market regime engine.
It classifies the current environment into states such as:
- Trend Up
- Trend Down
- Range
- Choppy
- High Vol
- Low Vol
- Neutral
The regime engine uses:
- directional movement logic,
- ADX-style trend strength,
- EMA trend direction,
- ATR compared to its average,
- candle body ratio behavior.
The purpose of this engine is to provide context.
A liquidity sweep in a trending market is not the same as a liquidity sweep in a range.
A signal during choppy conditions may require more caution than a signal during clean directional expansion.
The regime output is also used in the Signal Quality framework.
⭐ SIGNAL QUALITY SCORE
The Signal Quality score is a 0–100 style scoring framework.
The score is designed to summarize the most recent signal’s contextual quality.
It can consider:
- whether the signal is a valid liquidity event,
- whether the selected model’s trend condition is satisfied,
- whether the selected model’s FVG condition is satisfied,
- whether the selected model’s volume condition is satisfied,
- whether the selected model’s RSI condition is satisfied,
- whether the selected model’s displacement condition is satisfied,
- whether the market regime supports or conflicts with the signal direction.
The important detail is that the score is connected to the active model.
For example:
If the active model is LQ + FVG, FVG matters more directly.
If the active model is LQ + Volume, volume matters more directly.
If the active model is LQ + Trend + FVG + Volume, all of those conditions become part of the model-specific score.
This helps avoid a generic score that ignores the selected model’s logic.
📊 SIGNAL QUALITY PANEL
The Signal Quality panel displays a compact summary of the last signal.
It can show:
- current regime,
- market bias,
- last signal side,
- active model,
- signal score,
- mini score bar,
- alignment state.
The score bar is included to make the quality reading easier to review visually.
Example format:
Score: 78/100
Bar: ████████░░
This panel is not intended to guarantee that a signal will work. It simply summarizes how much contextual evidence was present when the signal appeared.
📊 MODEL DASHBOARD
The main dashboard compares the 16 models.
It includes:
- Trades
- WR
- PF
- Avg R
- Net R
- Active model row
- Best system row
The dashboard is meant for internal review.
It does not represent broker-executed trades. It is a virtual model-testing layer based on the script’s signal and TP/SL rules.
The dashboard helps the user compare whether one model is currently producing cleaner historical behavior than another, but it should not be interpreted as a guarantee that the same behavior will continue.
🏆 BEST SYSTEM ROW
The script can identify a Best System based on the selected metric.
The user can choose the best-system metric from:
- Net R
- Profit Factor
- Average R
- Win Rate
The system also uses a minimum trade count before a model can qualify for the Best row.
This is important because a model with only one or two trades can look misleading. The minimum trade threshold helps reduce the chance of highlighting a model with too little sample size.
🎛️ PRESET MODES
The script includes preset modes.
Available presets:
- Manual
- Scalping
- Intraday
- Swing
- Conservative
- Aggressive
- Funded Account Safe
The default preset is Intraday.
Preset modes do not simply change the name of the setting. They adjust internal effective values such as:
- TP / SL behavior,
- maximum bars in trade,
- sweep depth sensitivity,
- rejection requirement,
- FVG recency,
- volume multiplier,
- displacement requirements.
Manual mode allows the user to control the underlying settings directly.
Presets are included to make the script easier to adapt to different trading styles without requiring every setting to be adjusted one by one.
🎨 THEME SYSTEM
The script includes three visual themes:
Emerald Dark
A dark premium style using green and teal accents.
Crimson Pro
A more aggressive dark theme using red and high-contrast signal colors.
Ice Minimal
A cleaner light-style theme with black text and softer blue/grey visual structure.
The theme affects visual elements such as:
- dashboard colors,
- selected model row,
- best-system row,
- TP/SL/Entry line colors,
- TP/SL/Entry labels,
- reward and risk boxes.
The purpose is to make the same system usable across different chart backgrounds and visual preferences.
🎯 ACTIVE TRADE PROJECTION
When the active model produces a new signal, the script can project a visual trade framework.
The chart may display:
- Entry line
- TP1 line
- TP2 line
- TP3 line
- SL line
- reward zone
- risk zone
- price labels next to each level
The projected levels are based on risk multiples.
Default structure:
- TP1 = 1R
- TP2 = 2R
- TP3 = 3R
- SL = 1R risk
The user can adjust TP1, TP2, and TP3 R multiples from settings.
The projected structure is designed for review and visualization. It should not be treated as an instruction to enter a live trade without additional analysis and risk management.
🟢 TP / SL BACKTEST LOGIC
The script’s virtual testing engine is aligned with the TP1 / TP2 / TP3 structure.
If TP3 is reached, the virtual result is recorded using the selected TP3 R multiple.
If SL is reached, the result is recorded as -1R.
If the trade expires before TP3 or SL, the script can use the highest reached TP level or the open R result depending on what happened.
This creates a more consistent link between what appears visually on the chart and what the dashboard is evaluating.
Same-bar TP/SL behavior is handled by a conservative option. If both TP and SL appear to be hit during the same candle, the user can choose to count that situation conservatively.
🔁 NO CONSECUTIVE SAME-DIRECTION SIGNALS
The script includes a same-direction signal filter.
If a model produces a long signal, it will not keep printing long signals repeatedly until an opposite short signal occurs.
Likewise, if a model produces a short signal, it will not keep printing short signals repeatedly until an opposite long signal occurs.
This helps reduce repeated label clutter and makes the signal stream easier to review.
🚨 PRO ALERT SYSTEM
The script includes dynamic alert messages.
The alert message can include:
- signal side,
- active model,
- preset mode,
- quality score,
- market regime,
- alignment,
- entry price,
- TP1,
- TP2,
- TP3,
- SL,
- active model WR,
- active model PF,
- active model Avg R,
- active model Net R.
The script supports Text and JSON-style alert formats.
Important usage note:
To use the full dynamic Pro Alert message, create the PulseWire alert with:
Condition: Liquidity Intelligence System
Option: Any alert() function call
The regular alertcondition messages are fallback static alerts.
🧭 WHAT APPEARS ON THE CHART
Depending on settings, the script may display:
- LONG / SHORT labels,
- BSL liquidity lines,
- SSL liquidity lines,
- EQH liquidity lines,
- EQL liquidity lines,
- SWEPT liquidity labels,
- Entry line,
- TP1 line,
- TP2 line,
- TP3 line,
- SL line,
- reward area box,
- risk area box,
- price labels beside Entry / TP / SL,
- main model dashboard,
- Signal Quality dashboard.
This design is intentional.
The chart shows liquidity structure, active model signals, projected risk/reward, and review statistics in one organized view.
🧪 HOW TO USE THE SCRIPT
A practical workflow:
1. Add the script to your chart.
2. Start with the default Intraday preset.
3. Choose a theme that fits your chart background.
4. Select the active model you want to display.
5. Review the liquidity map: BSL, SSL, EQH, and EQL.
6. Wait for a liquidity sweep signal from the active model.
7. Check the Signal Quality panel.
8. Check the market regime and alignment state.
9. Review the Entry / TP1 / TP2 / TP3 / SL projection.
10. Compare the active model to the other models in the dashboard.
11. Use alerts if you want to monitor signals automatically.
12. Validate settings across the specific instruments and timeframes you actually trade.
The script is best used as a structured review framework, not as a blind execution system.
⚙️ SETTINGS REFERENCE
Manual Model Selection
- Active Signal Model: selects which of the 16 models appears on the chart.
- Preset Mode: selects the effective behavior profile.
- Show Active Model Labels: enables/disables signal labels.
- Signal Label Style: controls how much information appears in signal labels.
- LONG / SHORT Label Size: controls signal label size.
Virtual Trade Test
- ATR Length: ATR basis for risk calculations.
- Virtual TP ATR Multiplier: used in manual/preset logic where applicable.
- Virtual SL ATR Multiplier: used to define risk distance.
- TP1 R Multiple: first target multiple.
- TP2 R Multiple: second target multiple.
- TP3 R Multiple: third target multiple.
- Max Bars In Virtual Trade: maximum duration of virtual trade.
- If TP and SL Hit Same Candle, Count As Loss: conservative same-bar handling.
Liquidity Sweep
- Swing Pivot Length: pivot sensitivity.
- Max Sweep Depth ATR: maximum allowed sweep depth.
- Minimum Rejection Wick Ratio: wick rejection requirement.
- Show BSL / SSL Liquidity Lines: enables liquidity map.
- Show Equal High / Equal Low Lines: enables EQH/EQL.
- Liquidity Line Limit: maximum active liquidity lines.
- Liquidity Map Quality: controls how selective the liquidity map is.
- Equal High / Low Tolerance ATR: ATR-scaled equality tolerance.
Confirmation Filters
- Fast EMA Length: trend filter fast EMA.
- Slow EMA Length: trend filter slow EMA.
- EMA Source: source used for EMA calculations.
- Minimum FVG Size ATR: minimum FVG size filter.
- FVG Recent Bars: how recently FVG must have appeared.
- Volume SMA Length: volume baseline.
- Volume Spike Multiplier: volume expansion threshold.
- RSI Length: RSI calculation length.
- RSI Long Threshold: RSI condition for long models.
- RSI Short Threshold: RSI condition for short models.
- Minimum Displacement Body ATR: minimum displacement body size.
- Minimum Displacement Body Ratio: minimum body-to-range ratio.
Market Regime & Quality
- Show Signal Quality Table: enables/disables quality panel.
- Regime ADX Length: directional movement calculation length.
- Trend ADX Threshold: trend-strength threshold.
- Range ADX Threshold: range-condition threshold.
- Regime ATR Average Length: ATR baseline for volatility regime.
- High Volatility ATR Multiplier: high-volatility threshold.
- Low Volatility ATR Multiplier: low-volatility threshold.
- Choppy Body Ratio Threshold: body-ratio condition for choppy regimes.
Dashboard & Visuals
- Show Model Dashboard: enables/disables model comparison dashboard.
- Theme: selects Emerald Dark, Crimson Pro, or Ice Minimal.
- Dashboard Size: controls dashboard text size.
- BEST System Metric: selects best-system ranking logic.
- Minimum Trades For BEST Row: minimum sample size for best-system qualification.
Pro Alerts
- Enable Pro Alert Message: enables dynamic alert messages.
- Alert Message Format: selects Text or JSON-style format.
🧠 WHAT MAKES THIS SCRIPT ORIGINAL
This script uses familiar components such as swing highs/lows, EMA trend filters, volume comparison, RSI thresholds, ATR, and dashboard statistics.
Those components are not original by themselves.
The originality of this script lies in how those components are organized into a single liquidity-intelligence workflow:
Liquidity map
→ sweep detection
→ 16 model comparison
→ market regime classification
→ model-specific quality scoring
→ TP1/TP2/TP3 projection
→ dashboard review
→ dynamic alert output
This structure allows the script to function as a complete liquidity review environment rather than a simple signal marker.
⚠️ IMPORTANT PRACTICAL NOTES
The script’s behavior depends heavily on settings.
Signal frequency and signal quality may change based on:
- selected active model,
- preset mode,
- pivot length,
- sweep depth,
- rejection requirement,
- FVG recency,
- volume threshold,
- RSI thresholds,
- displacement settings,
- volatility conditions,
- symbol,
- timeframe.
A model that looks cleaner on one instrument may not behave the same way on another.
The dashboard is a virtual review layer. It is useful for comparing model behavior, but it should not be treated as proof of future results.
⚠️ LIMITATIONS AND SHORTCOMINGS
This script has important limitations:
- It does not guarantee profitable signals.
- It does not know future price movement.
- It does not replace risk management.
- It does not execute trades.
- It does not include broker slippage, commissions, spreads, or order-fill uncertainty.
- It uses chart data and bar-based logic.
- Same-bar TP/SL ambiguity is handled by a rule, not by true intrabar reconstruction.
- Liquidity sweeps can fail.
- FVG, trend, volume, RSI, and displacement filters can still produce false signals.
- The dashboard is historical and virtual, not a live brokerage performance report.
- Market regime classification is an analytical approximation, not an absolute truth.
- No confluence model removes all risk or uncertainty.
For these reasons, the script should be used as a structured analysis and review tool, not as a standalone trading system.
👤 WHO THIS SCRIPT MAY BE USEFUL FOR
This script may be useful for traders who:
- study liquidity sweeps,
- use smart-money-style market structure concepts,
- want BSL / SSL / EQH / EQL mapping,
- want multiple confluence models in one tool,
- want a visual TP1 / TP2 / TP3 framework,
- want a signal quality panel,
- want market regime context,
- want model comparison statistics,
- prefer organized chart-based review.
It may be less suitable for users who:
- want a fully automated trading system,
- want guaranteed buy/sell signals,
- do not use liquidity concepts,
- do not want dashboard-based review,
- prefer very minimal charts with no overlays,
- expect one model to work the same way on every market and timeframe.
🛡️ DISCLAIMER
This script is provided for educational and informational purposes only.
It does not constitute financial, investment, or trading advice.
No indicator can guarantee future results. Market conditions change, historical behavior does not ensure future behavior, and every user is responsible for their own analysis, validation, position sizing, and risk management.
Use this script as a structured decision-support and review framework, not as a promise of profitability.
Indicator

Adaptive Support and Resistance Zones [BigBeluga]🔵 OVERVIEW
Adaptive Support and Resistance Zones is a high-performance technical analysis tool designed to identify, manage, and visualize key supply and demand areas. Unlike static pivot indicators that clutter the chart with every minor high and low, this script employs volatility-adjusted logic (ATR) to ensure only the most significant structural levels are maintained.
The indicator treats support and resistance not as thin lines, but as dynamic zones , accounting for market "noise" and providing a clearer picture of where institutional interest actually lies.
🔵 CONCEPT
Volatility-Aware Detection — Uses ATR-based filtering to qualify pivot points. A level is only created if the price rejection is strong enough relative to current market volatility.
Smart Level Merging — Automatically consolidates levels that are too close to one another, preventing "line spaghetti" and identifying high-confluence zones.
Dynamic Zone Rendering — Visualizes S/R as shaded boxes. The width of these zones adapts to market volatility, providing a realistic representation of supply and demand.
Real-Time Breakout Tracking — Monitors price action in real-time to detect when a level is definitively breached, switching its status from "Active" to "Broken."
Automatic Pruning — Cleans the chart by removing levels that have exceeded a maximum age, ensuring your focus remains on current market structure.
🔵 HOW IT WORKS (IN-DEPTH)
1️⃣ Advanced Swing Detection
The indicator scans for Pivot Highs and Lows based on a user-defined Pivot Length.
The Strength Filter: It applies a "Min ATR Strength" check. For a pivot to be valid, the distance between the pivot point and its immediate neighbors must exceed a mathematical threshold of volatility. This filters out "fake" pivots during low-volume consolidation.
2️⃣ Adaptive Level Management
Merge Logic: Before a new level is drawn, the script checks if an existing level already exists within the "Merge Threshold." If it does, the indicator skips the new level, effectively treating the existing zone as the dominant area of interest.
Active vs. Broken: Levels remain "Active" as solid lines/zones as long as price respects them. Once price closes beyond the level (controlled by Break Sensitivity), the level is moved to the "Broken" category.
Visual Transition: Broken levels can be kept on the chart as muted, dotted lines—a crucial feature for traders who look for "S/R Flip" opportunities (where old resistance becomes new support).
3️⃣ The S/R Dashboard
A dedicated on-screen table provides a birds-eye view of the current structural state.
Nearest Resistance/Support: Displays the exact price of the closest active levels.
Last Break: Identifies the direction of the most recent volatility-confirmed breakout.
Active Counter: Keeps track of how many structural levels are currently being monitored by the system.
🔵 KEY FEATURES
ATR-Based Zone Width: Zones expand and contract based on market volatility, ensuring your stop-loss or entry buffers are mathematically sound.
Price Labels: Optional labels at the end of active lines provide the exact price for quick order entry.
Customizable Break Sensitivity: Define how much "daylight" price needs to show above or below a level before a breakout is confirmed.
Historical Record: Retain a specific number of recently broken levels to identify long-term historical confluence.
Clean Visuals: High-contrast colors for Support (Cyan) and Resistance (Orange), with fully customizable transparency.
🔵 HOW TO USE
Trading the Rejection: Look for price to enter a shaded Support or Resistance Zone. Wait for a reversal candle within the zone for a high-probability entry back toward the mean.
Trading the Breakout: When the "< Break" label appears, it confirms that price has closed beyond the zone with enough momentum to overcome the "Break Sensitivity" threshold.
The S/R Flip: Monitor "Broken" (dotted) levels. If price returns to a dotted Resistance line and treats it as Support, it confirms a structural shift in the market.
Volatility Buffers: Use the vertical height of the Zone Boxes to determine your "No-Trade Zone" or to help place stop-losses outside of the immediate area of market noise.
🔵 CONCLUSION
Adaptive Support and Resistance Zones transforms raw price action into an organized, data-driven roadmap. By automating the detection and management of key levels—while accounting for the ever-changing nature of market volatility—it allows traders to focus on execution rather than manual charting. Indicator

Triangle Pattern Detection [Dots3Red]Triangle Pattern Detection Indicator detects and draws triangle chart patterns in real time. The indicator identifies pivot highs and lows, validates converging trendlines, calculates the mathematical apex, and classifies each pattern by type.
How it works
The indicator scans for pivot highs and pivot lows using a configurable lookback length. Once two valid pivot highs and two valid pivot lows are found, it verifies that:
The trendlines are genuinely converging (spread shrinks from left to right)
No bar between the pivots violates the trendline boundary
The upper and lower patterns are aligned in time
The pattern meets minimum and maximum width requirements
If all conditions pass, the apex is calculated mathematically as the exact intersection point of the two trendlines, and the full triangle is drawn from the shared start bar to the apex.
Pattern Types Detected
Symmetrical Triangle — both lines converging toward each other
Ascending Triangle — flat upper resistance, rising lower support
Descending Triangle — declining upper resistance, flat lower support
Rectangle — both lines near horizontal
Visuals
🟡 Electric glow triangle
▼ / ▲ Pivot markers at pattern boundaries ( commented out in the code )
🔵 Bullish breakout signal / 🔴 Bearish breakout signal with glow effect and stem line
Number label at each triangle's start for cross-referencing with the info table
Info Table (top right)
Keeps a record of the last 5 detected triangles showing:
Column - Description
ID - Triangle number
Type- Pattern classification
Width - Pattern width in bars
BO date - The day the price broke out from the triangle pattern
Status - Live breakout status — Bull / Bear / Inside
The Status column updates on every bar so you can see in real time whether price has broken out of any recent pattern.
Settings
Pivot Length - Sensitivity of pivot detection (1–10). Lower = more patterns
Max Pattern Width - Maximum bars between first and second pivots
Start Bar Alignment Tolerance - Max distance between the start of the upper and lower pivots of the triangle's sides
Max Apex Distance - How far ahead the apex can project
Min Pattern Width - Filters out patterns that are too narrow to be meaningful
Breakout Threshold % - How far the price must close beyond the trendline to confirm a breakout
Notes
All triangles are drawn on the last bar only, avoiding repainting of historical patterns
Breakout detection scans from the leftmost bar of the pattern to the apex, firing on the first confirmed close beyond the boundary
Example on BTC 🪙 chart
Indicator

Breakout Pattern Setup [WillyAlgoTrader]📐 Breakout Pattern Setup is an overlay indicator that automatically detects converging price channels (wedges, triangles, pennants) by fitting trendlines to confirmed pivot points using a boundary-fit algorithm, then monitors for breakouts confirmed by a 5-factor strength scoring engine — with directional probability scoring while price is inside the channel, volume contraction verification, and automatic TP/SL placement based on the measured move (channel width projected from breakout). Once a breakout fires, the trade stays open until TP3 (full measured move) or SL is reached — with trailing to breakeven after TP1.
The core concept: converging channels compress volatility — when price breaks out of a narrowing range, the ensuing move tends to be proportional to the channel's maximum width. This indicator automates the entire workflow: detect pivots, fit upper and lower trendlines, verify convergence and volume contraction, score the breakout quality when it occurs, set targets based on the measured move, and track the trade to completion.
🧩 WHY THESE COMPONENTS WORK TOGETHER
Manual channel drawing is subjective — two traders will draw different trendlines from the same pivots. A breakout without strength scoring treats strong and weak breaks equally. Targets without measured-move anchoring are arbitrary.
This indicator chains each component into a sequential pipeline:
Pivot detection → Boundary-fit algorithm (best trendline pairs) → Convergence + width + volume contraction verification → Channel visualization → Directional probability scoring → Breakout detection + 5-factor strength scoring → TP/SL from measured move → Trailing SL to breakeven after TP1 → Trade outcome tracking (win rate)
The pivot detection feeds raw swing points to the boundary-fit algorithm. The algorithm tests all pivot pair combinations and selects the lines with the most touches and least deviation — producing objective, reproducible trendlines. The convergence filter ensures only narrowing channels qualify (not parallel channels or expanding formations). Volume contraction confirms the volatility squeeze is genuine. The directional score gives real-time probability before the breakout occurs. The 5-factor strength score evaluates the breakout candle itself. And the measured-move TP/SL system manages the trade from entry through breakeven trail to final outcome.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Boundary-fit trendline algorithm.
The algorithm finds optimal upper and lower trendlines by exhaustive search over confirmed pivots:
Upper boundary: For every pair of pivot highs (A, B) within the lookback window:
— Project a line through A and B
— Check all other pivot highs: none may exceed the line by more than deviationMax × ATR (no overshoots beyond tolerance)
— Count how many pivot highs fall within touchTolerance × ATR of the line (touches)
— Keep the pair with the most touches
Lower boundary: Same process for pivot lows — no undershoot beyond tolerance, maximize touches.
A trendline is projected via: y = y1 + (y2 − y1) × (x − x1) / (x2 − x1). The touch tolerance (default 0.15× ATR) and deviation maximum (default 0.3× ATR) are both ATR-normalized, adapting to the instrument's volatility.
The scan runs on new pivots and every 10 bars (configurable interval), testing up to 15 recent pivots per side — producing the objectively best-fitting converging channel from available data.
2️⃣ Multi-criteria channel validation.
A detected channel must pass all five checks:
— 📏 Convergence : the channel is narrowing — current width < starting width. Convergence rate = 1 − (widthNow / widthStart) ≥ minConvergence (default 0.02 = at least 2% narrower)
— 📐 Width range : current width ≥ minChannelWidth × ATR (not too thin) AND < 10× ATR (not too wide)
— 📊 Volume contraction (when enabled): average volume inside the channel < 85% of average volume before the channel — confirms the volatility squeeze is accompanied by declining participation
— 📍 Price position : previous bar's close is inside the channel (not already broken out)
— ⚡ No inversion : upper boundary > lower boundary at the current bar
3️⃣ 5-factor breakout strength scoring (0–100).
When price closes beyond a channel boundary:
— 📏 Penetration depth (25%) : (close − boundary) / ATR, normalized to 0–1 (capped at 2× ATR). Deeper penetration = stronger commitment.
— 📊 Body ratio (15%) : candle body / candle range. Full-body candles (small wicks) indicate conviction. Doji/pin bars = weak.
— 📍 Body commitment (15%) : body midpoint beyond the boundary = 1.0, inside channel = 0.3. Full body commitment means the entire candle moved through, not just a wick.
— 📈 Volume confirmation (25%) : volume > SMA(20) × volumeSpikeMult = 1.0, otherwise 0.4. Above-average volume on the breakout bar confirms institutional participation.
— 💪 Momentum confirmation (20%) : RSI(14) > 50 for bullish (or < 50 for bearish) = 1.0, otherwise 0.4.
Classification: Strong (≥ 65), Medium (35–65), Weak (< 35). The strength is displayed on the breakout label and in the dashboard.
4️⃣ Directional probability scoring (0–100) while inside channel.
Before the breakout occurs, the indicator provides a real-time directional score:
— 📐 Channel slope bias (35%) : midline slope normalized by ATR — upward-sloping channels bias bullish, downward bias bearish
— 📊 RSI bias (35%) : (RSI − 50) / 50 — momentum direction
— 📍 Position in channel (30%) : (close − lower) / width — price near upper boundary biases bullish, near lower biases bearish
Score > 60% = bullish lean, < 40% = bearish lean, 40–60 = neutral. Displayed in the dashboard as "Bull Prob" — gives you a heads-up before the breakout direction is confirmed.
5️⃣ Measured-move TP/SL with trailing to breakeven.
On breakout:
— Target = breakout boundary + channel maximum width (the classic measured-move projection)
— TP1 = entry + fullMove / 3
— TP2 = entry + fullMove × 2/3
— TP3 = entry + fullMove (full measured move)
— SL = opposite channel boundary ± ATR padding (configurable, default 0)
After TP1 is hit, the SL moves to breakeven (entry price) — the entry label updates to show "(SL → BE)" and the original SL label dims. Trade stays open until TP3 (full measured move) or SL is reached. TP/SL labels show percentage distance from entry and update with ✓ / ✗ markers on hit. SL has priority on same-bar conflicts (SL checked before TPs).
6️⃣ Win/loss tracking with historical statistics.
The indicator tracks: total patterns detected, bull/bear breakout counts, wins (TP1 hit before SL), losses (SL hit before TP1), and win rate — all displayed in the dashboard. Two display modes: "All" (full history of all channels and trades) or "Last Only" (clean chart showing only the most recent pattern + trade, automatically cleaned up when a new pattern is detected).
7️⃣ Channel visualization with breakout color shift.
Before breakout: neutral channel lines (configurable color, default yellow) with optional fill. On bullish breakout: lines and fill shift to green. On bearish breakout: lines shift to red. Channel timeout (max width bars with no breakout) resets the scanner to look for new patterns.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Pivot detection: ta.pivothigh/ta.pivotlow with configurable lookback. Pivots stored in arrays (up to 60 recent, capped).
Step 2 — Boundary-fit scan: On new pivot or every 10 bars (if no active channel and no open trade): test all pairs of pivot highs for upper boundary, all pairs of pivot lows for lower boundary. Select best-fit lines by maximum touches.
Step 3 — Channel validation: Convergence rate ≥ minimum, width within range, volume contraction passes, price is inside, no inversion → channel activated.
Step 4 — Inside-channel monitoring: Directional probability score updated each bar. Channel lines extend. Background optional.
Step 5 — Breakout detection: Close beyond boundary + bar confirmed → 5-factor strength scoring → signal + TP/SL placement → channel lines recolored.
Step 6 — Trade tracking: TP1/TP2/TP3 and SL hit detection with SL priority. TP1 hit → trailing SL to breakeven. TP3 or SL → trade closed, channel reset, scanner resumes.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — it scans for converging channels automatically
2. Yellow channel lines appear when a valid pattern is detected
3. Dashboard shows "Active" + "Bull Prob" percentage
4. On breakout → "Long"/"Short" label + Entry/SL/TP1–TP3 lines appear
5. TP1 hit → SL moves to breakeven. TP3 → trade complete.
👁️ Reading the chart:
— 🟡 Channel lines = active converging pattern (pre-breakout)
— 🟢 Channel turns green = confirmed bullish breakout
— 🔴 Channel turns red = confirmed bearish breakout
— 🟢 "Long" / 🔴 "Short" label = confirmed breakout signal with strength
— 🔵 Blue line = entry, 🔴 red = SL, 🟢 green dashed = TP1/TP2/TP3
— ✓ on TP labels = target hit, ✗ on SL = stopped out
📊 Dashboard fields:
— Pattern: Active / Bull Break / Bear Break / Scanning
— Strength: Strong / Medium / Weak (5-factor score)
— Trade: Active / TP1 ✓ (BE) / TP2 ✓ / TP3 ✓ / SL Hit
— Bull Prob: directional probability (0–100%) while inside channel
— R:R (TP1): risk-to-reward ratio
— Touches: upper/lower boundary touch counts
— Vol Contraction: in-channel vs pre-channel volume ratio
— Convergence: narrowing rate percentage
— Patterns / Breaks / Win Rate: cumulative statistics
🔧 Tuning guide:
— No patterns found: decrease Min Touches (2), increase Max Channel Width (150+), decrease Min Convergence (0.01)
— Too many weak patterns: increase Min Touches (3), increase Min Channel Width ATR (0.7+)
— Weak breakouts: increase Volume Spike Mult (1.5+), enable Momentum Confirmation
— SL too tight: increase SL Padding (0.2–0.3 ATR)
— Want clean chart: set Pattern History to "Last Only"
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Pivot Detection Length (default 5): swing lookback
— Min Touches (default 2): pivots per boundary
— Max Channel Width (default 120 bars): lookback limit
— Min Convergence Rate (default 0.02): narrowing threshold
🔍 Filters:
— Volume Spike Mult (default 1.2): breakout bar volume requirement
— Volume Contraction (default On): require declining volume in channel
— Momentum Confirmation (default On): RSI alignment
🛡️ Risk:
— SL Padding (default 0 ATR): buffer beyond opposite boundary
— Label Offset (default 20 bars): right-side level label distance
🔧 Advanced:
— Touch Tolerance (default 0.15 ATR): pivot proximity to trendline
— Max Deviation (default 0.3 ATR): maximum pivot overshoot
— Min Channel Width (default 0.5 ATR): filter out thin channels
📐 Channel Lines:
— Show Channel Fill (default On), color and width configurable
🔔 Alerts
— 🟢 BUY / 🔴 SELL — breakout with strength, entry, SL, TP1–TP3
— 🟡 PATTERN DETECTED — new channel found
— 🎯 TP1 / TP2 / 🏆 TP3 HIT — trade progress
— 🛑 SL HIT — stopped out
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All breakout signals require barstate.isconfirmed. Channel detection runs on confirmed pivots (equal left/right lookback). The boundary-fit algorithm selects the best trendlines from historical pivots — the resulting lines are objective and reproducible.
— 📐 The boundary-fit algorithm tests all valid pivot pairs (up to 15 per side) and selects the combination with the most touches that satisfies the deviation constraint. This is an exhaustive search, not a linear regression — it produces the tightest-fitting boundary lines possible from the data.
— ⚖️ The measured-move target (channel width projected from breakout) is the classic technical analysis projection for converging patterns. TP1/TP2/TP3 divide this move into thirds: TP1 = 33%, TP2 = 67%, TP3 = 100% of the projected move.
— 📊 Volume contraction compares average volume inside the channel vs before the channel over the same number of bars. A ratio below 85% confirms genuine volatility compression.
— 🔒 Once a breakout fires, the trade stays open until TP3 or SL is reached — there is no intermediate invalidation. The channel remains active while the trade is open. Channels without a breakout timeout after the max channel width in bars.
— 📏 SL priority: on a bar where both SL and TP are touched, SL is checked first . After TP1, SL moves to breakeven (entry price).
— 🛠️ This is a pattern detection and breakout scoring tool , not an automated trading bot. It identifies converging channels, scores breakouts, and sets measured-move targets — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume features auto-adapt to instruments without volume data. Indicator

Flag Breakout Forecasts [AlgoAlpha]🟠 OVERVIEW
This indicator detects converging price channels — commonly called flags or wedges — directly on the chart using a zigzag-based pivot detection algorithm. It identifies three collinear pivot points on both the highs and the lows to confirm a valid channel, then monitors the channel in real time for a breakout.
Beyond just drawing the channel, the script assigns probabilistic forecasts to each active pattern. It uses the historical distribution of past breakout durations and directions to estimate the likelihood of an imminent breakout, whether that breakout will be bullish or bearish, and adjusts those estimates using live volume data accumulated inside the pattern.
A supplemental volume table and a net-volume gauge render alongside each detected pattern, giving traders a second lens into the supply-and-demand balance before a move resolves.
🟠 CONCEPTS
Zigzag — A filtered sequence of alternating swing highs and swing lows. Pivots are confirmed only after a user defined bars on each side, so shorter user defined values capture minor swings and larger values require more significant price moves.
Collinearity check — Given three pivot points, the script projects a straight line from the first to the third and measures how far the middle pivot deviates from it, expressed as a percentage of price. If the deviation falls below the tolerance threshold, the three pivots are treated as lying on the same trendline.
Converging channel — A pair of trendlines (one through swing highs, one through swing lows) where the gap between them narrows from left to right. This geometry distinguishes flags and symmetric wedges from parallel channels.
Early detection — When one trendline is confirmed but the other lacks a third pivot, the script uses the current running extreme (an unconfirmed potential pivot) as a temporary third point. The resulting line is drawn dashed and upgrades to solid when the pivot is confirmed.
Breakout confirmation — A break is logged after the close exits the projected channel boundary for two consecutive bars, or immediately when the breakout candle body extends well beyond the boundary and its body size is at least 3 standard deviations above the 20-bar mean body length.
Normal CDF approximation — Breakout duration probabilities are derived using the Abramowitz and Stegun rational approximation to the standard normal cumulative distribution function, applied to z-scores computed from the historical distribution of past breakout durations.
Net volume ratio — Bullish volume (up-close bars) minus bearish volume (down-close bars), divided by total volume, mapped to a −100 to +100 scale. Used to tilt the directional probability estimate away from the purely historical base rate.
🟠 FEATURES
Automatic channel detection — Channels are drawn the moment three collinear pivots are confirmed on each side with matching alignment and convergence.
• Solid lines for fully confirmed channels.
• Dashed lines for the side that is still waiting on a third confirmed pivot.
Probabilistic overlay label — Displayed above each active channel.
• P(break): probability that a breakout will occur soon, based on how the current pattern duration compares to historical durations.
• P(bull) / P(bear): directional probabilities derived from historical breakout directions and blended with live net volume.
Net volume gauge — A color-gradient vertical bar drawn to the right of the last candle, with a pointer showing whether up-close or down-close volume dominates the current pattern.
Volume statistics table — Shows bullish volume, bearish volume, net volume, total volume, ATR, and pattern duration for the most recent active pattern. Cell background intensity scales with volume magnitude.
Breakout signals — Arrow labels mark the breakout bar with the direction, total volume absorbed, and the number of bars the pattern lasted.
Background highlight — A subtle background color appears on the bar when a new pattern is first detected. To help users know the exact time the pattern was detected
🟠 HOW TO USE
Adjust len to match the swings you trade — lower values (3–5) for intraday patterns, higher values (10–20) for swing or position setups.
Tighten collinearity tolerance to 0.1–0.2% if you want only very clean trendline alignments; loosen it toward 1% if you want the indicator to catch more approximate formations.
Watch the dashed channel side — it signals an early, unconfirmed pattern. Treat it as a warning rather than a confirmed setup, and wait for it to turn solid before acting.
Check P(break) in the label — a reading above 70% means the current pattern has already lasted longer than most historical patterns, suggesting a resolution is statistically overdue.
Use P(bull) and P(bear) alongside the volume gauge — when P(bull) is elevated and the gauge leans bullish, the two signals agree on direction. Disagreement between them calls for extra caution.
Reference the volume table's net row — persistently positive net volume during a bearish-looking wedge can indicate absorption of selling pressure and a possible upside resolution.
Set alerts for "Pattern formed," "Bullish breakout," "Bearish breakout," and the strong-break variants to monitor multiple instruments without watching the chart continuously.
🟠 CONCLUSION
Flag Breakout Forecasts detects converging price channels using zigzag pivot collinearity and geometric validation, then layers on probabilistic duration and direction estimates derived from each instrument's own historical breakout data. The result is a self-calibrating pattern tool that combines structural chart analysis, volume profiling, and statistical inference in a single overlay. Indicator

Indicator

Indicator
