Zeiierman Trend Pressure (Zeiierman)â Overview
Zeiierman Trend Pressure (Zeiierman) is a multi-layer trend pressure and exhaustion oscillator designed to visualize short-term momentum, persistent trend structure, directional pressure, and exhaustion states within a normalized 0 to -100 range.
Instead of relying on a single oscillator calculation, the indicator separates market behavior into three distinct components:
⢠Z-Pulse = fast reactive pressure
⢠Z-Trend = slower macro-weighted trend pressure
⢠Pressure Core = broader directional pressure and regime structure
Z-Pulse reacts quickly to changes in local range position, while Z-Trend blends fast, structural, and macro range measurements with a strong weighting toward the longer-term trend. The Pressure Core then evaluates candle position, candle body, wick behavior, and recent impulse to provide an additional view of directional pressure.
The indicator also contains a persistent Pressure Exhaustion model. When both Z-Pulse and Z-Trend reach an extreme region, an exhaustion state can become active. Instead of disappearing immediately when either line moves slightly away from the extreme, the state uses confirmation and release logic to remain active until pressure has meaningfully weakened.
Pressure Core coloring identifies the broader directional environment:
⢠Core Bull = positive directional pressure
⢠Core Bear = negative directional pressure
⢠Core Neutral = mixed or insufficient directional pressure
Dots show active pressure states, while triangles identify the beginning of an upper or lower pressure event. Price boxes can also be projected directly onto the chart while an exhaustion state remains active.
â How It Works
⪠Z-Pulse
Z-Pulse is the indicator's fast component. It first measures where the current close sits inside the recent price range using a Williams-style normalized range calculation.
rangePosition = 100 * (close - highest) / (highest - lowest)
A stochastic transformation of this fast range reading is then blended back into the original value.
Z-Pulse Raw =
rangePosition * 0.72
+ stochasticPulse * 0.28
The result is smoothed with an EMA to create Z-Pulse. This gives the indicator a responsive line that can quickly detect changes in local market pressure while staying within the 0 to -100 oscillator range.
⪠Z-Trend
Z-Trend is designed to represent the more persistent side of market pressure.
Three normalized range measurements are calculated using the Pulse Range, Trend Range, and Macro Trend lengths. These readings are combined using fixed internal weights, with the macro component receiving the largest influence.
Z-Trend Target =
Fast Range * 0.10
+ Trend Range * 0.18
+ Macro Range * 0.72
The engine then measures agreement between the three range layers and the efficiency of recent price movement.
When the market is moving efficiently and the range layers agree, Z-Trend becomes more resistant to short counter-trend movements. Persistent occupation of the upper or lower oscillator region also increases the Trend Persistence effect.
This makes Z-Trend slower and more stable than Z-Pulse, allowing it to represent the underlying directional structure instead of reacting to every short-term fluctuation.
⪠Pressure Core
Pressure Core measures each candle's internal structure relative to a larger price range.
It combines five components:
⢠closing location inside the range
⢠average candle location
⢠candle-body direction
⢠upper versus lower wick pressure
⢠recent five-bar price impulse
pressure =
closeLocation * 0.42
+ meanLocation * 0.23
+ bodyBias * 0.13
+ wickBias * 0.12
+ impulse * 0.10
A reactive pressure model and a slower regime model are then combined using the Regime Weight setting.
Pressure Core =
Regime Pressure * Regime Weight
+ Reactive Pressure * (1 - Regime Weight)
This creates a third view of market pressure that is independent of the Z-Pulse / Z-Trend relationship.
⪠Pressure Exhaustion
Pressure Exhaustion begins when both Z-Pulse and Z-Trend occupy the same extreme region.
upperPressure = Z-Pulse >= upperLevel
and Z-Trend >= upperLevel
lowerPressure = Z-Pulse <= lowerLevel
and Z-Trend <= lowerLevel
The state does not use a simple one-bar threshold cross. It includes entry confirmation and a separate release distance so temporary fluctuations do not immediately terminate a persistent pressure state.
This creates a hysteresis effect, where entry and release conditions are intentionally different.
At normal and higher sensitivity settings, both Z-Pulse and Z-Trend must move away from the extreme before the state is released. At the lowest sensitivity settings, the state is deliberately allowed to become much less stable.
â How to Use
Zeiierman Trend Pressure can be used in three main ways: Trend Trading, Continuation Trading, and Reversal Trading.
Z-Pulse reacts faster to short-term changes in pressure, while Z-Trend shows the slower and more persistent trend direction. Pressure Core can then be used as an additional confirmation of the broader market bias.
⪠Trend Trading
Use Z-Trend and Pressure Core to identify the main directional environment.
When Z-Trend is holding in the upper half of the oscillator and Pressure Core is Bull-colored, bullish pressure is dominant. This favors looking for long setups.
When Z-Trend is holding in the lower half , and Pressure Core is Bear-colored, bearish pressure is dominant. This favors looking for short setups.
⪠Continuation Trading
For continuation setups, look for temporary pullbacks within an already established trend.
⢠Bullish Continuation Setup
During a bullish trend, Z-Trend and Pressure Core should remain bullish while Z-Pulse temporarily moves lower. This shows that short-term pressure has weakened, but the broader trend structure is still intact.
⢠Z-Trend remains bullish
⢠Pressure Core remains Bull-colored
⢠Z-Pulse drops lower during the price pullback
⢠Z-Pulse then turns higher again
⢠Price begins continuing in the direction of the broader bullish trend
⢠Bearish Continuation Setup
During a bearish trend, Z-Trend and Pressure Core should remain bearish while Z-Pulse temporarily moves higher. This shows that short-term pressure has strengthened against the trend, but the broader bearish structure is still intact.
⢠Z-Trend remains bearish
⢠Pressure Core remains Bear-colored
⢠Z-Pulse temporarily pushes higher during a price bounce
⢠Z-Pulse then turns lower again
⢠Price begins continuing in the direction of the broader bearish trend
The important distinction is that Z-Pulse is allowed to move against the trend temporarily. That is the pullback. As long as Z-Trend and Pressure Core remain aligned with the broader direction, the move can be treated as a potential continuation setup rather than a full trend reversal.
⪠Reversal Trading
The pressure boxes highlight areas where the market has remained under extreme directional pressure for a period of time.
The box itself shows the price range formed while the pressure state is active. The triangle at the end of the box marks the Pressure Release, which is the important confirmation for a potential reversal.
⢠Bullish Reversal
A blue box forms when Z-Pulse and Z-Trend remain under strong downside pressure.
While the box is active, bearish pressure is still present, so the box alone is not a buy signal.
When the blue triangle appears, the Lower Pressure state has been released. This shows that downside pressure is weakening and can mark a potential bullish reversal area.
⢠Blue Box = downside pressure is active
⢠Blue Triangle = downside pressure has released
⢠Bearish Reversal
A red box forms when Z-Pulse and Z-Trend remain under strong upside pressure.
While the box is active, bullish pressure is still present, so the box alone is not a sell signal.
When the red triangle appears, the Upper Pressure state has been released. This shows that upside pressure is weakening and can mark a potential bearish reversal area.
⢠Red Box = upside pressure is active
⢠Red Triangle = upside pressure has released
The key idea is to wait for the pressure release rather than trying to predict the reversal while the box is still developing.
â Settings
Pulse Range: Controls the primary range window used by Z-Pulse.
Pulse Stochastic: Controls the stochastic transformation applied to the fast range reading.
Pulse Smoothing: Controls EMA smoothing of Z-Pulse. Higher values create a smoother and slower response.
Trend Range: Controls the medium-term structural range used by Z-Trend.
Macro Trend: Controls the longest range component used by Z-Trend. This component has the largest internal weighting.
Trend Smoothing: Controls the final smoothing of Z-Trend.
Trend Persistence: Controls how strongly persistent occupation of an extreme region influences Z-Trend.
Exhaustion Zone: Controls the base location of the upper and lower pressure regions.
Sensitivity: Controls exhaustion selectivity, confirmation, release distance, and state persistence. Lower values are looser and more inconsistent, while higher values are stricter and more persistent.
Reactive Smoothing: Controls smoothing of the reactive component inside Pressure Core.
Regime Weight: Controls how much influence the slower Pressure Core regime receives relative to reactive pressure.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicador

Reversal Radar PRO | Market Tops & Bottoms
⺠Reversal Radar PRO â Tops & Bottoms
Most âreversalâ tools fire one arrow and disappear. This one runs three layers: a heads-up while the bar is still forming, a confirmed print after the swing is locked, and a live status on whether that reversal is still valid.
The point is not to catch every wick. It is to grade the turn, map the zone, and tell you when the chase is already late.
â Early-warning
Live-bar gauge. It can repaint â that is stated on purpose. Use it as danger / opportunity forming, not as an entry.
â¡ Confirmed
Pivot-locked after the right-side bars. Does not repaint. Weighted 0â100 confidence with a grade, a vote floor, and a cooldown. Factors that can vote: RSI extreme, RSI divergence (quality-scored), volume climax, Bollinger pierce, over-extension from the mean, Stoch-RSI, wick rejection, engulfing, higher-TF RSI, liquidity sweep. Regime can boost or cut the score. Hidden divergence trims it â that is continuation, not a turn.'
⢠Follow-through
Once a confirmed top or bottom is on, the radar tracks:
Active / late / soft invalid / hard invalid / target hit
Soft and hard invalidation distances
Chase quality (good â poor) vs progress to target
Mapped target and R:R
ðº On the chart
Confirmed labels (confidence + grade) or simple arrows
Tiny diamonds for early-warning
Reversal zone boxes at the pivot
Clustered S/R that merge nearby swings, count touches, and flip when broken
ð Dashboard
Regime and âbest playâ (fade the trend, or both sides). Trend efficiency. Volatility state. RSI / HTF RSI / Stoch-RSI. Bollinger position. Extension. Volume vs average. Divergence quality. Early-warn reading. Active signal, status, chase, target. Nearest S/R. Last print and how many bars ago.
ð¯ How to use it
Wait for confirmed unless you accept that early-warning will flicker. In a strong uptrend, bottoms are the preferred fade â not every red wick. If chase already reads late, you missed the turn; do not market-order the remainder. Hard invalidation ends the idea. Soft invalidation is a warning, not a rewrite of history. Indicador

Momentum Sequence Strategy+ [Herman]Momentum Sequence Strategy is an open-source, rules-based price-action strategy designed to test momentum continuation following a defined candle sequence.
The strategy does not use moving averages, oscillators, volume indicators, or higher-timeframe data. Its signals are derived entirely from the relationship between consecutive OHLC candles.
The objective is to identify situations where an initial candle establishes a protected price extreme and is followed by a sequence of candles showing consistent momentum in the opposite direction.
How the strategy works
The model begins with a Main Candle, followed by a user-defined number of consecutive confirmation candles.
The number of following candles can be set to:
2
3
4
5
The default setting is 5 following candles.
Long setup
A Long setup requires:
The Main Candle to be bearish.
Every following candle to be bullish.
The low of every following candle must remain strictly above the low of the Main Candle.
Each new bullish candle must close higher than the previous bullish candle.
No position may already be open.
In simplified form:
Bearish Main Candle -> Bullish -> Bullish -> ... -> Long
The low of the Main Candle acts as the invalidation level for the sequence.
Short setup
The Short setup is the exact inverse of the Long setup.
A Short setup requires:
The Main Candle to be bullish.
Every following candle to be bearish.
The high of every following candle must remain strictly below the high of the Main Candle.
Each new bearish candle must close lower than the previous bearish candle.
No position may already be open.
In simplified form:
Bullish Main Candle -> Bearish -> Bearish -> ... -> Short
The high of the Main Candle acts as the invalidation level.
Long and Short trading can be enabled or disabled independently.
By default:
Long Trades: ON
Short Trades: OFF
The strategy allows only one open position at a time.
Stop Loss
For Long trades, the Stop Loss is placed at the low of the Main bearish Candle.
For Short trades, the Stop Loss is placed at the high of the Main bullish Candle.
This means the candle that begins the sequence defines the structural invalidation point of the trade.
Take Profit
The strategy uses configurable R-based targets:
0.5R / 1R / 1.5R / 2R
The default setting is 1.5R.
For a Long setup, risk is measured from the closing price of the final confirmation candle to the low of the Main Candle.
For a Short setup, risk is measured from the closing price of the final confirmation candle to the high of the Main Candle.
The selected R multiple is then applied to that distance to calculate the Take Profit level.
Important execution detail
The strategy identifies a completed sequence using confirmed candle data.
Under TradingView's standard historical strategy execution model, a market order generated after a confirmed bar will normally be filled on the next available tick, which is typically the open of the following bar.
The strategy calculates its R-based target using the close of the signal candle, rather than the eventual simulated market fill price.
Because of this, the selected 0.5R, 1R, 1.5R, or 2R setting represents the strategy's target calculation model and may not equal the exact realized risk-to-reward ratio measured from the simulated fill price. Gaps, market movement between bars, commissions, and slippage can further affect actual results.
Visuals
The strategy can display:
Long setup markers
Short setup markers
Active Stop Loss
Active Take Profit
A configurable statistics/settings table
The table displays the currently selected Take Profit, sequence length, and enabled trade directions.
Default configuration
The default script inputs are:
Following Candles: 5
Take Profit: 1.5R
Long Trades: ON
Short Trades: OFF
Entry Signals: ON
Stop Loss / Take Profit display: ON
These defaults are provided as a starting configuration for research and are not presented as optimized parameters for any particular market or timeframe.
Users are encouraged to evaluate different configurations across sufficiently large datasets rather than selecting parameters solely because they produced favorable historical results.
Intended use and limitations
This is a mechanical backtesting strategy intended for studying a specific candle-sequence behavior.
It does not evaluate market regime, trend, volatility, liquidity, volume, news events, session context, support/resistance, or other discretionary information.
A valid sequence therefore does not imply that a profitable trade will follow.
Historical strategy results are hypothetical and do not predict future performance. Results can vary materially depending on symbol, timeframe, trading costs, liquidity, execution assumptions, and selected parameters.
The strategy should be evaluated on standard price-based candlestick charts. Non-standard chart types such as Heikin Ashi, Renko, Range, Kagi, or Point & Figure can produce strategy results that do not correspond to tradable market prices.
This version extends that foundation with:
Pine Script v6 implementation
Configurable 2-5 candle sequence length
Mirrored Short-side logic
Independent Long/Short controls
Configurable R-based profit targets
One-position-at-a-time execution
Stop Loss and Take Profit visualization
Configurable on-chart settings table
Expanded user controls and documentation
The script is published open-source so users can inspect the complete methodology, verify its behavior, modify it, and conduct their own research. Estrategia

Reversal Probability Profile [AlgoAlpha]ð OVERVIEW
Reversal Probability Profile maps where confirmed price reversals have historically concentrated. Instead of treating every support or resistance level equally, it builds a price-based profile from confirmed pivot highs and lows and shows which areas have produced the greatest concentration of reversals.
The profile combines pivot-based support and resistance, reversal density, price clustering, and a maximum reversal zone. This gives traders a structured view of where price has repeatedly changed direction and how the density at one level compares with the strongest reversal area in the current calculation range.
Active support and resistance levels also display a normalized Reversal Probability. This value represents the reversal density at that level relative to the highest-density profile bin. It is a relative density measure, not a statistical forecast of the probability that price will reverse.
ð CONCEPTS
Pivot High â A confirmed local high where price is higher than the surrounding bars defined by the Pivot Left Bars and Pivot Right Bars settings. These pivots represent historical bearish reversal points.
Pivot Low â A confirmed local low using the same left and right confirmation structure. These pivots represent historical bullish reversal points.
Reversal Probability Profile â A price profile built from confirmed pivot highs and lows. Each pivot contributes to its corresponding price bin and nearby bins according to the Bin Smoothing Radius.
Reversal Probability â The density of a price bin divided by the density of the tallest profile bin. The tallest bin is therefore 100%, while other levels are expressed relative to it. This measures relative historical reversal density rather than a statistical probability of a future reversal.
Max Reversal Zone â The price bin containing the highest smoothed pivot count. It forms the profile's point of maximum reversal density.
Pivot Clusters â Groups of historical pivot prices with similar price locations. The script groups these prices into clusters and uses separate colors to make recurring reversal regions easier to distinguish.
Support and Resistance Levels â Horizontal levels created from confirmed pivot lows and highs. Nearby levels can be filtered using an ATR-based overlap distance so that similar pivots do not produce excessive duplicate levels.
ð FEATURES
Reversal Probability Profile â Displays historical reversal density across the visible calculation range, with wider bins representing greater density relative to the maximum reversal zone.
Probability-Labeled Support and Resistance â Displays active pivot levels together with their price and normalized Reversal Probability, while broken levels can remain as faint historical references.
Max Reversal Zone â Highlights the profile bin with the greatest concentration of confirmed reversals and marks its corresponding price level.
Cluster Visualization â Color-codes pivot regions and can display cluster levels and historical pivot markers to show where reversal prices have grouped.
Reversal Alerts â Provides alerts for new support and resistance pivots, level breaks, maximum or high-density zone touches, and bullish or bearish reversal-zone touches.
ð HOW TO USE
Start with the profile â Look for the widest sections. These show price regions where confirmed reversals have concentrated more heavily than surrounding areas.
Use the Max Reversal Zone as a reference â It represents the strongest reversal-density bin in the current calculation window and provides the 100% reference used by the other probability values.
Compare active levels by Reversal Probability â A level closer to 100% sits in a region with reversal density closer to the profile maximum. Treat this as relative historical density rather than a forecast of future reversal odds.
Distinguish support from resistance â Green support levels originate from pivot lows, while red resistance levels originate from pivot highs. Watch how price behaves when it returns to these areas.
Read clusters as broader areas of interest â Repeated pivots near similar prices form clusters. These can help identify reversal regions that are supported by several historical turning points instead of one isolated pivot.
Use broken levels for context â When enabled, previously broken support and resistance remain visible as faint dotted references. This helps separate active levels from historical structure.
Adjust Pivot Left Bars and Pivot Right Bars to control sensitivity â Lower values identify smaller local turns. Higher values require broader price structure before a pivot is confirmed.
Adjust the Calculation Lookback and Pivot Memory to control how much historical reversal structure contributes to the current profile.
Use the profile together with current price action â A high-density zone identifies where reversals occurred historically. It does not by itself confirm that price will reverse on the next test.
ð CONCLUSION
Reversal Probability Profile combines confirmed pivots, support and resistance, reversal-density profiling, and price clustering in one chart view. It gives traders a relative measure of where reversals have historically concentrated and a way to compare current price levels against the strongest reversal zone.
Indicador

Strong Burst Fader | ProjectSyndicateStrong Burst Fader measures the one thing a mean-reversion trader actually needs â how far price has over-extended â and prints it as heat. Every bar that punches beyond a volatility envelope is a burst, and the further it stretches past the band, the taller and hotter the diamond column the indicator stacks at that bar. A quiet market prints nothing. A violent, over-cooked thrust prints a towering, red-hot column that says the move is running on fumes. Your chart stays clean â heat columns and nothing else â while the engine measures every burst underneath, across your entire history.
Most volatility tools draw a band and leave you to guess which touch matters. This one grades the burst.
GBPUSD
ð¥ The Burst Engine â the core. Around a configurable moving-average basis, the tool builds an ATR envelope (basis ± Band Width à ATR). The moment a bar's wick pokes past that envelope, it's a burst â an over-extension, not a normal bar. The engine measures exactly how far the wick travelled beyond the band and expresses it in ATR units, so a burst on gold and a burst on a quiet FX pair are scored on the same volatility-normalized scale. The bigger the stretch, the more oversized the move â and the stronger the fade case.
ð¡ïž Heatmap Stack â the signature read. Burst size is double-encoded so you can read it at a glance from across the room. Height: the column grows one diamond per step of ATR beyond the band, up to the cap. Heat: the colour ramps through a four-stop gradient â cool â warm â hot â extreme â as the stretch deepens. A one-diamond cool poke is a shrug. A six-high, white-hot tower is a market screaming that it has gone too far, too fast. Taller and hotter = more oversized, no interpretation required.
ð The Volatility Basis â what "too far" is measured against. Choose the reference the burst is judged from: EMA, SMA, HMA, WMA, VWMA or RMA, any length, with an independent ATR length and band width. Widen the band in trending regimes so only real over-extensions register; tighten it in ranges to catch smaller exhaustion. The basis is also the natural first target when a burst fades back toward the mean.
ð Peak Collapse â one clean vertical column per burst. A fast thrust fires the burst condition on several bars in a row. Instead of smearing a stack across every one of them, the engine collapses each run to its magnitude peak â the single bar where the stretch is greatest â and draws the whole column there, pinned to that one bar. Every diamond shares a single x-coordinate, so the column is dead-straight vertical with zero diagonal drift. One burst, one column, marking the exact climax you want to fade.
NQ
ð»ðº Fade Cues â direction, on demand. When a burst is oversized enough to clear your threshold, an arrow prints at the column: ✠above an up-burst (over-extended high â fade short) and â³ below a down-burst (over-extended low â fade long). Set the minimum stack height that earns an arrow, so only the genuinely stretched moves get flagged and minor pokes stay quiet.
âŸïž Full-History Heat â no drawing-object limit. The entire heatmap is rendered through plot-shape symbols rather than chart objects, so it covers all of your history at once â no 500-object ceiling, no zones silently dropping off the left edge as you scroll back. Every burst your data holds is measured and coloured, from the first bar to the live one.
𧌠Clean-Chart Discipline â heat and nothing else. No moving-average spaghetti, no band lines cluttering price, no stat panel, no signal labels stamped across your candles. Just the heat columns and the optional fade arrows. An optional background tint flags only the most extreme bursts. Everything else lives in the alerts.
ðš Fully Themed & Configurable. Custom mild / warm / hot / extreme heat colours; diamond spacing and offset from the wick; band width and ATR length; basis type and length; ATR-per-step (how fast the stack grows); heat-saturation point (where the colour maxes out); max stack height; the closing-burst filter; the confirm-on-close toggle; the fade-arrow threshold; and the extreme-burst background tint.
ð Honest, Non-Repainting Core. A burst peak is confirmed from the bar's neighbours, which â like any pivot-style read â settles a bar after the fact; that lag is inherent, not a defect. With Confirm on Bar Close enabled, columns are evaluated only on closed bars and are fixed once printed; disable it and the newest column can still update on the live forming bar until it closes, as any close-based read does. The height and heatmap are descriptive frameworks for ranking over-extension and directing attention â not a backtested edge and not a promise that any burst will reverse.
XTI
ð Native Alerts. Up burst (fade-short candidate), Down burst (fade-long candidate), and the two headline extremes â Extreme Up and Extreme Down â that fire only when a burst tops out at maximum stack. Wire them once and let the chart stay silent until a move is genuinely stretched.
ð¯ Why this is different. A raw band is static â you eyeball a touch and guess whether it matters. An oscillator tells you overbought / oversold but caps out and loses all sense of scale exactly when a move goes parabolic. Strong Burst Fader keeps measuring past the extreme: it quantifies the over-extension itself in ATR, ranks it by height and heat, and marks the single climax bar of each thrust. You see not just that price is stretched, but how stretched â and where the stretch peaked.
ð Apply to Gold (XAUUSD), Silver, Forex, Crypto, Indices and Futures on any timeframe. Because bursts are measured in ATR beyond an adaptive band, the read travels across symbols and timeframes without re-tuning; volume-weighted bases (VWMA) sharpen it where a market carries clean volume.
ð¡ Cleanest setup: widen Band Width and raise ATR-per-step so only real over-extensions build tall columns; keep Confirm on Bar Close on for a non-repainting read; turn on the closing-burst filter when you want acceptance beyond the band rather than pure wick pokes; and lower the fade-arrow threshold only if you want cues on smaller stretches.
USDSGD
ð¯ How To Trade It â Two Approaches
Everything hinges on one read: how oversized is this burst, and has it climaxed?
ð¥ 1) Fade the burst â trade the over-extension (the core thesis)
Use when a tall, hot column prints â a burst that has stretched well beyond the band.
Mark the extreme columns â five- and six-high, hot-to-extreme colour are the moves that have run too far, too fast; the taller and redder, the stronger the fade case.
Wait for the peak â the column marks the burst's climax bar, not a mid-move poke. That's your reference.
Trigger: take the fade in the reclaim direction â short an over-extended up-burst, long an over-extended down-burst â ideally on the fade arrow (✠/ â³) and confirmed once the peak bar closes.
Stop: beyond the burst extreme (the wick that made the column). If price accepts further out, the "over-extension" was real trend expansion â stand aside.
Target: the basis / mean first, then the opposite band or the next unstretched level in your direction.
âïž The cleanest version: a six-high, white-hot up-burst tops out after a vertical thrust, a ✠fade-short arrow prints, and the peak bar closes back inside the band. Too far, too fast, and now rolling over â the exact event this tool is built to frame.
â 2) Stand down â the heat says wait
Cool, short columns â one- or two-diamond pokes are minor stretches, not exhaustion. Nothing to fade.
A trend that keeps bursting â column after column in the same direction with the band riding along is acceptance, not over-extension; don't stand in front of it. Wait for the climax column and a close back inside.
No peak yet â a bar merely touching the band is not a burst that has topped out. Wait for the tall, hot column and its close.
Rule of thumb: ð¥ Tall + hot column + fade arrow + close back inside â fade the burst toward the basis. âïž Cool/short columns, a trend that keeps bursting, or no climax yet â stand down until the heat agrees. Indicador

Liquidity Sweep SequenceThis indicator marks stop-hunt sweeps and, more importantly, counts how many
consecutive sweeps have occurred on the same side.
WHAT A SWEEP IS
Traders cluster their stops in predictable places: longs put theirs below the
last swing low, shorts put theirs above the last swing high. Those clusters are
resting liquidity. A sweep happens when price spikes through one of those levels,
triggers the stops, and then closes back on the original side â a wick through,
not a break.
The distinction that matters:
⢠Close beyond the level = a real breakout, trend continuation
⢠Close back inside = a sweep, failed breakout, potential reversal
WHY THE SEQUENCE COUNT
A single sweep is often just noise. What I found more useful is when they stack:
the first sweep traps, price fails to reverse, then a second sweep takes out an
even lower low. The second one is where selling pressure is actually exhausted.
The indicator labels these SWEEP, SWEEP², SWEEP³ and so on. The count resets when
an opposite-side sweep appears or when too many bars pass. By default the second
sweep must take out a deeper low (or higher high) to continue the sequence â
otherwise the count restarts at 1.
HOW IT WORKS
1. Swing highs and lows are tracked as liquidity levels using pivots.
2. A level is dropped as soon as price CLOSES through it. Once price closes above
a swing high, that liquidity has already been taken and the level can no longer
produce a sweep signal. This is the single most important filter here â without
it, stale levels from far back generate false signals during trends.
3. A sweep requires: wick through an untouched level, close back inside, a minimum
wick ratio, a minimum reclaim distance, and the bar must be a genuine local
extreme (if the wick does not exceed recent bars, no stops were actually hit).
4. Next-bar confirmation requires the following candle to close in the reversal
direction before the label is drawn.
5. Significance tiering: a sweep is marked "major" only when the wick is the
extreme of the last N bars. Minor sweeps inside ranges are hidden by default.
All labels are drawn on confirmed bars only, so nothing repaints.
HOW I USE IT
My own preference is the 1H chart, entering on SWEEP² â the second sweep in a
sequence. The first sweep tells me the level is being attacked; the second one is
where I act.
This is built for short-term perpetual futures trading and works best there. The
reason is mechanical: perps run 24/7 with no gaps, they are heavily leveraged, and
liquidation clusters are dense and public. Stop hunts on perps are a real, visible
event rather than a metaphor. On instruments with overnight gaps, daily price
limits, or low leverage, a long wick often does not represent a genuine sweep at
all, and signal quality degrades noticeably.
Suggested timeframes: 15m to 4H. Lower is noisy; the daily compresses multi-hour
hunts into a single candle and loses the event.
LIMITATIONS â please read
⢠This is a mean-reversion tool, not a trend tool. A sweep is by definition a
FAILED breakout, while a trend start is a SUCCESSFUL one. The two are mutually
exclusive, so this indicator will not flag the beginning of a large trend, and
it is not designed to.
⢠It only detects double-top and double-bottom style reversals. A V-shaped top
that simply prints a new high and falls has no prior level above it to sweep,
so no signal can appear there.
⢠Signals occur more frequently in ranging conditions. That is inherent to the
concept, not a defect.
⢠Next-bar confirmation costs one bar of delay. Turn it off for immediacy at the
cost of more failed signals.
⢠Pivot detection needs bars on both sides, so levels are registered with a lag
equal to the swing sensitivity setting.
⢠Parameters need adjusting per market and timeframe. On 15m, the major-sweep
lookback should be lowered to roughly 40â60.
SETTINGS WORTH TOUCHING FIRST
⢠Swing sensitivity â the main tightness control
⢠Major sweep lookback â how significant a sweep must be to display
⢠Show 2nd sweep and beyond only â reduces the chart to sequence signals alone
⢠Show untouched liquidity levels â draws the levels currently being tracked so
you can verify the structure logic yourself
Alerts are included for major sweeps and for the second sweep in a sequence.
This indicator is a visualization and analysis tool. It does not generate buy or
sell recommendations and nothing here is financial advice. Test any approach on
your own before risking capital.
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ãç¹é«äžæèªªæã
æ¬ææšæšèšçµæ®ºæ¢æçæè©èšèïŒäžŠäžæèšç®åæ¹åé£çºæè©ç次æžã
ä»éºŒæ¯æè©
亀æè
çåææŸåšå¯é 枬çäœçœ®ïŒåå€çæŸåšåäœäžæ¹ïŒåç©ºçæŸåšåé«äžæ¹ãéäºæå
çåæå°±æ¯ãæµåæ§ããç¶å¹æ Œåºç Žé£åå¹äœãè§žçŒåæïŒç¶åŸæ¶ç€åæ¶å忬é£äžåŽïŒ
å°±æ¯äžæ¬¡æè©ââæ¯åœ±ç·ç©¿éïŒäžæ¯çæ£çªç Žã
ééµåå¥ïŒ
⢠æ¶ç€ç«åšå¹äœå€åŽ = ççªç ŽïŒè¶šå¢å»¶çº
⢠æ¶ç€æ¶åå
§åŽ = æè©ïŒåçªç ŽïŒå¯èœåèœ
çºä»éºŒèŠç®é£çºæ¬¡æž
å®äžæ¬¡æè©åžžåžžåªæ¯éèšãæ¯èŒæçšçæ¯å®åæ¥é£åºçŸïŒç¬¬äžæ¬¡æè©æ¯é·é±ïŒå¹æ Œæ²èœå
èœïŒæ¥èç¬¬äºæ¬¡æè©åµäºæŽäœçäœé»ââç¬¬äºæ¬¡ææ¯è³£å£çæ£èç¡çå°æ¹ã
ææšææšæ SWEEPãSWEEP²ãSWEEP³ãåºçŸååæè©æéééä¹
å°±æžé¶éç®ãé èšèŠæ±ç¬¬
äºæ¬¡å¿
é 嵿Žäœäœé»ïŒææŽé«é«é»ïŒæç®å»¶çºïŒåŠåèšæžåŸ 1 éæ°éå§ã
éäœæ¹åŒ
1. çš pivot 远蹀åé«åäœäœçºæµåæ§å¹äœã
2. 广 ŒäžæŠãæ¶ç€ãç©¿éæåå¹äœïŒè©²å¹äœç«å»äœå»¢ãæ¶ç€ç«äžåé«ïŒä»£è¡šé£è£¡çæµåæ§
å·²ç¶è¢«åæïŒäžåæ¯æè©ç®æšãéæ¯æ¬ææšæéèŠçéæ¿Ÿââæ²æéäžå±€ïŒä¹
é 以åç
æ»ç·æåšè¶šå¢äžäžæ·ç¢çåèšèã
3. æè©æç«æ¢ä»¶ïŒåœ±ç·ç©¿éæªè¢«åæçå¹äœãæ¶ç€æ¶åã圱ç·äœæ¯éæšãæ¶åå¹
åºŠéæšïŒ
äžè©²Kæ£å¿
é åµå±é𿥵åŒïŒåœ±ç·è¥æ²è¶
éè¿æKæ£ïŒä»£è¡šæ ¹æ¬æ²æåæè¢«è§žçŒïŒã
4. éæ ¹ç¢ºèªïŒèŠæ±äžäžæ ¹æ¶ç€æåèœæ¹åïŒæç«åºæšç±€ã
5. éèŠåºŠåçŽïŒåœ±ç·å¿
é æ¯è¿ N æ ¹çæ¥µåŒææšçºãäž»èŠããéçªåéçæ¬¡èŠæè©é èšé±èã
æææšç±€éœåšæ¶KåŸæç¹ªè£œïŒäžæé繪ã
æèªå·±æéºŒçš
æå人å奜 1 å°æç·ïŒåš SWEEP²ïŒé£çºç¬¬äºæ¬¡æè©ïŒé²å Žãç¬¬äžæ¬¡å蚎æéåå¹äœæ£åšè¢«
æ»æïŒç¬¬äºæ¬¡ææ¯æåæçå°æ¹ã
鿝æ¯çºçç·æ°žçºåçŽèšèšçïŒåšé£è£¡æææå¥œãåå æ¯æ©å¶äžçïŒæ°žçº 24 å°æäžéæ·ã
æ²æè·³ç©ºãæ§æ¡¿é«ïŒæž
ç®å¹äœå¯éèäžå
¬éãæ°žçºäžççµæ®ºæ¢ææ¯å¯ŠéçŒçãçåŸèŠçäºä»¶ïŒ
äžæ¯æ¯å»ãåšæéå€è·³ç©ºã挲è·å¹
éå¶ãæäœæ§æ¡¿çååäžïŒäžæ ¹é·åœ±ç·åžžåžžæ ¹æ¬äžä»£è¡šç
æ£çæè©ïŒèšèå質ææé¡¯äžéã
å»ºè°ææ¡ïŒ15 åéå° 4 å°æãæŽäœå€ªéïŒæ¥ç·ææžå°æççµæ®ºå£çž®æäžæ ¹Kæ£ïŒäºä»¶æ¬èº«å°±
æ¶å€±äºã
éå¶ïŒè«åå¿
é±è®ïŒ
â¢ éæ¯ååŒåæžå·¥å
·ïŒäžæ¯è¶šå¢å·¥å
·ãæè©çå®çŸ©å°±æ¯ãçªç Žå€±æãïŒèè¶šå¢èµ·é»æ¯ãçªç Ž
æåãïŒå
©è
äºæ¥ãæä»¥å®äžææšåºå€§è¶šå¢çèµ·é»ïŒä¹äžæ¯çºæ€èšèšçã
⢠åªåµæž¬åŸå°éé ïŒéåºåçåèœãçŽæ¥åµæ°é«ç¶åŸäžè·ç V åé ïŒäžæ¹æ ¹æ¬æ²æåé«å¯
æïŒäžå¯èœåºçŸèšèã
⢠éçªç€äžèšèèŒå¯éã鿝æŠå¿µæ¬èº«çæ§è³ªïŒäžæ¯çŒºé·ã
â¢ éæ ¹ç¢ºèªæå»¶é²äžæ ¹ãéæå¯å³æïŒäœåèšèæè®å€ã
⢠Pivot éèŠå·Šå³å
©åŽçKæ£ïŒæä»¥å¹äœç»èšæå»¶é²ïŒå»¶é²æ ¹æžçæŒéæåºŠèšå®åŒã
â¢ åæžéäŸåžå Žèææ¡èª¿æŽã15 åéç·å»ºè°æäž»èŠæè©åçæ ¹æžéå° 40â60ã
æ¬ææšçºèŠèŠºåèåæå·¥å
·ïŒäžç¢ç買賣建è°ïŒå
§å®¹äžæ§ææè³å»ºè°ãä»»äœåæ³è«èªè¡é©è
åŸåæå
¥è³éã Indicador

MSnR Double Breakout LevelMSnR Double Breakout Level
A staircase of turning points, and the level that matters once price finally runs out the top or
the bottom of it.
Support and resistance tools usually mark a level the moment it forms, which is why a chart ends up carrying dozens of lines that never meant anything. This one marks nothing when a level appears. It holds two of them, waits to see whether price runs past the pair, and only then draws the one that was left behind.
The result is that a level is never drawn on hope. By the time it is on the chart, price has
already proved it was willing to go through everything above or below it.
THE TWO BUILDING BLOCKS
A candle is green when close is above open, red when close is below. A doji, where they are
equal, is neither and takes no part.
A Level a green candle followed immediately by a red one.
The GREEN candle's CLOSE is the level.
Buyers pushed, sellers took it straight back.
V Level a red candle followed immediately by a green one.
The RED candle's CLOSE is the level.
Sellers pushed, buyers took it straight back.
These are not the output. They are the raw material.
DOUBLE BREAKOUT
Two same-side levels are held as a rolling pair. On the A side that is a descending pair - A1
above, A2 below:
A1 a close above this confirms it
A2 this is the level that gets marked
When a candle CLOSES above A1, the staircase has been run out, and A2 - the innermost step, the last place sellers stepped in before price left - is marked as the level.
The V side is the exact mirror. An ascending pair, V1 below and V2 above, a candle closing below V1, and V2 is marked.
It is always a DOUBLE. However long the staircase runs, only the latest two steps are ever held.
When a new same-side level appears while the pair is still waiting, one question decides what
happens to it:
the new level did NOT break the inner step -> the pair SLIDES one along
(old inner becomes the new outer)
the new level DID break the inner step -> the pair RESTARTS from that level
That single question is the whole bookkeeping, and it is the part most easily got wrong. Throwing the pair away every time another step appears loses the long staircases, which are exactly the ones worth waiting for. Never throwing it away means the pair drifts away from price and stops describing anything. Sliding keeps it anchored to the two most recent steps for as long as the move keeps going the same way, and restarts it the moment the move stops.
The breakout is always checked before any new level is. Reaching the outer step IS the breakout, so a level beyond it can only ever belong to the next search, never interrupt the current one.
DOUBLE BREAKOUT TO DOUBLE BREAKOUT
A completed Double Breakout can itself be taken out - by a completed Double Breakout running the other way.
a Double A Breakout confirms, marking A2
a Double V Breakout then confirms, marking V2
a candle CLOSES below that old A2
-> V2 becomes a DBO to DBO V level
The bullish case is the mirror: a Double V, then a Double A, then a close above the old V2, and
A2 becomes a DBO to DBO A level.
The cross break may land on the very same candle that confirmed the second Double Breakout, or on any candle after it. What it says is that the level which had just been established as the place price wanted to leave from has now been given up in the other direction, by a move built the same strict way.
The level is UPGRADED, not duplicated. A DBO to DBO A sits at exactly the price its Double A
Breakout already marked - it is the same level with more behind it - so the line already on the
chart changes its name and thickens rather than a second line being drawn on top of the first.
WHAT MAKES THIS DIFFERENT
1. Nothing is marked when it forms.
An A Level or a V Level on its own is never drawn. Two of them together are never drawn either.
Only the breakout puts something on the chart, which is why a whole session can pass with nothing new on it.
2. The pair rolls instead of resetting.
This is the piece that separates it from a plain two-level check. A staircase that keeps stepping
the same way keeps its pair alive, sliding one step at a time. A staircase that turns back on
itself starts again. Both cases are handled by the same rule.
3. The inner step is the level, not the outer one.
The outer step is what price had to close through to prove anything, so it has already been
consumed by the time the pattern completes. The inner step is the last one price never came back to, and that is what is drawn.
4. Breakout has priority over everything else.
Because reaching the outer step is itself the breakout, the order in which the two checks run
changes the result. Checking for new levels first would let a level that is really the start of
the next search interrupt the current one. Here the breakout is always resolved first.
5. The chain is a real state, not a coincidence.
A DBO to DBO level requires a full Double Breakout, then a full opposite Double Breakout, then
the first one's level being closed through. All three are tracked as one sequence, and any part
of it ageing out of the window cancels it.
6. The search itself can be watched.
The pair currently waiting for its breakout can be drawn, so the staircase can be seen sliding
before anything confirms. It is the working state, not a signal, and it is off by default.
READING THE CHART
Green line, "DBO A" Double A Breakout, label below
Red line, "DBO V" Double V Breakout, label above
Thick green, "DBO to DBO A" the bullish chain completed
Thick red, "DBO to DBO V" the bearish chain completed
Every line starts at the candle the level was read from and runs to the right, so the distance
from its origin to price shows how long it has been standing.
Labels are parked clear of that origin candle rather than on the level itself - under its low on a
bullish level, over its high on a bearish one. The level price is a candle CLOSE, so it sits
inside the candle, and a label placed there would be buried in the price action.
A chain level is always drawn one step thicker than a plain one. That is the only styling
difference, because it is the same kind of level, reached by a longer road.
With the working pair switched on, dotted lines labelled A1, A2, V1 and V2 show what is currently being tracked. A1 and A2 are the descending pair waiting for a close above A1; V1 and V2 are the ascending pair waiting for a close below V1. Watch A2 slide down as the staircase extends. If only A1 or only V1 is drawn, the search has one step and is waiting for its second.
Only the most recent few levels are drawn, so the chart stays readable. Older ones are still
counted in the corner table, which reports Double Breakout and DBO to DBO levels split into bull and bear. If the table reads higher than what you can see, the display limit is doing its job.
SETTINGS
Double Breakout
- Scan Length: how far back the search reaches. A pair that has been waiting longer than this is
abandoned, and a confirmed level is dropped once the candle it came from is older than this. It
also bounds how long a chain can stay open.
- Max Levels Shown: how many of the most recent levels are drawn. Switching a type off frees its slots for the others.
Level Types
- A switch for each of the four: Double A Breakout, Double V Breakout, DBO to DBO A, DBO to DBO V.
- Show Working Pair: draws the pair currently waiting for its breakout.
Level Style
- Bullish, bearish and working pair colours, line width, and whether levels extend to the right
edge. With extending off, a level stops at the candle that confirmed it.
Labels
- Show Labels, Label Size, and Label Distance from Candle as a percentage of ATR(14), so the gap scales with whatever instrument and timeframe you are on. The distance is measured from the origin candle's high or low, not from the level.
Summary Table
- Show, position and size of the corner table.
ALERTS
Four alert conditions:
Double A Breakout a descending pair was run out to the upside
Double V Breakout an ascending pair was run out to the downside
DBO to DBO A a bullish chain completed
DBO to DBO V a bearish chain completed
Each message carries the event, the symbol, the timeframe and the closing price. The same
messages are also sent through the alert function, so the "Any alert() function call" alert type
can deliver all four through a single alert.
Every alert is evaluated only after a candle has fully closed.
REPAINTING
This script does not repaint.
- The whole engine runs once per closed candle. Price moving inside an open candle cannot create, change or remove a level, and cannot make a signal appear and then disappear.
- Both building blocks need a candle AFTER them to exist at all. An A Level is only an A Level
once the red candle behind it has closed, so nothing is ever read from a candle still forming.
- Levels are built forward, one candle at a time, in the same order they would have been built live. A line that has been drawn never moves. The only thing that can change about it is its
name and thickness, when a later chain upgrades it, and that is a record of what price did
afterwards rather than a revision of what it did before.
- Nothing is read from a higher timeframe, so there is no higher timeframe lookahead to get
wrong.
When you create an alert, TradingView may show a caution banner saying the indicator can repaint. That banner appears automatically for any script that uses the built in bar state variables, no matter how they are used, because the platform cannot check the intent behind them. This script uses one of them for the opposite purpose: it is what restricts the entire engine to bar close.Choosing "Once Per Bar Close" when creating the alert is still recommended.
NOTES AND LIMITATIONS
- Levels are deliberately infrequent. Two same-side reversals have to line up and then be run
through by a close, and a DBO to DBO level needs that to happen twice in opposite directions.
Long stretches with nothing new are normal.
- Scan Length is not only cosmetic here. It decides when a waiting pair is abandoned and when a chain expires, so changing it changes what is found, not just what is drawn. Max Levels Shown
is the cosmetic one.
- A doji takes no part. An A Level or V Level needs one candle of each colour, so a pair
containing a doji is not one.
- DBO to DBO upgrades the existing level in place. The count of plain Double Breakouts therefore goes down by one each time a chain completes, because that level has become
something else.
- An internal cap of 120 stored levels keeps the drawing count inside TradingView's limits. On a
very long history the oldest are dropped.
- Detection is purely structural. It reports where these sequences occurred and nothing more. It
does not rank levels by quality, measure what happened next, or produce entries, targets or
stops.
HOW TO USE IT
A Double Breakout level marks the last place the other side stepped in before price left the
area. Traders commonly watch these for:
- A reaction on the first return, since price has not been back to that step since the breakout
- Direction from the side, where a bullish level below price and a bearish level above it frame
the range price is currently working in
- Confirmation against a higher timeframe read, where a level that agrees with the larger picture carries more weight than one that fights it
A DBO to DBO level is the same level after the market has argued about it twice. The road to it
was longer, and it sits where a completed move in one direction was undone by a completed move in the other.
The working pair is worth turning on while learning the tool. Watching A2 slide down step by step makes it obvious what the breakout is waiting for, and where it would have to close for anything to be drawn.
These are reference areas, not entry signals on their own. Use them alongside your own support
and resistance mapping, your own entry method and proper risk management.
DISCLAIMER
This indicator is a pattern detection tool. It is not financial advice and it makes no claim
about profitability. Trading involves risk. Always apply your own analysis and risk management. Indicador

Sweep Reversal Map+ [Herman]Sweep Reversal Map
Sweep Reversal Map is an open-source price-action indicator designed to identify potential reversal areas that develop after price sweeps previously confirmed swing liquidity.
The concept is inspired by liquidity-sweep and reversal principles taught within ICT methodology, including the idea that price can trade beyond a prior swing high or swing low, reclaim that liquidity level, and subsequently confirm a reversal through a break of nearby market structure.
This script provides an independent Pine Script implementation of that general concept with configurable swing detection, sweep penetration, structure confirmation, displacement filtering, developing zones, and historical reversal mapping.
HOW IT WORKS
The indicator follows a multi-stage process rather than marking every wick through a previous high or low.
1. Confirmed Swing Liquidity
The script first identifies confirmed swing highs and swing lows using the selected Swing Length.
These levels represent previously established areas of liquidity that price may later sweep.
2. Liquidity Sweep
A bearish reversal candidate begins when price trades above a confirmed swing high.
A bullish reversal candidate begins when price trades below a confirmed swing low.
The Minimum Sweep Penetration setting can optionally require price to move a specified ATR-based distance beyond the liquidity level before the event qualifies as a sweep.
3. Reclaim
After the sweep occurs, the script tracks whether price closes back through the swept liquidity level.
For a bearish setup, price must reclaim below the swept swing high.
For a bullish setup, price must reclaim above the swept swing low.
4. Local Structure Confirmation
A sweep alone does not create a confirmed reversal.
The script records nearby structure preceding the sweep and waits for price to break that structure in the opposite direction.
A bearish reversal requires a close below the relevant local structure level.
A bullish reversal requires a close above the relevant local structure level.
5. Displacement Filter
The confirmation candle can also be required to show a minimum body size relative to ATR.
This provides an optional displacement requirement and helps distinguish stronger confirmation candles from very small structure breaks.
Setting Minimum Displacement Body to 0 disables this filter.
REVERSAL ZONES
When Show Developing Reversals is enabled, a faint zone represents a sweep that has occurred but has not yet completed the full confirmation process.
The zone expands if price creates a more extreme price during the developing setup.
Once all confirmation conditions are satisfied, the zone becomes visually stronger and is retained as a historical confirmed sweep-reversal area.
If confirmation does not occur within the selected Maximum Confirmation Bars, the developing setup expires and is removed.
HOW TO INTERPRET THE MAP
A zone above price represents a confirmed bearish sweep-reversal event originating from liquidity above a previous swing high.
A zone below price represents a confirmed bullish sweep-reversal event originating from liquidity below a previous swing low.
The horizontal line identifies the liquidity level associated with the sweep.
The marker identifies the original confirmed swing from which that liquidity level was derived.
These areas are intended to provide additional price-action context. They are not automatic long or short entries and should not be interpreted as guaranteed reversal points.
SETTINGS
Swing Length
Controls how many bars on each side are required to confirm a swing. Higher values generally identify less frequent but more significant swing points.
ATR Length
Defines the ATR period used by the penetration and displacement filters.
Minimum Sweep Penetration
Determines how far beyond the swing level price must trade for the event to qualify as a sweep. A value of 0 accepts any breach.
Local Structure Length
Controls the number of preceding bars used to determine the local structure level required for reversal confirmation.
Maximum Confirmation Bars
Defines how long a developing sweep can remain active while waiting for confirmation.
Minimum Displacement Body
Requires the confirmation candle body to reach a selected fraction of ATR. A value of 0 disables the displacement requirement.
Show Developing Reversals
Displays or hides unconfirmed sweep zones while they are developing.
Confirmed Box Extension
Controls how far confirmed reversal zones extend to the right.
Historical Setups
Controls the maximum number of confirmed historical setups retained on the chart.
IMPORTANT BEHAVIOR OF SWING DETECTION
Swing highs and swing lows are confirmed only after the required number of bars has formed to the right of the potential pivot.
For example, with a Swing Length of 5, a potential swing requires five subsequent bars before it can become a confirmed liquidity level.
Once confirmed, the level is visually anchored to the bar where the swing originally occurred. This historical placement should not be interpreted as the indicator having known the swing in real time on that original bar.
A sweep can only be detected after the corresponding swing has already been confirmed.
Signals and confirmation logic are evaluated on confirmed bars.
LIMITATIONS
Liquidity sweeps and structure breaks are price-action events, not guarantees that price will continue reversing.
Different markets and timeframes can produce very different amounts of noise and therefore may require different Swing Length, structure, penetration, and displacement settings.
A developing reversal can disappear if the required confirmation does not occur before the confirmation window expires.
The indicator does not calculate expected returns, win rates, profit targets, stop-loss levels, or strategy performance.
It should therefore be used as a market-structure visualization and research tool rather than as a standalone trading system.
ORIGINAL IMPLEMENTATION
The underlying liquidity-sweep/reversal concept is an established price-action concept and is associated here with ICT educational methodology.
The original contribution of this script is its programmatic implementation and visualization workflow: confirmed swing-liquidity tracking, optional ATR-normalized sweep penetration, reclaim state tracking, local-structure confirmation, ATR-normalized displacement confirmation, developing setup management, expiration logic, configurable historical reversal zones, and confirmation alerts.
The source code is published openly so users can inspect how each condition is calculated and modify the implementation for their own research. Indicador

Dynamic Grid Indicator [BigBeluga]ðµ OVERVIEW
The Dynamic Grid Indicator is an advanced technical indicator created by BigBeluga to map volatility-based grid channels across price charts while simultaneously plotting a synchronized multi-level oscillator pane. Traditional envelope indicators often use static standard deviation bands that fail to adjust to shifting trend momentum or localized price congestion. In order to provide a solution to this problem, this indicator combines a Hull Moving Average (HMA) central baseline with Average True Range (ATR) multiplier steps, automatically fading channel lines and generating precise crossover signals when price interacts with structural grid borders.
The indicator aims to visualize volatility expansion, compression, and overextended momentum zones. The core element of its calculation involves measuring price distance from the central baseline scaled by volatility steps defined as:
centerLine = ta.hma(close, hmaLength)
oscValue = atrVal != 0 ? (close - centerLine) / atrVal : 0.0
where centerLine acts as the adaptive trend anchor, and oscValue normalizes deviations into standardized grid units. Higher values of numLevels and ATR multipliers allow the indicator to filter out localized market noise and isolate major overbought or oversold structural extremes.
ðµ FEATURES
The system utilizes a multi-layered matrix structure to provide actionable market intelligence:
1 â Dynamic HMA & ATR Grid Engine
Central Baseline Momentum: Tracks trend direction and baseline elasticity using customizable Hull Moving Average lengths via ta.hma(close, hmaLength)
Volatility Multiplier Steps: Projects up to 5 multi-tiered grid levels above and below the baseline scaled dynamically by ATR volatility.
2 â Proximity Fade & Edge Label Management
Smart Proximity Hiding: Automatically hides chart grid line segments when price approaches a level within a set percentage threshold using diff <= proxDist .
Right-Edge Price Tags: Automatically renders live numerical price tags and oscillator labels on the right edge of the chart using custom label management functions.
3 â Synchronized Oscillator Pane & Position Dashboard
Multi-Level Oscillator Fill: Projects a synchronized sub-pane oscillator complete with gradient fills and crossover signal annotations.
Position Scale Dashboard: Features an interactive table displaying real-time level states and oscillator positioning across the grid.
ðµ HOW TO USE
Apart from the basic visualization of volatility channels, this tool can also act in alternative ways to support decision-making:
Identify Channel Extremes: Monitor the outer grid levels (+3 to +5 / -3 to -5) to spot overextended market conditions where price is likely to revert or consolidate.
Trade Grid Crossovers: Look for confirmed crossover signals and direction labels (â²/âŒ) when price breaks across key grid boundaries to catch trend continuations.
Track Momentum via Oscillator: Observe the sub-pane oscillator line and gradient fill to gauge the strength of the current move relative to the volatility baseline.
ðµ NOTES
Why this implementation is unique:
It combines an overlay price grid with a synchronized, volatility-normalized oscillator pane in a single unified script.
The proximity fade engine keeps the chart clean by automatically removing line clutter directly under active price action.
The script is fully optimized for Pine Script version 6, utilizing advanced conditional plotting, multi-timeframe safety filters, and dynamic dashboard tables.
Indicador

Green & Red Triple Overlap CandleGreen & Red Triple Overlap Candle
Three candles of the same colour that go nowhere.
One side spends three candles in a row pushing, and at the end of it price is still sitting in the
same band it started in. The candles do not step away from each other, they fold back over each other. That is the whole pattern, and it is the opposite of what three same-coloured candles are usually assumed to mean.
The middle candle is the reference. The first and the third clamp its body from opposite ends, and the band they clamp is what gets drawn.
THE TWO PATTERNS
A candle is Green when close is greater than open, and Red when close is less than open. A Doji,
where close equals open, is neither and takes no part. Only fully closed candles are read; the
candle still forming is never used.
Green Triple Overlap
Candle 1, Candle 2 and Candle 3 are all Green
Candle 1 HIGH is at or above Candle 2 CLOSE it already reached the top of the middle body
Candle 3 LOW is at or below Candle 2 OPEN it came back down to the bottom of it
Red Triple Overlap
Candle 1, Candle 2 and Candle 3 are all Red
Candle 1 LOW is at or below Candle 2 CLOSE it already reached the bottom of the middle body
Candle 3 HIGH is at or above Candle 2 OPEN it came back up to the top of it
That is the whole definition. Three colours and two reaches, all on the same group of candles.
WHAT IT ACTUALLY SAYS
Three green candles in a row is normally read as strength. Here it is not, and the two reaches are what change the reading.
Candle 1's high already being at Candle 2's close means the second candle finished the whole of
its work inside ground the first one had already covered. It closed where the previous candle had merely traded. No new territory.
Candle 3's low coming back to Candle 2's open means the third candle handed back the entire middle body before doing whatever it did. Everything the second candle gained was given up and bought again.
Put together: three candles of buying pressure, and the group is still standing on the same band. Buyers keep arriving and something keeps meeting them. The pattern marks absorption, not thrust.
The red side is the same story with the roles swapped.
WHAT MAKES THIS DIFFERENT
1. It is not Three White Soldiers, and reading it as such inverts the meaning.
Three White Soldiers is a staircase: each candle opens inside the previous body and closes beyond it, so the group walks upward. This is the opposite construction. Each candle folds back over the middle one, so the group stands still. Both are three same-coloured candles, and that is where the similarity ends.
2. The comparison is against the BODY, not the range.
Both reaches are measured against Candle 2's open and close, not its high and low. Wicks on the
middle candle change nothing. That keeps the test on where price actually settled rather than on how far it briefly poked, which is what makes the pattern uncommon instead of everywhere.
3. The middle candle is a fixed reference, not just the one in between.
Candle 1 is checked against one edge of it and Candle 3 against the other. The two conditions
point in opposite directions on purpose - that opposition is what clamps the band.
4. Two candles doing this is not the pattern.
Any two adjacent candles overlap to some degree. It takes a third, reaching back the other way, before the group can be said to have gone nowhere. Nothing is reported until all three are closed and all three conditions hold.
5. Same colour throughout is mandatory.
A mixed group is a reversal story and is already well covered by engulfing and pin bar tools. Here every candle belongs to the same side, which is what makes the lack of progress worth noticing at all.
READING THE CHART
Each detected pattern draws a solid box over the MIDDLE candle's body - the band that was clamped - stretched across all three candles.
Green Triple Overlap drawn in the bullish colour, label below the group
Red Triple Overlap drawn in the bearish colour, label above the group
Labels are parked outside the whole three-candle group rather than on the box, so the text always clears the price action. The box itself is often thin, because the middle body is the thing being measured, and a thin box is information: it means the three candles were argued out in a very narrow band.
An optional outline draws the full high-to-low range of the three candles around that band. Turn it on to see how much room the group used in total against how little it kept. It is off by default so the clamped band stays the focus, but on a chart zoomed far out it is also the easiest way to spot where the patterns are, because the band on its own is only as tall as one candle body.
The band can also be run out to the right edge, which turns it from a marker of what happened into a level you can watch price return to. That is off by default as well. The range outline is never extended - it describes three particular candles, not a price that is still live.
A summary table in the corner counts how many of each type were found inside the current scan window. It counts every pattern found, including a type that is currently switched off, so the table always reflects what the market actually printed rather than what is on screen.
SETTINGS
Scan
- Scan Length: how many closed candles are scanned backwards from the latest bar. The running candle is always excluded.
Pattern Types
- A switch for Green Triple Overlap and one for Red Triple Overlap.
- Show Full Candle Range: outlines the whole height of the three candles around the clamped band.
Zone Style
- Bullish and Bearish colours, and the fill transparency of the band. The full range outline is
always drawn lighter than the band it surrounds.
- Extend Zones Right: runs the clamped band out to the right edge so you can see where price sits against it now. Only the band is extended, never the range outline.
Labels
- Show Labels, Label Size, and Label Distance from Candles as a percentage of the group's full
height. Increase the distance on noisy charts so labels clear the candles.
Summary Table
- Show, position and size of the corner table.
ALERTS
Two alert conditions: Green Triple Overlap and Red Triple Overlap.
Each message carries the pattern name, the symbol, the timeframe and the closing price. The same messages are also sent through the alert function, so the "Any alert() function call" alert type can deliver both through a single alert.
All alerts are evaluated only after a candle has fully closed.
REPAINTING
This script does not repaint.
- Detection reads confirmed candles only. The scan starts far enough behind the latest bar that
the candle still forming is never part of any group.
- Every alert signal is written so that it can only become true once a candle has finished. Price
moving inside an open candle cannot make a signal appear and then disappear.
- Boxes are rebuilt on the last bar using confirmed history. A box that has been drawn does not
move or change afterwards. It only leaves the chart when it falls outside the Scan Length
window.
When you create an alert, TradingView may show a caution banner saying the indicator can repaint. That banner appears automatically for any script that uses the built in bar state variables, no matter how they are used, because the platform cannot check the intent behind them. This script uses them for the opposite purpose: one of them is what restricts every signal to bar close, and the other is what redraws the boxes efficiently on the final bar. Choosing "Once Per Bar Close" when creating the alert is still recommended.
NOTES AND LIMITATIONS
- The pattern is uncommon by design. Three candles have to share a colour and then reach back
across each other in opposite directions. Stretches with nothing on the chart are normal. If you
want to see more of them, look at a faster timeframe rather than loosening anything.
- Doji candles take no part. A group containing one is never reported, because a Doji has no
direction to share.
- Increasing Scan Length raises the number of drawing objects, and switching the full range outline on doubles the boxes. TradingView caps these at 500 boxes and 500 labels, and the oldest are dropped once a cap is reached. The default is chosen to stay well inside those limits.
- Overlapping groups are possible. Three candles can belong to one pattern while the next three, shifted by one, form another, so boxes may sit next to or inside each other.
- Detection is purely structural. It reports where the shape occurred and nothing more. It does not rank patterns by quality, measure follow through, or produce entries, targets or stops.
HOW TO USE IT
The box marks a band that one side defended for three candles running. Traders commonly watch these areas for:
- A reaction when price returns to the band later, since it was contested once already
- Continuation once price finally leaves the band, because the side that was absorbed has spent
three candles worth of effort with nothing to show for it
- Context alongside higher timeframe structure, where absorption against the larger trend reads differently from absorption with it
The edges of the box - the middle candle's open and close - are the two prices the group kept
returning to, and they are usually the more interesting part of it.
These are reference areas, not entry signals on their own. Use them alongside your own support and resistance mapping, your own entry method and proper risk management.
DISCLAIMER
This indicator is a pattern detection tool. It is not financial advice and it makes no claim about
profitability. Trading involves risk. Always apply your own analysis and risk management. Indicador

Reversal OB ZonesREVERSAL OB ZONES
Reversal OB Zones locates the first Break of Structure in a trend and marks the Order Block and rebound zone that come with it - one setup at a time, drawn the moment the break confirms, using only price structure that already exists on the chart.
THE IDEA BEHIND IT
The indicator is built on the Smart Money Concepts / ICT idea that a trend doesn't reverse randomly: it reverses at the last point where "smart money" was still positioned in the direction of the old trend before structure broke. That point is the Order Block - the last opposing candle before the move that produced the reversal - and it tends to act as support or resistance the first time price returns to it.
To find that moment, the script tracks a trailing key level: the support (in an uptrend) or resistance (in a downtrend) left behind by the most recent genuine higher high or lower low. A pullback that doesn't make a new extreme never moves this level - only an actual new high or low does. The first candle to close back through that level is the first Break of Structure (BOS). Everything else - the Order Block and the rebound zone - is already sitting in the chart's history at that exact moment, so both are drawn immediately, on the same candle as the break, with no repainting and no waiting for future bars to "confirm" anything further.
Swing highs and lows themselves come from a pure, zero-threshold structure detector (a point counts the moment the next candle confirms it was a local extreme) - there is no ATR filter or fixed lookback window involved, so the logic behaves the same in quiet and in noisy price action.
WHAT'S ON THE CHART
Each setup is made of three parts, always drawn together:
- First BOS line and label: marks the level that broke and the candle that broke it.
- Order Block zone (teal for longs, maroon for shorts): the last opposite-colored candle before the trend's real high/low, with a small ATR buffer added beyond that extreme.
- Rebound zone (gray box): the two prior structural support/resistance levels immediately behind the Order Block. This is the room price is expected to use while retracing back up (or down) into the Order Block; it is not a level to be traded on its own - see below.
Only one setup is ever active at a time: while an Order Block and its rebound zone are on the chart, the indicator will not flag a new BOS in either direction. A setup stays on the chart until it is invalidated - there is no time-based expiry.
HOW TO USE IT
The Order Block is the only zone you trade. A bearish (maroon) Order Block is a level to look for shorts; a bullish (teal) Order Block is a level to look for longs - the trade direction always matches the color of the Order Block, not the gray zone.
The gray rebound zone is not tradable. It exists purely to define how far price is allowed to retrace before the setup is considered dead: it marks the boundary between "price is still reasonably retracing toward the Order Block" and "price has gone too far and the level no longer means anything." It is a boundary, not an entry.
A setup is invalidated - and both zones disappear together - under exactly two conditions:
1. Price closes back through the far side of the Order Block (the old trend has genuinely resumed).
2. Price closes through the far side of the gray rebound zone (support/resistance failed with no bounce, so the Order Block is no longer valid either).
If neither happens, the zones simply stay on the chart - there's no bar-count expiry to worry about.
A practical read: wait for the BOS, then watch for price to retrace back into the Order Block zone. The gray zone underneath (or above, for longs) is your line in the sand - if price closes beyond it before ever tagging the Order Block, treat the setup as invalidated rather than waiting for a reaction that structurally shouldn't be expected anymore.
INPUTS
- Look for bearish / bullish setups: enable or disable each direction independently.
- Order Block lookback: how many bars back to search for the Order Block candle.
- Pivot history to remember: how many structural key levels to keep for rebound-zone lookups.
- ATR length / buffer: controls the small buffer added beyond the Order Block's originating extreme.
- Style: colors and label size for both zones and the BOS marker.
NOTES
Because everything is built from confirmed structure rather than fixed-length pivots or volatility thresholds, the indicator works the same way across instruments and timeframes without needing to be re-tuned. As with any structural/SMC tool, treat it as a way to frame where price is likely to react, not as a standalone signal - combine it with your own confirmation and risk management. Indicador

Stopping Volume EMA RetraceStopping Volume EMA Retrace is designed to identify potential retracement setups when price becomes significantly extended away from an exponential moving average and the extended candle also shows unusually high volume together with rejection.
The indicator combines price extension, relative volume and candle structure for one specific purpose.
Price distance identifies when the market has moved unusually far from its mean.
Relative volume identifies unusually high participation at that extended location.
Wick structure and closing position are then used to filter for rejection-style candles rather than ordinary high-volume continuation candles.
HOW IT WORKS
The EMA acts as the mean and retracement reference.
The default EMA length is 50, but this can be changed by the user.
Upper and lower extension levels are calculated as a percentage distance from the EMA.
The default extension distance is 3%.
For a bullish setup, the candle low must reach or move below the lower extension level.
For a bearish setup, the candle high must reach or move above the upper extension level.
The extension calculation deliberately uses the candle high or low rather than only the closing price.
This allows a candle to move beyond the selected threshold, reject the extended area and close back toward the EMA while still qualifying as a setup.
RELATIVE VOLUME
A qualifying candle must also show unusually high volume.
The Volume Average Length controls how many previous completed candles are used to establish the volume baseline.
The High Volume Multiplier determines how much larger the current candle's volume must be compared with that baseline.
With the default settings, the current candle must have at least 2.0 times the average volume of the previous 20 completed candles.
REJECTION STRUCTURE
High volume alone does not generate a signal.
For a bullish setup, the candle must contain a sufficiently large lower rejection wick and close sufficiently far away from its low.
For a bearish setup, the candle must contain a sufficiently large upper rejection wick and close sufficiently far away from its high.
The optional wick-dominance filter can additionally require the rejection wick to be larger than the wick on the opposite side of the candle.
The Minimum Rejection Wick setting controls the required wick size as a percentage of the complete candle range.
The Minimum Close Recovery setting controls how strongly the candle must recover away from the rejected extreme.
SIGNALS
A bullish signal requires all of the following conditions on the same candle:
Price reaches the selected distance below the EMA.
Volume exceeds the selected relative-volume threshold.
The candle shows the required lower-wick rejection.
The candle closes sufficiently far away from its low.
If wick dominance is enabled, the lower wick must also be larger than the upper wick.
A bearish signal uses the inverse conditions above the EMA.
Signals are confirmed only after the qualifying candle closes.
Historical signal markers are displayed on the candle where the confirmed condition occurred. They are not backplotted onto earlier candles.
WHY THESE CONDITIONS ARE COMBINED
Distance from an EMA by itself only identifies price extension.
High volume by itself cannot distinguish continuation from rejection.
A large wick by itself can occur without unusually high market participation.
Stopping Volume EMA Retrace therefore requires these conditions to occur together.
The EMA extension supplies location.
Relative volume supplies participation context.
The wick and closing-position filters supply rejection context.
The result is a focused OHLCV-based method for highlighting extended high-volume rejection candles that may precede a retracement toward the mean.
HOW TO USE
First watch for price approaching or moving beyond one of the EMA extension levels.
Then wait for a highlighted stopping-volume candle or signal marker.
A bullish signal indicates that qualifying high relative volume and rejection occurred while price was extended below the EMA.
A bearish signal indicates the corresponding condition while price was extended above the EMA.
The EMA can then be used as a visual mean or retracement reference.
It should not be treated as a guaranteed target.
The signal can be evaluated together with market structure, trend, support and resistance, liquidity context and the user's own risk management.
Different markets have different volatility and volume characteristics.
The EMA distance can therefore be adjusted to determine how far price must become extended before a setup is considered.
The volume multiplier can be increased to require more exceptional volume.
The rejection-wick and close-recovery settings can also be increased to make signals more selective.
VISUAL SETTINGS
The EMA, upper extension and lower extension lines can each be shown or hidden independently.
Each line has independent colour, thickness and line-style controls.
Solid, dashed and dotted line styles are available.
Optional glow effects are available for the EMA and both extension lines.
All glow effects are disabled by default.
Bullish and bearish stopping-volume candles can be highlighted independently.
The bullish and bearish candle colours are user adjustable.
Signal markers can also be shown or hidden and have their own independent colour controls.
ALERTS
Alert conditions are included for:
Bullish stopping-volume retrace signals.
Bearish stopping-volume retrace signals.
Either signal type.
Because signals require a confirmed candle, alerts based on these conditions become valid when the qualifying candle closes rather than while it is still forming.
LIMITATIONS
The stopping-volume classification used by this indicator is an OHLCV-based analytical heuristic.
It does not use order-book information, true bid/ask trade classification or direct measurements of executed order-flow absorption.
High relative volume together with rejection therefore does not prove that absorption occurred.
Reported volume can differ between exchanges, brokers and data feeds. The same settings may therefore produce different signals on different markets or venues.
The EMA and extension levels can move while the current realtime candle is forming.
Signal conditions themselves require the candle to close before confirmation.
The indicator does not calculate historical win rates, simulated trade outcomes or Strategy Tester results.
It does not model commissions, spread, slippage, liquidity, position sizing or trade execution.
A confirmed signal means that the configured extension, relative-volume and rejection conditions occurred. It does not imply that price will subsequently return to the EMA or that a trade will be profitable. Indicador

Pattern Atlas: Candlestick Indicator [AxeAlgo]Pattern Atlas: Candlestick Indicator
Companion indicator to Pattern Atlas : Candlestick (Library #1 of the AxeAlgo Pattern Atlas)
WHAT THIS INDICATOR IS
This is a complete candlestick pattern scanner built on top of the Pattern Atlas : Candlestick library â 23 classical candlestick patterns, detected on every bar and turned into on-chart highlighting, a live scanner table, and alerts. It doesn't implement any pattern math itself; every detection is delegated to the library's detect*() functions, so what you see here is exactly what that library finds, with nothing added or reinterpreted.
Candlestick reading is one of the oldest tools in technical analysis, tracing back to Steve Nison's work bringing Japanese candlestick charting to Western traders. The 23 patterns here follow that standard catalog (cross-checked against TA-Lib's CDL* function list), so anyone who already knows what a Morning Star or a Bullish Engulfing bar looks like will recognize exactly what's being flagged.
THE 23 PATTERNS IT SCANS
Single-bar patterns (9): Doji, Long-Legged Doji, Dragonfly Doji, Gravestone Doji, Hammer / Hanging Man, Inverted Hammer / Shooting Star, Marubozu, Spinning Top, Belt Hold.
Two-bar patterns (6): Engulfing, Harami, Harami Cross, Piercing Line / Dark Cloud Cover, Tweezer Top / Bottom, Kicker.
Three-bar-and-longer patterns (8): Morning / Evening Star, Morning / Evening Doji Star, Three Soldiers / Crows, Three Inside Up / Down, Three Outside Up / Down, Abandoned Baby, Rising / Falling Three Methods (the one pattern spanning 5 bars), Stick Sandwich.
READING THE CHART
Each matched pattern gets a box drawn around the exact bars it spans, colored gold for bullish, pale gold-white for bearish, and bright gold for neutral (indecision) patterns â colors are user-configurable. On top of that, a "pin" marker appears at the bar: bullish pins hang below the bar, bearish pins sit above it, and neutral patterns get a plain floating gem with no stem, since indecision doesn't have a direction to anchor to. Hovering any pin or gem shows the full description of everything that matched on that bar, including a measured strength percentage for each one â not just the pattern name repeated back at you.
Strength is a generic, direction-based read on how decisively the bar closed within its own high-low range (near the high for a bullish match, near the low for a bearish one, or a small body relative to the range for a neutral one) â a rough, pattern-agnostic proxy, not a bespoke ratio breakdown per pattern, since that level of internal detail isn't something the library exposes.
THE SCANNER TABLE
A table lists all 23 patterns grouped by category, with a live status column showing each one's current match percentage (or a dash when nothing's matching on the current bar). Position, text size, and whether it's shown at all are all configurable. This table is intentionally live â it reflects the forming bar in real time rather than waiting for the bar to close, since it's meant as a "what's happening right now" readout rather than a persisted signal.
FILTERS AND SETTINGS
Every pattern has its own on/off checkbox, and each of the three categories (Single-Bar, Two-Bar, Three-Bar+) has a master switch above its checkboxes to turn the whole group off in one click.
Three additional filters are available, all off by default so the scanner stays an unbiased detector unless you opt in:
- Volume confirmation â requires a match to occur on at least a chosen multiple of its own trailing average volume before it counts.
- Trend context â requires bullish matches to occur against a downtrend and bearish matches against an uptrend (the classical reading that a reversal candle means more against the trend it's reversing than in the middle of a random chop). Neutral patterns are never filtered by this, since they don't imply a direction.
- Minimum strength â hides matches below a chosen strength percentage.
These filters affect what's drawn on the chart and what feeds the pin/gem tooltips. They do not affect the scanner table, which always shows the library's raw, unfiltered read of the current bar, and they do not affect the per-pattern alerts described below, which fire independently of the visual display settings.
ALERTS
Every pattern has its own alert condition available in TradingView's Create Alert dialog, plus three combined conditions (any bullish pattern, any bearish pattern, any neutral pattern), plus one dynamic alert with a full message listing every pattern that matched, grouped by direction, with each one's measured description and strength.
A NOTE ON REPAINTING
Every box, pin, gem, and alert is gated on the bar actually having closed â nothing here fires or gets drawn off a still-forming bar, regardless of your alert-frequency setting in TradingView's dialog. The one exception is the scanner table, which is deliberately live so it can answer "what's happening on this bar right now" â that's a readout, not a persisted signal, and it's expected to change as the current bar develops.
PART OF A LARGER SERIES
This indicator is the companion to Library #1 of the AxeAlgo Pattern Atlas â a planned set of Pine libraries splitting pattern detection by the method actually used to find each kind of pattern: candlestick shape (this one), classical chart/geometric patterns (Library #2), harmonic Fibonacci-ratio patterns (Library #3), and market-structure concepts (order blocks, liquidity, Wyckoff-style events). Each library has, or will have, its own companion scanner indicator built the same way this one is.
DISCLAIMER
This indicator is a technical analysis tool for identifying classical candlestick shapes in historical and live price data. It does not predict future price movement, and a detected pattern â including its measured strength â is a description of past price action, not a signal guaranteed to repeat. Nothing in this script constitutes financial advice. Always combine pattern recognition with your own risk management and broader analysis before making any trading decision.
Indicador

Pivot MA StructurePivot MA Structureâ Complete User Guide
1. General Purpose
This indicator combines several independent market-reading components into one framework:
Pivot-controlled directional moving averages
Bullish and Bearish market-structure shifts
Pre-break structure candidates
Trend-continuation markers
Shift-direction MA retests
Anchored VWAP equilibrium
RSI 50 equilibrium
Fair Value Gaps and breakers
Long/Short health scores
A real-time information dashboard
Selectable alerts
It is an indicator, not an automated strategy. It does not place orders, calculate position size, or automatically manage stop-loss and take-profit orders.
Its primary objective is to answer five questions:
What is the latest structural direction?
Which directional Pivot MA is currently active?
Do structure and the active MA agree?
Do VWAP and RSI support the same direction?
Is there a suitable continuation or retest location for entry?
2. The Core Reading Model
The indicator separates market information into three layers.
Structural layer
This layer detects:
Bullish Shift
Bearish Shift
Bullish continuation
Bearish continuation
Unbroken bullish and bearish candidates
A Shift represents a change in the direction of confirmed structure breaks.
Directional MA layer
This layer determines whether the active moving-average condition is:
Bullish
Bearish
Ghost/inactive
Still waiting for a valid pivot
Only one directional MA can be active at a time.
Confirmation layer
The following secondary filters measure the quality of the directional condition:
Anchored VWAP
RSI relative to 50
Fair Value Gaps
Directional MA retests
Health score
A structural signal does not automatically imply that all confirmation filters agree.
3. Pivot Moving Average System
Default settings
MA type: EMA
MA length: 50
Pivot strength: 5
Pivot qualification: All Confirmed Pivots
Source: Pivot Side
The MA type can be changed to:
EMA
SMA
WMA
RMA
HMA
Pivot Side source
When MA Source = Pivot Side:
The bullish MA is calculated from low.
The bearish MA is calculated from high.
This creates two distinct directional averages:
Green MA for bullish conditions
Red MA for bearish conditions
If Close or HL2 is selected, both averages use the selected common source.
How a Pivot MA is created
A bullish Pivot MA becomes available after a qualifying confirmed low pivot.
A bearish Pivot MA becomes available after a qualifying confirmed high pivot.
The pivot does not become known immediately. With Pivot Strength set to 5, the system requires five bars on the right side of the pivot before confirming it.
Therefore, pivot activation is intentionally delayed.
Pivot Qualification
All Confirmed Pivots
This is the default mode.
Every confirmed low pivot can refresh the bullish MA state.
Every confirmed high pivot can refresh the bearish MA state.
This allows higher lows in an uptrend to reactivate the bullish side and lower highs in a downtrend to refresh the bearish side.
HH / LL Only
This is a more selective mode.
A bearish MA trigger requires a pivot high above the previous pivot high.
A bullish MA trigger requires a pivot low below the previous pivot low.
This mode generates fewer MA refresh events and may leave an MA in ghost mode for longer.
4. Active and Ghost MA Logic
Active bullish MA
The bullish MA is eligible to become active when:
The bullish MA exists.
It has not remained locked by an unresolved break.
Price is at or above the bullish MA.
The bullish MA is rising.
Active bearish MA
The bearish MA is eligible when:
The bearish MA exists.
It has not remained locked by an unresolved break.
Price is at or below the bearish MA.
The bearish MA is falling.
One active MA at a time
The indicator does not allow both MAs to be active simultaneously.
If only the bullish side is eligible:
Bullish MA becomes active.
Bearish MA becomes ghost.
If only the bearish side is eligible:
Bearish MA becomes active.
Bullish MA becomes ghost.
If neither side is eligible:
Both lines can appear as ghost lines.
If both sides are technically eligible during compression:
A new bearish pivot or downward bar movement gives priority to the bearish MA.
Otherwise, the bullish MA receives priority.
Active line thickness
The active directional MA is always displayed one step thicker than a ghost MA.
This allows the currently accepted directional condition to be identified visually without relying only on color.
Ghost lines
A ghost line is a faded directional MA.
Ghost status means that the MA still exists and is still calculated, but it is not currently accepted as the active directional condition.
A ghost line is not frozen. Its value continues to move because the underlying MA calculation continues.
MA break behavior
The bullish MA is broken when price crosses below it according to the selected break confirmation.
The bearish MA is broken when price crosses above it.
The break method can be:
Close: requires the closing price to cross the MA.
Wick: reacts to the barâs low or high crossing the MA.
After a genuine break, the line becomes ghosted. A new qualifying same-side pivot can reset its broken state.
5. Market Structure Engine
Default structure length
Structure Length: 12
The engine uses an odd-length fractal model. An even input is internally advanced to the next odd number.
Therefore:
Input 12 becomes an internal 13-bar fractal.
Pivot strength becomes 6 bars on each side.
This is different from using 12 left bars and 12 right bars. It is a full fractal-window interpretation.
Confirmed structure pivots
The engine continuously tracks:
Latest confirmed fractal high
Latest confirmed fractal low
These become potential break candidates.
A structure pivot appears only after its required right-side bars have completed.
6. Candidate Lines
Bullish Break Candidate
A confirmed fractal high creates a bullish break candidate.
It is displayed as:
Green dotted line
Bullish Break Candidate text above the line
This level represents the price that must be exceeded for an upward structure break.
Bearish Break Candidate
A confirmed fractal low creates a bearish break candidate.
It is displayed as:
Red dotted line
Bearish Break Candidate text below the line
This level represents the price that must be broken for a downward structure break.
Candidate projection
The default projection is five bars to the right.
The candidate does not extend infinitely. On every new bar:
Its right endpoint moves forward.
It remains five bars ahead of the current bar.
It stops when broken or replaced by a newer same-side pivot.
Candidate replacement
When a newer confirmed pivot of the same side appears:
The previous unbroken candidate is deleted.
A new candidate begins from the newer pivot.
This ensures that the chart emphasizes the latest actionable structure level.
7. Bullish and Bearish Shift Logic
The internal logic follows a CHoCH-style direction-change model, but the chart does not display the word âCHoCH.â
It uses:
Bullish Shift
Bearish Shift
Bullish Shift
A Bullish Shift occurs when:
The last confirmed structure break was downward.
Price subsequently breaks the latest unbroken fractal high.
The break can be confirmed by:
Close above the level, or
Wick above the level
depending on the selected Break Confirmation.
When confirmed:
The candidate line ends at the breakout bar.
The line becomes a stronger green dotted shift segment.
Bullish Shift appears above the middle of the segment.
The dashboardâs Latest Shift changes to Bullish Shift.
The bullish retest detector becomes armed.
Bearish Shift
A Bearish Shift occurs when:
The last confirmed structure break was upward.
Price subsequently breaks the latest unbroken fractal low.
When confirmed:
The candidate line ends at the breakdown bar.
It becomes a stronger red dotted shift segment.
Bearish Shift appears below the middle of the line.
The dashboard changes to Bearish Shift.
The bearish retest detector becomes armed.
First structure break
The first break establishes the initial direction.
Because no previous opposite break exists, it is not classified as a Shift.
It is treated as a continuation break and receives a directional triangle.
8. Trend-Continuation Triangles
The indicator does not draw BOS lines.
Instead, a same-direction continuation break is marked directly on the breaking candle.
Bullish continuation
A bullish continuation is shown as:
Green upward triangle
Located below the breakout candle
It means that an upward break occurred without reversing the previous break direction.
Bearish continuation
A bearish continuation is shown as:
Red downward triangle
Located above the breakdown candle
It means that a downward break occurred without reversing the previous break direction.
How to interpret continuation marks
Continuation triangles are not fresh reversal signals.
They are better interpreted as confirmation that the existing structural direction is continuing.
A continuation marker is generally more useful when:
The matching directional MA is active.
Price is on the correct side of VWAP.
RSI supports the same direction.
The breakout is not entering directly into an opposing FVG or major swing level.
Avoid treating every continuation triangle as an automatic market entry. Entering immediately after an extended breakout can create poor risk-to-reward.
9. Directional MA Retest â âRâ Marker
Important definition
In the current version, the R marker detects a retest of the same-direction Pivot MA, not the horizontal dotted shift line.
After a Bullish Shift:
The indicator monitors the green bullish Pivot MA.
After a Bearish Shift:
It monitors the red bearish Pivot MA.
Bullish retest
After a Bullish Shift, the retest detector waits for a later candle whose range intersects the green bullish MA:
Candle low is at or below the MA.
Candle high is at or above the MA.
When the first valid touch occurs:
A green R appears below the candle.
The bullish retest alert can trigger.
The retest detector stops waiting until a new Shift occurs.
The green line can be active or ghost. The retest detector only requires the corresponding bullish MA to exist.
Bearish retest
After a Bearish Shift, the first later candle that intersects the red bearish MA produces:
A red R
Located above the candle
A bearish retest alert opportunity
Why an R may not appear
An R will not appear when:
No valid Bullish or Bearish Shift has occurred.
The contact happens on the Shift candle itself.
The candle does not actually intersect the MA value.
The first retest after that Shift has already been marked.
A new opposite Shift replaced the previous retest direction.
The corresponding directional MA does not yet exist.
Show Directional MA Retests is disabled.
The visual toggle does not disable the underlying alert calculation.
10. Anchored VWAP Equilibrium
Default status
The VWAP line is enabled by default.
Available anchors
Session
Week
Month
Session
The VWAP resets with the daily/session boundary.
Week
The VWAP resets at the beginning of each week.
Month
The VWAP resets at the beginning of each month.
Horizontal VWAP presentation
The indicator does not plot the entire conventional curved VWAP history.
Instead, it takes the latest anchored VWAP value and displays it as a horizontal equilibrium reference.
Default presentation:
100 bars to the left
10 bars to the right
VWAP label on the right
Dashed neutral-colored line
The right-side length and label offset are adjustable.
Bullish interpretation
Price above VWAP suggests that current price is trading above the volume-weighted equilibrium.
This supports a bullish setup.
Bearish interpretation
Price below VWAP suggests that price is trading below the volume-weighted equilibrium.
This supports a bearish setup.
VWAP as a trade-management filter
For an existing long:
Remaining above VWAP supports the health of the position.
Losing VWAP removes one bullish health point.
Reclaiming VWAP can restore that point.
For an existing short:
Remaining below VWAP supports the bearish condition.
Moving above VWAP weakens the short health score.
VWAP alone is not an entry or exit signal. It is an equilibrium filter.
11. RSI 50 Price Equilibrium
Default settings
RSI Length: 14
RSI line: enabled
Midpoint: 50
HUD interpretation
RSI at or above 50 is bullish.
RSI below 50 is bearish.
Horizontal RSI 50 price line
A literal RSI value of 50 cannot be plotted meaningfully on the same price scale as BTC, forex, or commodities.
Therefore, the indicator stores the closing price where RSI most recently crossed 50.
That price becomes the RSI 50 horizontal equilibrium level.
It represents the latest price associated with a momentum-regime transition.
The line:
Is green when the current RSI is above 50.
Is red when the current RSI is below 50.
Extends a configurable number of bars left and right.
Has an offset label on the right.
Practical use
For a long position:
RSI above 50 supports positive momentum.
RSI falling below 50 reduces long health.
For a short position:
RSI below 50 supports negative momentum.
RSI reclaiming 50 reduces short health.
RSI 50 should be used as confirmation, not as a standalone trigger.
12. Fair Value Gap Engine
The FVG engine is enabled by default.
It supports:
Standard FVG mode
Breaker mode
Bullish and bearish zones
ATR threshold filtering
Multiple mitigation methods
Overlap filtering
Midlines
Optional right extension
Optional raid tracking
Bullish FVG
A bullish FVG is created when the current low is above the high from two bars earlier, producing a three-candle imbalance.
The engine also applies the selected ATR threshold to filter insignificant gaps.
A bullish FVG is normally interpreted as:
An imbalance below price
A possible pullback support area
A potential location for bullish continuation or mitigation
Bearish FVG
A bearish FVG is created when the current high is below the low from two bars earlier.
It is generally interpreted as:
An imbalance above price
A possible resistance area
A potential bearish pullback or mitigation location
Show Last
Show Last determines how many recent bullish and bearish FVGs are displayed.
With a value of 5, the engine can show:
Five recent bullish zones
Five recent bearish zones
subject to mitigation and overlap removal.
Threshold
The threshold applies an ATR-based significance filter.
A value of 0 accepts all qualifying gaps.
Higher values require a stronger displacement relative to ATR.
Increasing the threshold generally produces fewer but more significant FVGs.
Mitigation modes
Close
Uses the candle body boundary as the mitigation trigger.
For a bullish FVG, the body must penetrate below the relevant lower boundary.
For a bearish FVG, the body must penetrate above the relevant upper boundary.
Wick
Uses the candleâs full high/low range.
This is the most sensitive mitigation method.
Avg
Uses the midpoint of the gap.
This treats a move through the FVGâs average price as mitigation.
FVG mode
In standard FVG mode:
The zone remains visible while active.
It is removed when the selected mitigation condition is satisfied.
Breakers mode
In Breakers mode:
The original FVG is tracked.
When mitigated, it becomes a breaker.
Its directional display changes to the opposite-side color.
It remains until the breakerâs opposite invalidation condition occurs.
Hide Overlap
When enabled, overlapping FVGs are filtered.
The newest FVG is compared against:
Older FVGs in the same direction
FVGs in the opposite direction
Overlapping stored zones can be removed to reduce visual clutter.
Midline
When enabled, the midpoint of each FVG is displayed.
The midpoint can be useful as:
A partial mitigation level
A mean-reversion reference
A refined entry or invalidation location
Extend FVG
When disabled, FVG drawings end at the current bar.
When enabled, active FVG zones extend to the right.
Display Raids
Raid tracking looks for liquidity interactions around an active FVG.
For a bullish FVG, it can track a move below the upper FVG boundary followed by a close back above it.
For a bearish FVG, it can track a move above the lower boundary followed by a close back below it.
Raid locations are displayed with a line and an x marker.
13. Information HUD
The information table summarizes the indicatorâs current state.
Latest Shift
Possible values:
Bullish Shift
Bearish Shift
Waiting
This row stores the most recent genuine opposite-direction structure break.
It does not reset to neutral after a few bars. It remains bullish or bearish until an opposite Shift occurs.
Bullish Pivot MA
Possible values:
Waiting
Active
Ghost
Waiting
No qualifying bullish pivot has created the bullish MA state yet.
Active
The bullish MA currently satisfies the directional activation logic.
Ghost
The bullish MA exists but is not currently accepted as active.
Bearish Pivot MA
Uses the same status definitions for the red bearish MA.
Shift + MA
Possible values:
Bullish Match
Bearish Match
No Match
Bullish Match
Requires:
Latest Shift is bullish.
Bullish Pivot MA is active.
Bearish Match
Requires:
Latest Shift is bearish.
Bearish Pivot MA is active.
No Match
Structure and the active directional MA do not currently agree.
This is a warning that the setup lacks core confluence.
VWAP
Possible values:
Price Above
Price Below
Unavailable
This reports the current priceâs relationship with the selected anchored VWAP.
RSI
Displays:
Current RSI value
Above 50 or Below 50
Example:
56.4 / Above 50
Long Health
The long score counts currently satisfied bullish conditions.
Short Health
The short score counts currently satisfied bearish conditions.
Composite Bias
Possible values:
Bullish
Bearish
Balanced
The result is determined by comparing Long Health with Short Health.
Long Health greater than Short Health â Bullish
Short Health greater than Long Health â Bearish
Equal values â Balanced
Composite Bias is a comparison of rule counts, not a forecast.
14. Health Score Calculation
With all default score filters enabled, each side has four factors.
Long Health factors
One point is awarded for each condition:
Latest Shift is Bullish.
Bullish Pivot MA is active.
Price is above VWAP.
RSI is at or above 50.
Short Health factors
One point is awarded for each condition:
Latest Shift is Bearish.
Bearish Pivot MA is active.
Price is below VWAP.
RSI is below 50.
Score examples
100% â 4/4
All directional conditions agree.
This is the strongest confluence state produced by the dashboard.
It does not mean the trade has a 100% probability of success.
75% â 3/4
The setup is directionally favorable, but one filter disagrees.
Examples:
Bullish Shift and bullish MA are aligned, but RSI is below 50.
Bearish structure is aligned, but price is still above VWAP.
50% â 2/4
The condition is mixed.
This often occurs during:
Transition
Consolidation
Pullback
Delayed confirmation
Conflict between structure and momentum
25% â 1/4
Only one filter supports the direction.
This is generally a weak environment for initiating a new position.
0% â 0/4
None of the directional filters support that side.
Disabling score filters
If VWAP is removed from the score, the denominator decreases.
If RSI is also removed, only two core factors remain:
Shift direction
Active directional MA
The displayed percentage automatically adjusts to the number of enabled factors.
Important limitation
Health is a confluence percentage, not a statistically measured win probability.
A 100% Long Health reading means four out of four programmed bullish conditions are true. It does not mean the market has a 100% chance of rising.
15. Suggested Long Entry Framework
Core long condition
The preferred long environment is:
Latest Shift = Bullish Shift
Bullish Pivot MA = Active
Shift + MA = Bullish Match
This is the minimum structural and directional agreement.
Additional confirmation
A higher-quality long condition may also include:
Price above VWAP
RSI above 50
Long Health at 75% or 100%
Bullish FVG below or around the entry
No large bearish FVG immediately above
A green R retest marker
Aggressive long entry
An aggressive trader may enter near the Bullish Shift breakout.
Risks:
The breakout may be extended.
Stop distance may be large.
Price may return to the broken structure or MA before continuing.
Conservative long entry
A more conservative sequence is:
Bullish Shift appears.
Bullish MA becomes active or remains directionally valid.
Price stays above or reclaims VWAP.
RSI remains above or reclaims 50.
Price pulls back into the green MA.
A green R appears.
The retest candle shows rejection or closes constructively.
This avoids chasing the initial breakout.
Continuation entry
A green triangle can support a continuation entry when:
The dashboard already has bullish alignment.
Price is not excessively extended above the MA.
The continuation break has room before the next bearish FVG or swing resistance.
A triangle by itself is not enough.
16. Suggested Short Entry Framework
Core short condition
The preferred short environment is:
Latest Shift = Bearish Shift
Bearish Pivot MA = Active
Shift + MA = Bearish Match
Additional confirmation
A higher-quality short may include:
Price below VWAP
RSI below 50
Short Health at 75% or 100%
Bearish FVG above or near the entry
No major bullish FVG immediately below
A red R retest marker
Conservative short entry
A conservative bearish sequence is:
Bearish Shift appears.
Bearish Pivot MA becomes active.
Price remains below or rejects VWAP.
RSI remains below 50.
Price rallies back into the red MA.
A red R appears.
The retest candle rejects the MA or closes bearishly.
17. How to Stay in a Position
Staying in a long
A long remains structurally healthier while:
Latest Shift remains bullish.
Bullish Pivot MA remains active.
Price remains above VWAP.
RSI remains above 50.
Long Health remains at 75% or 100%.
Bullish FVGs below price continue to act as support.
No Bearish Shift is created.
Early long weakness
Potential deterioration begins when:
RSI falls below 50.
Price falls below VWAP.
Bullish MA becomes ghost.
Long Health falls from 100% to 75% or 50%.
One lost factor is not necessarily an exit. It is a warning that confluence is decreasing.
Strong long invalidation
More serious invalidation can include:
Bearish Shift
Bearish Match
Bullish MA break
Price remaining below VWAP
RSI remaining below 50
Bullish FVG support being fully mitigated
Staying in a short
A short remains healthier while:
Latest Shift remains bearish.
Bearish MA remains active.
Price remains below VWAP.
RSI remains below 50.
Short Health remains high.
Bearish FVGs above price act as resistance.
No Bullish Shift appears.
Strong short invalidation
Potential invalidation includes:
Bullish Shift
Bullish Match
Bearish MA break
Sustained price above VWAP
RSI above 50
Bearish FVG resistance being invalidated
18. Stop-Loss and Profit Management
The indicator does not place stops or targets.
Possible stop references include:
For long trades
Below the retest candle low
Below the latest confirmed swing low
Below the bullish FVG
Below the bullish MA with an ATR buffer
Below the structure level that would invalidate the setup
For short trades
Above the retest candle high
Above the latest swing high
Above the bearish FVG
Above the bearish MA with an ATR buffer
Possible profit references
Previous swing high/low
Opposing FVG
Major VWAP deviation area
Fixed risk-to-reward target
Partial exit at 1R and trailing remainder
Opposite Shift
Health score deterioration
Stops should not be moved farther away simply to avoid accepting a loss.
19. Alerts
The script provides selectable conditions for:
Bullish Shift Created
Bearish Shift Created
Bullish Directional MA Retest
Bearish Directional MA Retest
Bullish Pivot MA Broken
Bearish Pivot MA Broken
Bullish Shift + Bullish MA alignment
Bearish Shift + Bearish MA alignment
Alert toggles
The shift and retest alerts have individual enable/disable inputs.
These settings control whether the corresponding alert condition can trigger.
Important TradingView behavior
Enabling an alert condition in the indicator settings does not automatically create a TradingView alert.
You must still:
Open TradingViewâs alert dialog.
Select the indicator.
Select the desired alert condition.
Choose the frequency.
Create the alert.
For confirmed signals, using Once Per Bar Close is generally the most consistent choice.
20. Repainting and Confirmation Considerations
Pivot delay
Confirmed pivots require future right-side bars.
This means:
Pivot signals are delayed.
Once confirmed, the historical pivot itself is stable.
The indicator does not know a pivot at the exact moment the pivot bar first forms.
Bar-close confirmation
Confirm Signals On Bar Close is enabled by default.
This reduces intrabar signal changes for:
MA breaks
Structure breaks
Shift creation
Retests
Intrabar movement
The current MA, VWAP, RSI, and live candidate values may still visually move while the current candle is forming.
Using bar-close confirmation does not freeze the current barâs underlying price calculations.
FVG evolution
FVGs can disappear when:
Mitigated
Invalidated
Removed by overlap filtering
Excluded by the Show Last setting
This is normal lifecycle behavior, not necessarily historical repainting.
21. Practical Decision Hierarchy
A disciplined way to use the indicator is:
Step 1 â Identify structure
Check Latest Shift.
Bullish Shift â prioritize long ideas.
Bearish Shift â prioritize short ideas.
Waiting â insufficient shift history.
Step 2 â Confirm the directional MA
Check Shift + MA.
Bullish Match â bullish structure and MA agree.
Bearish Match â bearish structure and MA agree.
No Match â wait or reduce conviction.
Step 3 â Check equilibrium
For longs:
Prefer price above VWAP.
Prefer RSI above 50.
For shorts:
Prefer price below VWAP.
Prefer RSI below 50.
Step 4 â Check location
Use:
Directional MA retest
FVG support/resistance
Recent swing levels
VWAP
A good directional idea entered at a poor location can still have poor risk-to-reward.
Step 5 â Check health
75â100%: favorable confluence
50%: mixed
0â25%: weak for that direction
Step 6 â Define invalidation before entry
Determine:
Stop level
Position size
Maximum acceptable loss
First target
Conditions for partial or full exit
Disclaimer
This indicator is provided for informational, educational, and analytical purposes only. It does not constitute financial advice, investment advice, trading advice, a solicitation, or a recommendation to buy or sell any financial instrument.
Market-structure shifts, moving averages, VWAP, RSI, Fair Value Gaps, retest markers, continuation symbols, health scores, and alerts are mathematical interpretations of historical and real-time market data. They do not guarantee future price movement or profitable outcomes.
The Health Score is a count of aligned indicator conditions. It is not a probability of success, an expected return, or a measure of actual trade risk.
Trading cryptocurrencies, forex, commodities, futures, CFDs, and other leveraged products involves substantial risk and may result in the loss of some or all invested capital. Historical performance does not guarantee future results. Signals may be delayed because of pivot confirmation, and real-time values may change before a candle closes.
Always perform independent analysis, use appropriate position sizing, define a stop-loss before entering a trade, account for fees and slippage, and never risk capital you cannot afford to lose. The user remains solely responsible for all trading and investment decisions. Indicador

Trend Following SuperSmoother - Accumulation Zones [JW]Trend Following SuperSmoother - Accumulation Zones
A Pine Script trend following indicator designed to identify systematic accumulation opportunities, profit-taking periods and broader position cycles using a smoothed oscillator framework.
The indicator is intended primarily for long-horizon analysis, with particular emphasis on distinguishing early trend reversals from pullbacks within established positive trends.
---------------------------------------------------------------------------------------------------------------------
Overview
The indicator combines a SuperSmoother-based oscillator and signal line with Bollinger-style oscillator bands and a state-based signal framework.
Rather than treating every oscillator crossover as an independent trading signal, it classifies market conditions into distinct phases:
- Early Reversal Accumulation
- Pullback Accumulation
- Profit-Taking
- Long / Out-of-Market Position Regimes
Signals are evaluated on confirmed candle closes to reduce intrabar noise.
---------------------------------------------------------------------------------------------------------------------
Indicator Components
SuperSmoother Oscillator
The core oscillator is smoothed to reduce short-term market noise while preserving changes in longer-term momentum.
Its colour identifies its current direction:
- Green: oscillator rising
- Red: oscillator falling
A separate signal line provides a slower reference against which changes in oscillator behaviour can be assessed.
Bollinger Bands
Upper and lower bands are calculated around the oscillator framework and are used to identify unusually extended oscillator conditions.
Unlike price Bollinger Bands, these bands operate within the oscillator pane and form part of the logic for identifying potential reversal and pullback setups.
---------------------------------------------------------------------------------------------------------------------
Accumulation Logic
1. Early Reversal
Early-reversal accumulation is designed to identify improving momentum following a sufficiently weak oscillator regime.
The setup begins when the oscillator has moved through the lower Bollinger boundary and subsequently satisfies the required rising/green conditions while remaining in the negative regime.
The exit condition depends on the state of the signal line when the setup occurs:
- If the signal line is below zero, accumulation continues until the signal reaches zero.
- If the signal line is already above zero, accumulation continues until the oscillator crosses the signal line from below.
This distinction prevents an early-reversal zone from remaining active indefinitely when the signal line was already positive at entry.
A large green triangle marks a confirmed early-reversal entry.
2. Pullback Accumulation
Pullback accumulation is intended for corrections occurring within an established positive oscillator regime.
The setup tracks an oscillator that has moved above the upper Bollinger boundary and subsequently falls back through it. Once the required falling/red condition is satisfied, a pullback accumulation period can begin.
This allows the oscillator to turn red either before or after crossing the upper band rather than requiring both events to occur on the same candle.
A smaller dark-green triangle marks the pullback entry.
---------------------------------------------------------------------------------------------------------------------
Profit-Taking
A profit-taking regime can begin when:
- the oscillator is above zero;
- the oscillator turns from rising to falling; and
- no higher-priority accumulation regime is active.
Profit-taking periods are displayed as light-red zones.
A small dark-red circle marks the beginning of a profit-taking phase.
Signal priority is:
Early Reversal > Pullback > Profit-Taking
This state hierarchy prevents accumulation and profit-taking zones from overlapping.
---------------------------------------------------------------------------------------------------------------------
Position-Cycle Signals
The indicator also provides a higher-level representation of the intended long-term position cycle.
Entry
A confirmed early-reversal signal marks the beginning of the primary long regime.
The oscillator pane displays:
- a green vertical entry line; and
- a green zero-axis regime line while the position remains active.
Exit
When the oscillator crosses below zero on a confirmed candle close:
- a large red circle marks the exit;
- a red vertical line identifies the transition; and
- the zero-axis regime changes from green to red.
The red regime continues until the next confirmed early-reversal entry.
This creates a continuous visual distinction between the indicator's long/holding regime and its out-of-market regime.
---------------------------------------------------------------------------------------------------------------------
Visual Signal Guide
Large green triangle -> Early-reversal entry / primary position entry
Small dark-green triangle -> Pullback accumulation
Small dark-red circle -> Profit-taking signal
Large red circle -> Oscillator below zero / primary position exit
Green background -> Accumulation zone
Light-red background -> Profit-taking zone
Green zero-axis regime -> Long / holding period
Red zero-axis regime -> Out-of-market period
Black hollow circles -> Regime change
---------------------------------------------------------------------------------------------------------------------
Design Philosophy
The indicator is designed around a simple idea: trend following does not necessarily require buying only after a trend has already become obvious.
Instead, the framework attempts to separate three useful stages of a longer market cycle:
1. accumulation during an emerging reversal;
2. additional accumulation during pullbacks within a positive trend; and
3. profit-taking as positive momentum begins to deteriorate.
The primary exit remains deliberately slower: a confirmed oscillator move below zero.
This makes the framework more suited to medium- and long-horizon trend participation than short-term trading.
---------------------------------------------------------------------------------------------------------------------
Alerts
Early-reversal and pullback entries are combined into a single TradingView entry alert condition, allowing both accumulation signal types to be monitored using one alert.
Signals are confirmed at candle close.
---------------------------------------------------------------------------------------------------------------------
The indicator can be applied across different securities and timeframes, although its parameters and behaviour should be evaluated for the characteristics of the underlying instrument. Indicador

RvDiv Regular Divergence (Daily)Rv-Div â Regular Divergence (Daily)
Rv-Div marks confirmed regular divergences on the daily chart and draws the line that connects them, so you can see the structure the signal is based on instead of trusting an arrow.
**What it does**
A bullish divergence is price making a lower low while the oscillator makes a higher low: price is still falling, but with less force behind it. A bearish divergence is the mirror image â a higher high in price against a lower high in the oscillator.
Rv-Div marks the exact candle that confirms the divergence, draws the line between the two pivots it used, and can fire an alert.
**The problem it solves**
Most divergence tools compare each new pivot against the immediately previous one. That works until a small wrinkle appears between the two lows that actually matter â and then the line gets drawn between the wrinkle and the new low instead of between the two real lows. The divergence you see on screen is not the one your eye would have drawn.
Rv-Div compares each new pivot against the last N pivots, not just the previous one, and keeps the one that forms a valid divergence. That is what the eye does: connect the two lows that matter, skipping the noise in between.
It also spends each anchor. Without that, one old pivot gets reused against every new pivot that appears, and you end up with several lines fanning out from the same point â the same divergence counted three or four times, which inflates any count you make of them. Here, once an anchor is used it is discarded along with everything older.
**Quality filters**
Not every pair of pivots deserves to be called a divergence. Four filters, all adjustable:
- Minimum price difference between the two extremes, measured in ATR, so it travels across symbols and volatility regimes instead of using a fixed percentage.
- Minimum difference between the two oscillator pivots.
- Both oscillator pivots on the correct side of zero.
- Minimum and maximum bar separation between the two pivots.
**Settings**
Three oscillators to choose from â Awesome Oscillator, MACD histogram, and a linear-regression momentum. All three are public-domain formulas.
The pivot definition (bars to the left and right), the quality filters, the two EMAs, the colours, the label size and the line width are all adjustable. The default values are the ones I use on the daily chart.
**How to use it**
Daily chart only. The indicator says so on screen if you load it on any other timeframe.
Set alerts to **Once per bar close**. A forming candle keeps changing until it closes, and a divergence is not confirmed until then.
**Dropping to a lower timeframe to confirm**
The signal is a daily signal, but you do not have to take it blind on the daily close. Once the daily marks the entry, drop to 4h and wait for a break of the local high followed by a pullback â or go from 4h down to 1h and look for the same thing. You give up a little of the move in exchange for not entering into a candle that is still falling.
This is deliberately not built into the indicator. It is a judgement call, and judgement calls belong to the trader, not to a script that has to work the same way on every symbol and every market.
**What it does not do**
It does not manage exits. It marks an entry candle and nothing else â no targets, no stops, no position sizing. Those decisions are yours.
It is not a standalone system. A divergence tells you that momentum is fading, not that the trend has turned. What you do with that information is where your own judgement goes.
**About the confirmation delay**
A pivot does not exist until the required bars have closed to its right, so the signal arrives with that delay. This is deliberate. Removing it would mean signalling on unconfirmed pivots, which look excellent in hindsight and vanish in real time.
Historical signals do not repaint: once a pivot is confirmed, it stays confirmed. The forming candle is the only thing that can change, which is why alerts should be set to bar close.
---
**Español**
Rv-Div marca divergencias regulares confirmadas en gráfico diario y dibuja la lÃnea que las une, para que veas la estructura en la que se apoya la señal en lugar de fiarte de una flecha.
Una divergencia alcista es el precio haciendo un mÃnimo más bajo mientras el oscilador hace un mÃnimo más alto: sigue cayendo, pero con menos fuerza detrás. La bajista es la imagen espejo.
La diferencia con la mayorÃa de detectores de divergencia está en el trazado. Casi todos comparan cada pivote nuevo con el inmediatamente anterior, y en cuanto aparece una arruga entre los dos suelos que de verdad importan, la lÃnea sale mal dibujada. Rv-Div compara contra los últimos N pivotes y se queda con el que forma la divergencia válida â que es lo que hace el ojo. Además consume cada ancla, asà que un mismo pivote antiguo no se reutiliza una y otra vez generando varias lÃneas en abanico desde el mismo punto.
Cuatro filtros de calidad ajustables (diferencia mÃnima de precio en ATR, diferencia mÃnima del oscilador, ambos pivotes del lado correcto del cero, y separación mÃnima y máxima), tres osciladores a elegir, y todo el aspecto configurable.
Solo diario. Alertas configuradas como "Una vez por barra al cerrar".
**Bajar a una temporalidad menor para confirmar.** La señal es del diario, pero no hace falta tomarla a ciegas en el cierre diario. Cuando el diario marca la entrada, se puede bajar a 4h y esperar una ruptura del máximo local con su retroceso â o de 4h bajar a 1h y buscar lo mismo. Se cede un poco del movimiento a cambio de no entrar en una vela que todavÃa viene cayendo. Esto no está metido en el indicador a propósito: es criterio del operador, y el criterio no se le delega a un script que tiene que funcionar igual en todos los sÃmbolos.
No gestiona salidas ni es un sistema completo: marca la vela de entrada y nada más. Una divergencia dice que el impulso se está agotando, no que la tendencia ya giró.
El retraso de confirmación es deliberado: un pivote no existe hasta que cierran las velas que lleva a su derecha. Quitarlo significarÃa señalar sobre pivotes sin confirmar, que se ven perfectos en el pasado y desaparecen en vivo. Las señales históricas no repintan. Indicador

Multi-Factor Reversal Confluence All-in-Oneâ OVERVIEW
Multi-Factor Reversal Confluence is a single decision object that looks for exhaustion-and-turn REVERSALS by making five orthogonal detectors agree through one staged lifecycle â WATCH â ARMED â EXTREME â CONFIRMED â filtering every call through two gates, and then grading its own conviction against how those calls have actually resolved on THIS chart. Two things its category usually skips: gating (a trend-defense that will not fade a series with no equilibrium to revert to, and a turbulence veto that will not fade an active, intensifying volatility cascade â the two dominant ways reversal tools get run over), and honest self-calibration (conviction is mapped to a probability by a non-parametric isotonic fit of predictedârealized, and the "proven" badge uses an out-of-sample, uniqueness-weighted, multiple-testing-deflated Wilson lower bound versus a matched base rate â so a thin or edgeless sample says so plainly). Everything is computed internally from price and volume; there is no input.source wiring, no external symbol, and no request.security.
â HOW IT WORKS
Five independent signals, each on a 0â100 signed scale (+ = bottom / â = top), each naming its method:
1. INSTABILITY (prior) â a Wasserstein-1 (earth-mover) distance between the most recent window of returns and the window before it (matched sorted order-statistics), volatility-normalized and ranked as a percentile of its own history. A rising distance = the return distribution is changing shape â variance, skew OR tail â i.e. a system losing stability and a reversal PRIOR. Shape-complete (it catches a fattening tail that a moment-by-moment read misses) and direction is set opposite the prevailing drift.
2. CHANGEPOINT (trigger) â a Student-t Bayesian Online Changepoint Detector (run-length posterior with a hazard prior) plus a CUSUM mean/variance break, resolved into a drift-turn direction. This is the TRIGGER that a regime actually broke.
3. EXHAUSTION (gate) â a real trend (efficiency ratio above a floor over the slow horizon) whose fast efficiency is now COLLAPSING while price is stretched (displacement percentile), optionally boosted by absorption (high volume, little progress) and a panic-range read. The GATE that the move is spent.
4. CLIMAX (extreme) â a volume-z (time-of-day-normalized on intraday), an expansion-range-z, a close-rejection wick and an order-flow delta from Bulk-Volume Classification (buy fraction = the normal CDF of the standardized return â a principled signed delta, not a close-location proxy). The composite must clear its own conformal online (1âα) quantile, so "extreme" means a calibrated ~α-rare event on this symbol; a secondary-test state machine then only confirms once a lower-volume retest holds the extreme.
5. STRUCTURE (confirm) â a liquidity sweep of a confirmed swing pivot followed by a displacement break back through it (⥠a à ATR), which also sets the stop. The CONFIRM.
Mean-reversion / regime gate (the trend-defense) â every fire is filtered by how mean-reverting the tape is right now, on a 0â1 scale from two orthogonal reads: the reversion-trust correlation (the rolling correlation of prior deviation-from-mean with the NEXT return â strongly negative means price is actively reverting) and a Lo-MacKinlay variance ratio (VR(q) < 1 = mean-reverting, â 1 = random walk, > 1 = trending). An optional Dickey-Fuller unit-root test adds a formal stationarity requirement. The gate scales conviction and, below a floor, blocks the fire outright â so the engine does not fade a trend, the single largest source of false tops and bottoms.
Turbulence gate (the falling-knife defense) â large moves are treated as a point process and their Fano factor (variance/mean of the shock count) gives a self-exciting Hawkes branching ratio on a 0â1 scale. When that ratio is high AND still rising, the move is self-feeding â so conviction is scaled down and, below a floor, the fire is blocked. It stops the engine from fading an accelerating cascade, and it releases as the cascade rolls over. The two gates multiply into one combined guard shown on the dashboard.
Lifecycle & fusion â the engine ARMs only when at least N of the five agree on a direction, each above its own threshold, within an expiry window; climax promotes it to EXTREME, a structure break to CONFIRMED (the default actionable tier). Conviction fuses the supporting signals correlation-aware: the instability and changepoint pair is down-weighted by their measured rolling correlation (a Kish-style redundancy discount) so two views of the same thing don't double-count, then scaled by the mean-reversion gate.
Location (absorption shelf) â the five signals answer "is a turn forming?" but not "where?". A built-in occupation-time (dwell) profile answers that internally, with nothing to wire: a fixed-tick price grid accumulates how long price has dwelt at each level (a reversible ring buffer that adds the entering bar and subtracts the bar leaving the window), and the nearest bin whose dwell is a high fraction of the busiest bin â below and above price â is the support / resistance shelf. A reversal that fires AT a shelf on the correct side earns a bounded conviction boost. It is self-contained (no request.security). Optionally, set Location to "External link" instead and wire the four source inputs to a published Absorption Shelf's EXP_ outputs to use that fuller engine.
Calibration â every actionable fire is resolved a fixed horizon later against a ± target (à ATR): did price reach the target in the signalled direction? Raw conviction is mapped to a probability by a beta warm-start that hands over to a non-parametric ISOTONIC (Pool-Adjacent-Violators) fit of predictedârealized once enough outcomes resolve, and is shrunk toward 50% until the sample is sufficient â so a shown 70% actually resolves ~70% on this symbol. Bottom and top hit-rates are tracked separately, each with a Wilson lower bound, versus a direction-matched unconditional base rate. The "proven" badge is deliberately strict: it uses an out-of-sample slice, weights overlapping fires by their uniqueness (effective-N, not raw n), and raises the Wilson z (Bonferroni-style) for the several signals and two sides being tested; a Net-R after cost is shown so the edge reflects something tradeable, not gross.
â HOW TO USE
Read the dashboard top-down: the STATE (WATCH / ARMED / EXTREME / CONFIRMED) and the direction, then the calibrated conviction (a â means the edge is proven out-of-sample), then the combined gate, then the stop. The gate row (regime·turbulence) is the defense layer: "reverting" means fades are in-context, "trend/random" or "cascade!" means the engine is holding back. Pro adds a Flow · turbulence row (signed BVC order-flow delta and the branching ratio) and a Location row (shelf status). Choose your actionable tier (Armed / Extreme / Confirmed) in the inputs â the default is Confirmed, which fires only after the structure break for the fewest, highest-precision signals; Extreme and Armed are earlier and noisier. A diamond marks a confirmed fire (it brightens with conviction and dims while the sample is still learning); a small triangle marks the earlier EXTREME stage. On a confirmed fire the tool draws the Entry, Stop and two targets (TP1/TP2 at R-multiples of the stop) as labelled lines, and a tag at the arrow showing direction and calibrated conviction. A faint grey wash means the engine is standing aside (a trend/random regime or an active cascade) â that is the gates working, not a fault. A small on-chart legend explains the marks; all of these visuals are toggle-able in the Chart-visuals inputs. The calibration is the honest layer: until the sample clears the minimum it reads "learning", and it shows each side's Wilson-bounded hit-rate against its base rate rather than a bare number â a low or below-base read is information, not a malfunction. The structure signal confirms a swing-length number of bars AFTER the pivot by design, so treat it as confirmation, not a pivot-bar entry. Switch Dashboard detail to Pro for the raw conviction, the per-side hit-rate table, the out-of-sample edge with Net-R and effective-N, and the per-engine peak-strength diagnostic. Needs volume â run it on a volume-bearing symbol (index futures work well). Horizon and sizing are yours; it places no orders.
â INPUTS
1 · Instability â returns window for the Wasserstein distributional-shift, drift lookback.
2 · Changepoint â observation window, z winsorise, hazard, Student-t d.o.f., prior pseudo-count, P(change) fire threshold, emerging-drift lookback.
3 · Exhaustion â ER fast / slow, trend floor, displacement lookback, stretch percentile, absorption + panic boost.
4 · Climax â volume/range baseline, volume-z and range-z thresholds, time-of-day normalization + rate, close-rejection threshold, CVD window, secondary-test window and retest-volume fraction, BVC order-flow delta toggle, conformal "extreme" rarity (α and adaptation rate).
5 · Structure â swing length, break displacement (à ATR), sweepâbreak window.
6 · Fusion & lifecycle â per-stage thresholds, minimum agreeing signals to ARM, expiry window, actionable tier (default Confirmed), the P1âP2 redundancy factor and data-driven decorrelation window.
7 · Calibration â resolve horizon, target move (à ATR), minimum sample, beta rate, isotonic recalibration, warm-up shrink samples, in-sample fraction, proven-z (deflated), round-trip cost.
9 · Mean-reversion gate â require a mean-reverting regime, reversion-trust window, variance-ratio window and q, block-fire floor, optional Dickey-Fuller stationarity with its window and critical t.
10 · Turbulence gate â veto fades during a volatility cascade, shock threshold (à Ï), shock sub-window, Fano window, cascade level to start vetoing, veto strength, block-fire floor.
11 · Location (absorption shelf) â enable; shelf source (Internal built-in dwell profile, default / External link); internal dwell lookback, bin size (à ATR) and hot-shelf fraction; the four external sources (used only in External mode); near-shelf tolerance (à ATR), absorbing-strength threshold, conviction multiplier at a confirmed shelf.
12 · Chart visuals â trade-level overlay (TP1/TP2 R-multiples, level length), signal label, conviction-graded markers, stand-aside tint, on-chart legend and position, draw linked shelf.
13 · Style â theme (Dark / Light), Bottom / Top colours, background tint, markers, dashboard show and detail (Compact default / Pro).
â HONESTY & LIMITATIONS
This is a study, not a strategy. The conviction and hit-rates are descriptive statistics on visible history with no execution costs â not a backtest and not a probability your next trade works; the out-of-sample slice and Net-R make the "proven" badge stricter but it remains an in-sample-history read. Volume-derived signals (climax, CVD, absorption) need real volume and abstain or weaken on symbols without it. Non-repaint by construction: all five signals resolve on confirmed values, the structure signal uses swing pivots that confirm several bars late (a deliberate lag, not a repaint), the mean-reversion gate, the turbulence gate, the conformal quantile, the state machine and the calibration read only committed bars, and the isotonic map / out-of-sample statistics are built once per bar for display and never feed the fire â set alerts to "Once Per Bar Close". The optional Dickey-Fuller gate runs a windowed regression loop; leave it off (default) if you want the lightest compute. When the sample is small the calibration shrinks toward 50% and reads "learning", and a hit-rate below its base rate is shown honestly rather than hidden. No edge shown = honest, not broken.
â ORIGINALITY
One coherent reversal object, not five indicators stacked. The original contribution is the staged lifecycle in which five DIFFERENT statistical lenses (Wasserstein distributional-shift, Bayesian changepoint, efficiency exhaustion, a conformal-rare volume/BVC climax, and liquidity-sweep structure) must agree in sequence, all filtered by two orthogonal gates â a mean-reversion regime gate so the engine refuses to fade a trend, and a Hawkes self-excitation gate so it refuses to fade an accelerating cascade â fused with an explicit redundancy discount so correlated views don't double-count, and â the part most reversal tools omit â a conviction that is isotonically calibrated to the chart's own resolved outcomes and gated by an out-of-sample, uniqueness-weighted, multiple-testing-deflated Wilson lower bound against a matched base rate. Each detector exists only to feed that single verdict and its stop; none is presented as a standalone signal. It carries a compact built-in occupation-time shelf for price-location confirmation (or can consume an external Absorption-Shelf's exports), keeping it one self-contained tool. Every block was written from scratch.
â CREDITS
Bayesian Online Changepoint Detection â Adams & MacKay (2007); Student-t predictive. CUSUM â Page (1954). Wasserstein-1 / optimal transport (earth-mover distance) â Kantorovich. Variance ratio â Lo & MacKinlay (1988). Unit-root test â Dickey & Fuller (1979); Ornstein-Uhlenbeck. Efficiency ratio â Kaufman. Bulk-Volume Classification / VPIN order-flow â Easley, López de Prado & O'Hara. Self-exciting branching processes (Fano factor) â Hawkes (1971). Conformal / adaptive online quantiles â Vovk; Angelopoulos, CandÚs & Tibshirani. Cumulative Volume Delta / effort-vs-result absorption â order-flow literature. Liquidity sweep & displacement â order-flow / market-structure practice. Beta / logistic calibration â Platt (1999); Kull, Silva Filho & Flach. Isotonic regression / Pool-Adjacent-Violators â Ayer et al. (1955). Uniqueness weighting & two-barrier forward test â López de Prado. Design-effect / effective sample â Kish (1965). Wilson score interval â Wilson (1927). Code written from scratch; no external script reused.
This script is for analysis and education. It is not financial advice.
Indicador

Directional Bias, Flip & Continuationâ OVERVIEW
Directional Bias, Flip & Continuation is a single decision instrument that answers one question at a time â "which side, and is this a FLIP (reversal) or a CONTINUATION?" â and draws the exact levels that define the read: Trigger, stop, and two targets. Its loudest and most frequent output is STAND ASIDE: by design it spends most of its time telling you there is no clean read, rather than manufacturing one. It issues no buy/sell order and makes no promise; the confidence it shows is an in-script, past-only forward self-test with a Wilson lower bound on THIS chart, not a trained probability.
â HOW IT WORKS
The tool resolves ONE of four states each confirmed bar, in strict priority order, so the states never contradict each other:
STAND ASIDE (checked first, fires most) â a chaos / extreme-volatility regime, a toxic-tape reading, or price sitting mid-range with no level nearby. This is the default; it is information, not a failure.
FLIP â a confirmed swing trend-flip that occurs AT a graded major level, with order flow not strongly opposed. The side is the flip direction.
CONTINUATION â a trending regime PLUS a confirmed structural break carrying strength PLUS higher-timeframe agreement PLUS price not already stretched into a level. The side is the trend.
CONFLICT â the engines disagree; shown transparently, with no side taken.
Each stage names the method it uses, and every calibrated block shares one scale rather than being independent indicators bolted together:
Regime brain â efficiency ratio (fast vs slow) + ADX with separate trend and strong-trend floors + a self-excitation / volatility-cluster gauge + a variance-ratio random-walk test + an Ornstein-Uhlenbeck mean-reversion read. A trend must clear BOTH persistence (ER) and strength (ADX) floors, so ordinary chop never reads as a strong trend.
Flip engine â a swing-structure trend flip scored by a composite (structure, momentum, location) with a kill state that vetoes flips in the wrong regime.
Continuation engine â a convex-hull channel break, validated for strength and for higher-timeframe alignment, with a stretch guard so a break into an opposing level is not chased.
Levels & targets â a multi-anchor VWAP / anchored-volume-profile ladder that snaps the Trigger, stop and two targets to real liquidity rather than fixed multiples.
Barriers & confidence â a volatility-scaled, regime-asymmetric profit-target / stop geometry, and a forward reject-vs-continue self-test (two-barrier race) that reports each mode's hit rate with a Wilson 95% lower bound and against a matched base rate; it stays "uncalibrated / warming" until the sample is large enough.
Flow proxy â a lower-timeframe signed-volume CVD estimate (Bulk-Volume-Classification fallback) used only to veto a side that fights strong opposing flow; it abstains on no-volume symbols.
â HOW TO USE
Read the panel top-down: the state (STAND ASIDE / FLIP / CONTINUATION / CONFLICT) and side, then the confidence line, then the four levels. When a FLIP or CONTINUATION is live, the Trigger / SL / TP1 / TP2 are the levels that define it; when the state is STAND ASIDE they read "â" on purpose. The confidence line shows that mode's own forward-tested floor with its sample size, and says "uncalibrated" until there is enough history â treat a warming or low-confidence read as a reason to wait. The dashboard defaults to Compact (state, side, confidence and the four levels only); switch Dashboard detail to Pro to add the regime, engine-agreement, flow-toxicity and free-text detail rows, and enable the backtest strip to see each mode's forward win% and average R. STAND ASIDE dominating the tape is the tool working, not failing. Horizon and position sizing are yours; it places no orders.
â INPUTS
00 · Data & Source â price source, borrow-volume symbol for volume-less instruments.
01 · Regime brain â ER fast/slow horizons, ADX length and trend / strong-trend floors, ER floors, volatility-cluster length.
02â05 · Flip / Continuation / Structure â swing length, break validation, HTF timeframe and agreement, stretch guard.
06 · Levels & targets â VWAP / AVP anchors, ladder, snap tolerance, barrier multiples.
07 · Confidence & calibration â reject/continue barrier size, horizon, minimum sample, edge-gate window.
08 · Flow proxy â LTF granularity, classifier, toxicity gate.
09 · Display â dashboard detail (Compact default / Pro), backtest strip, regime breakdown, markers, panel position.
10 · Style â Dark / Light theme.
â HONESTY & LIMITATIONS
This is a study, not a strategy. The confidence figure is an in-sample, descriptive, forward self-test on visible history with fixed barriers and no costs or slippage â it is not a backtest and not a probability of your next trade working. Order-flow side is an OHLCV estimate and abstains on symbols without volume. Non-repaint by construction: all higher- and lower-timeframe reads use lookahead-off; pivots confirm several bars late; the verdict, its levels, and the outcome tracking all resolve on confirmed bars only, and prior-period levels use the standard non-repainting prior-bar idiom. When the sample is small the confidence is shown as uncalibrated and the read is discounted; when there is no clean setup the tool says STAND ASIDE rather than inventing one. No edge shown is honest, not broken.
â ORIGINALITY
One coherent decision object, not a signal stack. The original contribution is the strict-priority four-state resolution â STAND ASIDE is evaluated first and dominates, so FLIP and CONTINUATION can only fire when the regime, structure, location and flow all agree â paired with a per-mode confidence that is measured on the chart by a Wilson-bounded forward self-test rather than asserted. Each block (regime, flip, continuation, levels, barriers, flow) exists only to feed that single verdict and its levels; none is presented as a standalone indicator. That combination â a location-aware, regime-gated flip-vs-continuation decision that grades and honestly discounts its own confidence, and whose default answer is "stand aside" â is what distinguishes it from a trend filter, a breakout signal, or a bundle of oscillators.
â CREDITS
Efficiency ratio â Kaufman. ADX / DMI â Wilder. Variance-ratio random-walk test â Lo & MacKinlay. Mean reversion â Ornstein & Uhlenbeck. Self-exciting clustering â Hawkes. Volume-weighted average price / value-area concepts â Market Profile lineage. Bulk Volume Classification â Easley, López de Prado & O'Hara. Trade-side tick rule â Lee & Ready (1991). Two-barrier forward test â López de Prado. Wilson score interval â Wilson (1927). Code written from scratch; no external script reused.
This script is for analysis and education. It is not financial advice. Indicador

Absorption Shelf Dwell-Coil Reversal Levelsâ OVERVIEW
Absorption Shelf finds reversal LEVELS the opposite way round from a pivot or a profile POC: it starts from TIME. A price band becomes a "shelf" because price DWELT there â an anomalous amount of occupation time â while its range COILED (volatility compressed). Only then do orthogonal order-flow lenses CONFIRM whether that shelf is genuinely ABSORBING flow rather than merely balancing, and a confirmed close back out of the band is treated as the reversal. It asserts no signal and no win-rate; it shows, honestly and past-only, how often price has actually rejected off these shelves versus a matched base rate.
â HOW IT WORKS
Substrate â one lower-timeframe stream (request.security_lower_tf) supplies a per-bar buy/sell split (BVC-Normal / Tick / Geometry) for delta and signed order flow; it falls back to the chart bar when no intrabar data exists. The method in force is shown (REAL / EST).
Dwell field (the level generator) â a rolling, fixed-tick OCCUPATION-TIME map: each confirmed bar adds time to every price level its range covers, and the bar leaving the window subtracts it exactly (a reversible ring buffer). Levels at or above a self-set percentile κ are "hot"; adjacent hot levels merge into candidate BANDS.
Coil + containment (the stall trigger) â a band is promoted to an ACTIVE shelf only when compression (1 â ATRfast/ATRslow) clears a threshold AND enough recent closes sat inside the band. Dwell + coil together are what make a quiet band a shelf â this is the part a pivot- or profile-based level does not have.
Confirmation lenses (on the band only) â Effort-vs-Result â-law residual (E: heavy volume, little price result = absorption), localized Kyle-λ collapse (K: price barely moves per unit signed flow), Dwell-decay (D: the band has stopped accreting time = primed to release), Rejection-wick clustering (W: Wilson-floored), and CVD divergence (V). Each abstains cleanly on missing data.
Fusion â the active lenses combine by correlation-aware Bayesian log-odds: each is reliability-shrunk by its own past edge and Kish-decorrelated so the absorption family (E, K, D) contributes about one lens' worth, not three, then squashed to P_abs â BALANCE / ABSORBING / PRIMED. Shelves are down-weighted in strong trend (a built-in efficiency-ratio regime gauge, or a consumed external one).
Flip + lifecycle â a confirmed close out of the band against the approach is the reversal (a â² bullish or ⌠bearish flip, coloured by direction). Shelves carry a lifecycle: forming â active â flipped â spent â naked (kept until retested).
Reject calibration (honesty layer) â when price first touches an active shelf, the script forward-tests whether it REJECTS (turns back by k·ATR) BEFORE it CONTINUES through by k·ATR, versus the matched unconditional reject-vs-continue base rate: reject% (n, Wilson 95% lower bound) vs base% â edge, broken out by tag (does PRIMED out-reject ABSORBING out-reject BALANCE?), split in-sample / out-of-sample, and Bonferroni-deflated. Past-only, non-repaint.
â HOW TO USE
Read the shelves as context, not as entries. A teal band below price is a support shelf (price is being held from below); a red band above is a resistance shelf. Brightness tracks how strongly the band was dwelt. The tag tells you what the flow says about it â BALANCE is just a quiet level, ABSORBING and PRIMED mean the lenses agree a wall is soaking flow there. A â²/⌠flip marks where price actually closed back out of a shelf against its approach. The calibration line is the honest part: it tells you, on this symbol and timeframe, how often tagging a shelf has preceded a real rejection versus random â and shows nothing when the sample is small. A flat read with no active shelf is a genuine "no location here", not a broken one. The dashboard defaults to Compact (shelf, tag, dwell %, flip); switch it to Pro for the lens-by-lens glyphs and the calibration breakout. Horizon and holding are yours to decide; it emits no orders.
â INPUTS
01 · Data & Trade-Side â LTF granularity, classifier, BVC sharpness.
02 · Dwell Field â ticks-per-level, dwell window, hot-level percentile κ, band merge gap, min band width.
03 · Coil & Stall â fast/slow ATR, minimum coil to promote, containment lookback / fraction / buffer.
04 · Confirmation Lenses â enable E / K / D / W / V and their sensitivities.
05 · Fusion â Kish decorrelation, self-set tag percentiles (absorbing / primed).
06 · Flip & Lifecycle â flip distance (ÃATR), ghost retention, max shelves tracked.
07 · Regime & Self-Cal â trend down-weight (built-in efficiency ratio, or consume an external regime).
08 · Calibration â reject size (ÃATR), horizon, Bonferroni, in/out-of-sample split.
09 · Microstructure Links (optional) â consume external Toxicity or Kyle λ; never recomputed.
10 · Display â bands, how far back to draw, badge, lens glyphs, flip markers, naked shelves, dwell heat spine, dashboard detail (Compact default / Pro).
11 · Style â Auto / Dark / Light theme.
12 · Exports â shelf levels, tag, P_abs, dwell percentile, coil, flip direction, naked levels, reject edge, active lenses.
â HONESTY & LIMITATIONS
Descriptive, not predictive. Order-flow side is an OHLCV ESTIMATE (BVC / tick / geometry), not a Level-2 book; on symbols with no volume the flow lenses (E, K, V) abstain and the shelf runs on dwell + coil + wick alone, stated in the dashboard. Coil is measured chart-wide (ATR ratio) while containment is per band. The reject calibration is a past-only, first-touch two-barrier (reject-vs-continue) forward test against a matched base rate with a Wilson lower bound, tag buckets, an in/out-of-sample split and a Bonferroni deflation; a small sample is discounted automatically and no edge shown means honest, not broken. Non-repaint by construction: dwell and coil accrue on confirmed bars, shelves promote from confirmed history, the flip fires on a confirmed close, calibration events resolve only after the horizon, and the render recomputes once per confirmed bar. For runtime the script processes the most recent ~5000 bars and gates the calibration engine behind its own toggle. It prints no verdict and no win-rate.
â ORIGINALITY
One coherent object: a reversal level whose EXISTENCE comes from occupation time plus volatility compression, with order flow demoted to confirmation on that band. This is deliberately distinct from a volume/footprint profile (those build the level from volume-at-price and fire sweeps event-by-event), from pivot- or kernel-based support/resistance (those build the level from swing geometry), and from a potential-well or mean-reversion model (those are price-dynamics with no time-at-price). The dwell-time + coil "absorption shelf" as the level generator, the dwell-decay lens that only this occupation field makes possible, and the correlation-aware fusion that explicitly discounts absorption-lens redundancy are the specific original contributions. Every block was written from scratch for this tool; the lenses feed one decision (is this band absorbing?) rather than being independent indicators stapled together.
â CREDITS
Occupation-time / TPO at price â Steidlmayer / Market Profile. Price-impact λ (delta-response) â Kyle (1985). Square-root market-impact law â Almgren; Tóth, Bouchaud et al. Bulk Volume Classification â Easley, López de Prado & O'Hara. Trade-side tick rule â Lee & Ready (1991). Two-barrier / triple-barrier forward test â López de Prado. Wilson score interval â Wilson (1927). Design-effect / effective sample â Kish (1965). Code written from scratch; no external script reused.
This script is for analysis and education. It is not financial advice. Indicador

RSI Bottom/Top Retest Scalper [josseliani]RSI Bottom/Top Retest Scalper is a short-term reversal tool built around a simple idea: the first RSI extreme is not always the best moment to act.
Instead, the indicator waits for RSI to leave the extreme area, cool down, form a second structured signal, and then waits for confirmation from price.
The logic is separated into two parts:
â RSI setup
â Price entry confirmation
How it works
For a bearish setup:
â RSI first reaches the upper extreme area.
â RSI cools down below the selected cooling level.
â A second local RSI peak forms below the first peak.
â The second RSI signal is confirmed when RSI starts turning down.
â Price is then checked against the selected confirmation line.
â A candle must place the required percentage of its body beyond that line.
â That candle confirms and arms the setup.
â The trade calculation starts from the OPEN of the next candle .
The bullish logic is the opposite: RSI forms an extreme bottom, rebounds, returns with a higher second bottom, and price must then confirm above the selected line.
RSI signals
The RSI setup is shown in two stages.
â The circle marks the first RSI extreme.
â The triangle marks the confirmed second RSI signal after the cooling and retest process.
These two markers belong to the RSI setup itself . They are not price-entry signals.
Price entry confirmation
After the second RSI signal, the script searches for price confirmation using the selected confirmation line.
A candle must place the required percentage of its body beyond that line.
This candle confirms and arms the setup , but it is not used as the entry candle.
The hollow entry arrow and trade calculation appear on the next candle , using that candle's open as the reference entry price.
So the sequence is:
â 1 â Circle: first RSI extreme
â 2 â Triangle: second RSI retest signal
â 3 â Price confirmation and entry
Trade markup
When Trade Markup is enabled, the script automatically displays:
â Stop Loss
â 1R
â 2R
The stop is normally derived from the price structure formed between the RSI retest signal and the price-confirmation event.
If a suitable structural stop cannot be established, or if the calculated risk is too small to be practical, the script can use an ATR-based fallback stop.
The 1R and 2R levels are calculated from the confirmed entry price and the resulting risk distance.
These levels are visual planning references. They are not predictions that price will necessarily reach a target.
Confirmation line
The confirmation line can be selected from:
â EMA
â SMA
â WMA
â RMA / SMMA
â VWMA
â HMA
â DEMA
â TEMA
â ZLEMA
â KAMA
â Kalman
â ALMA
â Kijun
The default confirmation line is Kijun 34 .
The user can also select how much of the candle body must be beyond the confirmation line before the setup is considered confirmed.
How I use it
The default settings are tuned for 5-minute gold scalping .
I use Kijun 34 as the default confirmation line because I personally like this line a lot. I use it for both 5-minute and 15-minute scalping.
If you move to a lower timeframe, expect more signals, but also more noise. In that case, pay closer attention to entries and Stop Loss placement and consider using a shorter, faster confirmation line.
The script includes a wide selection of moving averages for scalpers, including some less conventional alternatives.
Besides Kijun, I also like ALMA for scalping. On the 1-minute chart I often use a shorter ALMA because it reacts faster, but this naturally creates a more aggressive trading style.
As a general approach:
â Lower timeframe â shorter / faster confirmation line â more signals and more noise.
â Higher timeframe â longer / slower confirmation line â fewer and more selective signals.
You can replace Kijun with EMA, ALMA or another available line and adjust its length for the market and timeframe you trade.
Main settings
â RSI Length and Source
â Upper and Lower Extreme Levels
â Cooling Levels
â Second Peak / Bottom Re-Entry Levels
â Minimum Lower High / Higher Low Gap
â Peak / Bottom Strength
â Maximum Setup Search Window
â Optional Midline Invalidation
â Confirmation Line Type and Length
â Required Body Beyond Line %
â Entry Search Window
â Signal Display
â Trade Markup
â RSI / Chart Highlighting
Important
Local RSI peaks and bottoms require confirmed bars on their right side before they can be identified.
For this reason, a second peak or bottom is marked only after its required confirmation is available.
The indicator separates the oscillator setup from price confirmation so that an RSI retest alone is not automatically treated as a trade entry.
The trade levels shown on the chart are generated from the detected setup and are intended for analysis and trade planning. They do not guarantee future performance.
Why the second signal?
The general idea of paying attention to a second oscillator signal has also been discussed in professional technical-analysis research.
Mohamed Ashraf, MFTA, CFTe, CETA presented The Stochastic Oscillator Second Signal through the International Federation of Technical Analysts (IFTA), examining the second oscillator signal as a distinct technical setup across different timeframes and market conditions.
This script does not reproduce that methodology. The referenced work uses the Slow Stochastic Oscillator, while this indicator applies its own RSI-based logic using extreme levels, cooling, second-peak / second-bottom structure and subsequent price confirmation.
Reference
IFTA Journal 2026 â The Stochastic Oscillator Second Signal
www.ifta.org Indicador

Double Tap Double Top/Bottom [Viprasol]Double Tap â Double Top / Double Bottom
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
WHAT IT DOES
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Double Tap finds the two most reliable reversal patterns in classic technical analysis â
the Double Top (M) and Double Bottom (W) â draws them as they FORM, and on a confirmed
neckline break projects a complete trade map: Entry, Stop, and measured-move Target, then
tracks the outcome to â or â. It keeps a history of recent patterns on the chart, not
just the latest one, so you can see how the tool reads structure over time.
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
HOW THE PATTERN IS DETECTED
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
1. Two confirmed swing highs (Double Top) or lows (Double Bottom) are found via a pivot
length you control.
2. The two extremes must match within a tolerance â a percentage of the pattern's height â
so the "double" is genuinely level, not a random pair of swings.
3. A valley (top) or peak (bottom) between them becomes the NECKLINE.
4. The pattern must span between your min and max width (bars) to filter noise.
5. While these conditions hold, the pattern is shown FORMING (a dotted preview). If price
breaks back past the twin extreme first, the setup is invalidated and the preview clears.
6. TRIGGER: a confirmed bar close through the neckline solidifies the pattern and prints
the trade levels.
Non-repainting: swings are confirmed pivots and the trigger evaluates on closed bars.
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
THE TRADE MAP (drawn on every confirmed pattern)
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
⢠ENTRY â the neckline-break close.
⢠STOP â beyond the higher top / lower bottom, padded by an ATR buffer.
⢠TARGET â the measured move: pattern height projected from the neckline (adjustable %).
On the chart: two peak markers with prices, a shaded pattern box, a dashed neckline, an
Entry line, and green/red TP/SL zones â all extending forward until price resolves them.
The pattern label then flips to â (target hit) or â (stop hit).
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
FEATURES
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
⢠Live "forming" preview so you see a pattern building before it triggers.
⢠Tracks multiple patterns across history (configurable how many to keep).
⢠Detect tops, bottoms, or both; full control of tolerance, pivot length, min/max width.
⢠Measured-move target (% of height) + ATR stop buffer.
⢠Dashboard: current status, active Entry / Target / Stop with % distance, and a running
hit rate (how often target was reached before stop, on the patterns shown).
⢠Alerts on Double Top / Double Bottom confirmation, plus a webhook-ready alert() message
(Text or JSON) carrying entry / stop / target.
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
HOW TO USE
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
1. Set Swing Length to the pattern size you want (larger = bigger, cleaner patterns).
2. Watch the dotted "forming" preview; act only on the confirmed neckline break.
3. Use the drawn Entry / Stop / Target as your plan; scale or exit at the target.
4. Tune Tolerance (how level the two extremes must be) to your market's character.
5. Set an alert on "Any alert() function call" for automation, or use the built-in
Double Top / Double Bottom conditions.
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
HONEST LIMITATIONS
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
⢠Pattern recognition is inherently subjective; this uses one consistent rule-based
definition â it won't catch every double a human would draw, and vice versa.
⢠The dashboard's hit rate is a simple tally of the patterns currently shown (target-before-
stop), not a full backtest â use it as a feel, not a performance guarantee.
⢠Swings confirm after the fact (pivot lookback), so patterns appear with a natural lag.
⢠This is a decision-support tool, not financial advice. Manage your own risk.
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
CREDITS & ORIGINALITY
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
The double top / double bottom is public, classic technical analysis; ATR is J. Welles
Wilder's public concept. Every line of Pine here â the pivot-pairing detection, the
tolerance/neckline/measured-move logic, the forming preview, the multi-pattern tracker,
and all visualization â is original Viprasol work written from scratch. No third-party
Pine code is reused.
Indicador

Fibonacci Trend Continuation Signals [AlgoAlpha]ð OVERVIEW
Fibonacci Trend Continuation Signals maps Fibonacci retracement levels inside an adaptive trend structure. It combines a smoothed price midline, volatility-based outer bands, and Fibonacci ratios to show where price is trading within the current bullish or bearish trend range.
The trend changes only when price moves beyond a volatility-adjusted outer band. Once a direction is active, the script projects 0.236, 0.382, 0.500, 0.618, and 0.786 levels between the active outer band and the midline. This creates a moving Fibonacci framework that adjusts as price and volatility change.
Continuation signals appear when price closes back through an enabled Fibonacci level in the direction of the active trend. This lets traders use retracements within an established trend instead of treating each Fibonacci level as a fixed reversal point.
ð CONCEPTS
Trend Midline â An exponential moving average of closing price. It forms the central reference for the trend structure and the endpoint of the Fibonacci range.
Volatility Bands â Outer boundaries placed above and below the midline using a smoothed measure of the high-to-low price range. Price crossing an outer band changes the active trend direction.
Fibonacci Trend Range â The distance between the active outer band and the midline. In bullish trends, levels are measured upward from the lower band. In bearish trends, they are measured downward from the upper band.
Fibonacci Levels â The 0.236, 0.382, 0.500, 0.618, and 0.786 ratios divide the active trend range into retracement zones that move with the underlying trend structure.
Continuation Signal â A bullish signal occurs when price closes upward through an enabled Fibonacci level during a bullish trend. A bearish signal occurs when price closes downward through an enabled Fibonacci level during a bearish trend.
ð FEATURES
Adaptive Fibonacci Profile â Displays five configurable Fibonacci levels between the active volatility band and trend midline.
Trend Continuation Signals â Shows bullish and bearish markers when price closes through an enabled Fibonacci level in the direction of the active trend.
Current Level Labels â Shows the current price value of each enabled Fibonacci level at the latest bar.
Trend Change Markers â Marks the Fibonacci structure when a new bullish or bearish trend begins.
ð HOW TO USE
Identify the active trend structure â A bullish structure projects Fibonacci levels from the lower band toward the midline, while a bearish structure projects them from the upper band toward the midline.
Watch price during a retracement â Use the displayed Fibonacci zones to see how far price has moved through the active trend range.
Look for continuation signals â An upward triangle shows that price crossed above an enabled Fibonacci level during a bullish trend. A downward triangle shows the equivalent bearish close below a level.
Compare signals with price structure â Use nearby swing points, support, resistance, or your existing confirmation method before acting on a continuation signal.
Adjust Midline Length, Pivot Length, and Band Width to control how quickly the trend framework responds to price and how wide its outer boundaries are.
Enable or disable individual Fibonacci levels to keep only the retracement levels relevant to your method.
ð CONCLUSION
Fibonacci Trend Continuation Signals combines volatility-based trend detection with adaptive Fibonacci retracement levels and directional continuation signals. It gives traders a moving reference for measuring pullbacks and identifying closes that resume movement in the active trend direction. Indicador

TF: BB/KC and Potential Reversals (BBKC)TradingFlow: BB/KC and Potential Reversals (BBKC)
BBKC combines Bollinger Bands (BB) and a Keltner Channel (KC) in one clean overlay, then uses band re-entry and momentum conditions to highlight potential bullish and bearish reversals. Its purpose is to make volatility structure, trend behaviour, compression, expansion, and possible turning points easier to read without covering the chart with separate indicators.
The diamond markers are hints that price may be reacting after an extended move or that momentum may be fading. They are not automatic trade instructions, and they do not mean a reversal is confirmed.
A Unified BB / KC View
Bollinger Bands and Keltner Channels describe volatility in different ways:
⢠Bollinger Bands: use standard deviation, so their width changes as price movement expands or contracts.
⢠Keltner Channel: uses ATR around an EMA to create a smoother channel for reading trends and pullbacks.
BBKC plots both structures with one visual theme rather than stacking two unrelated indicators. The more visible aqua boundaries are the KC, while the lighter boundaries are the BB. Subtle shading makes it easier to see how the two envelopes contract and expand around price, and the full KC area can also be lightly shaded if preferred.
This merged presentation is useful even without the reversal markers. The slope and direction of the channels, the side of the channel where price is holding, and the way price reacts at the boundaries can all provide trend context.
Why the Default KC Multiplier Is 1.6
By default, the KC uses a 20-period EMA and an ATR multiplier of 1.6. Many modern Keltner Channel implementations use a 2.0 ATR setting. BBKC uses 1.6 to keep the boundaries somewhat closer to price, making routine pullbacks, boundary tests, and re-entry behaviour easier to see. This is a visual design choice, not a claim that 1.6 is inherently more accurate.
The multiplier is adjustable. Different instruments and trading styles may benefit from a wider or narrower channel, so 1.6 should be understood as a useful default rather than a universal optimum.
How to Read the Potential Reversal Markers
⢠Green diamond: a bullish potential reversal. Price has reacted from a lower volatility boundary and passed the enabled filters.
⢠Red diamond: a bearish potential reversal. Price has reacted from an upper volatility boundary and passed the enabled filters.
By default, the script looks for the close to cross back inside a lower or upper KC or BB boundary. An optional rejection rule also checks whether the current or preceding candle touched or pierced a Bollinger Band before the current candle closed back inside.
The optional filters are designed to reduce ordinary boundary crossings:
⢠Volatility context: one of the two preceding closes must have been outside the corresponding boundary of a separate ATR-based Volatility Channel.
⢠RSI momentum: RSI must be below the bullish threshold or above the bearish threshold. Both levels are adjustable.
⢠Stoch RSI extreme: within a recent validity window, at least one completed bar must have both smoothed K and D in the 90/10 extreme zone. The window is adjustable and defaults to the two bars before the potential reversal; the current re-entry bar is excluded.
Potential reversal conditions are confirmed at bar close. The separate Volatility Channel can remain hidden while its values are still used by the filter; display it when you want to inspect those boundaries on the chart.
What a Marker Can and Cannot Mean
A potential reversal may become a major trend reversal, but it may also be only a small pullback, a pause within the existing trend, or a failed signal followed by continuation. The script detects a filtered move back from a volatility boundary; it cannot know in advance which outcome will follow.
The marker is therefore more useful as a prompt to investigate the chart than as a standalone entry command. A marker appearing against a strong trend should generally require more evidence than one appearing at a well-established structural level after an exhausted move.
Practical Reading Process
1. Read the slope and position of the BB / KC structure to understand the current trend and volatility regime.
2. Note whether the BB is compressing inside the KC or expanding beyond it.
3. When a diamond appears, check whether it is located near meaningful market structure rather than evaluating the marker in isolation.
4. Look for confirmation through price action, trend structure, support and resistance, or a failed breakout.
5. Add independent context such as volume profile, high- and low-volume areas, and the reaction around important support or resistance levels.
6. Define invalidation and risk before considering an entry.
Alerts
Alerts can be created for bullish potential reversals, bearish potential reversals, or either direction. They use the same final confirmed conditions and remain available when chart markers are hidden. For live use, âOnce Per Bar Closeâ is recommended.
Important
BBKC is a chart-reading and opportunity-screening tool. Its markers are filtered potential reversals, not probabilities, guaranteed turning points, or complete trading systems. Settings behave differently across instruments and timeframes. Always combine the output with broader trend analysis, market structure, volume context, support and resistance, and appropriate risk management.
---
TradingFlow: BB/KC and Potential Reversals (BBKC)
BBKC æåžæééïŒBollinger BandsïŒBBïŒèè¯ç¹çŽééïŒKeltner ChannelïŒKCïŒæŽååšåäžåŒµäž»åïŒäžŠæ ¹æå¹æ Œéæ°é²å
¥ééååèœæ¢ä»¶ïŒæšç€ºæœåšçå€é å空é åèœãå®è®æ³¢åãè¶šå¢ãæ¶çž®ãæŽåŒµåå¯èœçèœæäœçœ®æŽå®¹æå€è®ïŒäžçšåŠå€çå å
©åææšã
è±åœ¢æšèšåªæ¯äžåæç€ºïŒå¹æ Œç¶éäžæ®µå»¶äŒžåŸïŒå¯èœéå§åé ïŒæåæåèœæ£åšæžåŒ±ãå®äžæ¯èªå亀ææä»€ïŒä¹äžä»£è¡šåèœå·²ç¶ç¢ºèªã
æŽåç BB / KC 顯瀺
BB è KC 以äžåæ¹åŒæè¿°æ³¢åïŒ
â¢ åžæééïŒ äœ¿çšæšæºå·®ïŒæéšå¹æ Œæ³¢åçæŽå€§åæ¶çªèæ¹è®ã
⢠è¯ç¹çŽééïŒ ä»¥ EMA çºäžå¿ïŒå©çš ATR 建ç«èŒå¹³æ»çééïŒé©åè§å¯è¶šå¢èå調ã
BBKC çšçµ±äžçé
è²åçŸå
©è
ãèŒæž
æ°çæ°Žèè²éçæ¯ KCïŒèŒæ·¡çéçæ¯ BBãæ·¡è²å¡«å
å¯å¹«å©è§å¯å
©çµééåŠäœéšå¹æ Œæ¶çž®åæŽåŒµïŒä¹å¯éžæé¡¯ç€ºæŽå KC ç¯åã
å³äœ¿äžçåèœæšèšïŒéçµééæ¬èº«ä¹èœå¹«å©å€æ·è¶šå¢ãå¯çæééæçã广 Œäž»èŠåçåšåªäžåŽïŒä»¥å广 Œæ¥è¿éçæçåæã
çºäœ KC é èšåæžæ¯ 1.6
KC é èšäœ¿çš 20 鱿 EMA å 1.6 å ATRãçŸä»£ KC ææšåžžèŠç ATR èšå®æ¯ 2.0ïŒBBKC æ¹çš 1.6ïŒè®éççšåŸ®é è¿å¹æ ŒïŒæŽå®¹æçå°äžè¬å調ãéçæž¬è©Šå广 Œéæ°é²å
¥ééçæ
æ³ã鿝çºäºæ¹äŸ¿è®åïŒäžŠäžä»£è¡š 1.6 æ¬èº«æŽæºç¢ºã
åæžå¯ä»¥èªè¡ä¿®æ¹ãäžååžå Žãæé鱿åäº€ææ¹åŒå¯èœé©åäžå寬床ïŒå æ€ 1.6 åªæ¯å¯Šçšçèµ·å§èšå®ïŒäžŠéæææ
æ³äžçæäœ³åŒã
åŠäœé±è®æœåšåèœæšèš
â¢ ç¶ è²è±åœ¢ïŒ å€é æœåšåèœã广 ŒåŸäžæ¹éçååïŒäžŠééå·²åçšçéæ¿Ÿæ¢ä»¶ã
⢠çŽ
è²è±åœ¢ïŒ ç©ºé æœåšåèœã广 ŒåŸäžæ¹éçåèœïŒäžŠééå·²åçšçéæ¿Ÿæ¢ä»¶ã
é èšæå°æŸæ¶ç€å¹éæ°é²å
¥ KC æ BB éççæ
æ³ãä¹å¯å å
¥é¡å€æ¢ä»¶ïŒç®åæåäžæ ¹ K ç·å
è§žåïŒçªç Ž BBïŒç¶åŸç®å K ç·æ¶åééå
§ã
åé
éæ¿ŸåšçšæŒæžå°æ®ééçç©¿è¶é æçéèšïŒ
⢠波åèæ¯ïŒ åå
©æ ¹ K ç·äžïŒè³å°äžæ ¹çæ¶ç€å¹å¿
é æŸäœæŒåŠäžçµ ATR æ³¢åééççžæéçä¹å€ã
⢠RSI åèœïŒ å€é æšèšèŠæ± RSI åäœïŒç©ºé æšèšèŠæ± RSI åé«ïŒé檻å¯èªè¡èª¿æŽã
⢠Stoch RSI 極端åŒïŒ åšè¿ææææå
§ïŒè³å°äžæ ¹å·²å®æ K ç·çå¹³æ» KãD å¿
é åæé²å
¥ 90ïŒ10 極端ååãæææå¯ä»¥èª¿æŽïŒé èšæª¢æ¥æœåšåèœåçå
©æ ¹ K ç·ïŒäžå
æ¬ç®åéæ°é²å
¥ééç K ç·ã
æœåšåèœæ¢ä»¶åªæåš K ç·æ¶ç€åŸç¢ºèªãåŠäžçµ Volatility Channel å³äœ¿é±èïŒå
¶æžåŒä»å¯çšæŒé濟ïŒåŠæ³çŽæ¥æ¥çéäºéçïŒå¯åšèšå®äžé¡¯ç€ºå®ã
æšèšå¯èœä»£è¡šç麌
æœåšåèœå¯èœæçµçŒå±æäž»èŠè¶šå¢åèœïŒä¹å¯èœåªæ¯äžåå°åå調ãåæè¶šå¢äžççæ«åé ïŒçè³æ¯é¯èª€æç€ºïŒä¹åŸå¹æ Œç¹Œçºæ²¿åæ¹åéè¡ãéå¥å€æ·åªèœæŸåºå¹æ ŒåŸæ³¢åéçåé ç跡象ïŒç¡æ³é å
ç¥éä¹åŸæåºçŸåªäžçš®çµæã
æšèšçäœç𿝿éäœ å€çäžçŒïŒèäžæ¯å«äœ ç«å³é²å Žãéè匷åè¶šå¢åºçŸæïŒéåžžéèŠæŽå€ç¢ºèªïŒè¥å®åºçŸåšæç¢ºçæ¯æãé»åæåééç·£ïŒèäžæ€åèµ°å¢å·²ææé¡¯å»¶äŒžïŒææŽåŒåŸçæã
寊çšå€è®æµçš
1. å
é±è® BB / KC çæçå广 Œäœçœ®ïŒå€æ·ç®åè¶šå¢èæ³¢åçæ
ã
2. è§å¯ BB æ£åš KC å
§éšæ¶çž®ïŒéæ¯å KC å€éšæŽåŒµã
3. è±åœ¢åºçŸæïŒå
ç宿¯åŠæ¥è¿æ¯æãé»åæåééç·£ïŒäžèŠåªçæšèšæ¬èº«ã
4. å©çšå¹æ Œè¡çºãè¶šå¢çµæ§ãæ¯æé»åæåçªç Žå°æŸç¢ºèªã
5. é
åæäº€éååžïŒVolume ProfileïŒãé«ïŒäœæäº€éåïŒä»¥åéèŠæ¯æé»åéè¿çåæã
6. èæ
®é²å ŽåïŒå
å®çŸ©å€±æäœçœ®å颚éªã
èŠå ±
åŠé远蹀ïŒå¯åå¥åšå€é æœåšåèœãç©ºé æœåšåèœïŒæå
©è
ä»»äžåºçŸæå»ºç«èŠå ±ãèŠå ±åªæåšæ¶ç€æ¢ä»¶ç¢ºèªåŸè§žçŒïŒé±èå衚äžçè±åœ¢æšèšäžæåœ±é¿èŠå ±ãå³æäœ¿çšæïŒå»ºè°éžæãOnce Per Bar Closeãã
éèŠèªªæ
BBKC æ¯å衚å€è®åæ©æç¯©éžå·¥å
·ãæšèšåªè¡šç€ºç¶éæ¢ä»¶éæ¿ŸçæœåšåèœïŒäžä»£è¡šä»»äœåçïŒä¹äžæ¯å¿
ç¶èœææå®æŽäº€æç³»çµ±ãäžååžå Žåæé鱿ç衚çŸå¯èœäžåãäœ¿çšæä»èŠçµåè¶šå¢ãåžå Žçµæ§ãæäº€éãæ¯æé»åå颚éªç®¡çã
---
TradingFlow: BB/KC and Potential Reversals (BBKC)
BBKCã¯ãããªã³ãžã£ãŒãã³ãïŒBBïŒãšã±ã«ãããŒãã£ãã«ïŒKCïŒã1ã€ã®èŠããããªãŒããŒã¬ã€ã«çµ±åãããã³ããžã®åé²å
¥ãšã¢ã¡ã³ã¿ã æ¡ä»¶ããã匷æ°ã»åŒ±æ°ã®æœåšçãªå転ã衚瀺ããŸããè€æ°ã®ææšãéããŠãã£ãŒããè€éã«ããããšãªãããã©ãã£ãªãã£æ§é ããã¬ã³ããåçž®ãæ¡å€§ã転æåè£ãèªã¿ãããããããšãç®çã§ãã
ã²ã圢ã®ããŒã«ãŒã¯ã䌞ã³ãå€åããåå¿ãå§ããããŸãã¯ã¢ã¡ã³ã¿ã ã匱ãŸãã€ã€ããå¯èœæ§ãç¥ããããã³ãã§ããèªåå£²è²·ã®æç€ºã§ã¯ãªããå転ã確å®ããããšãæå³ããŸããã
BBãšKCãçµ±åãã衚瀺
BBãšKCã¯ç°ãªãæ¹æ³ã§ãã©ãã£ãªãã£ã衚ããŸãã
⢠ããªã³ãžã£ãŒãã³ãïŒ æšæºåå·®ã䜿ããããäŸ¡æ Œã®ã°ãã€ãã®å€åã«åå¿ããŸãã
⢠ã±ã«ãããŒãã£ãã«ïŒ EMAãäžå¿ã«ATRã§å¹
ãäœããããæ»ãããªãã£ãã«ã§ãããã¬ã³ããæŒãæ»ãã®ç¢ºèªã«äœ¿ããŸãã
BBKCã¯äž¡è
ãå
±éã®é
è²ã§æŽçããŠè¡šç€ºããŸããããæçãªã¢ã¯ã¢è²ã®å¢çãKCãèãå¢çãBBã§ããæ§ãããªè²ä»ãã«ããã2ã€ã®ãã£ãã«ãäŸ¡æ Œã®åšå²ã§åçž®ã»æ¡å€§ããæ§åãèŠãããããå¿
èŠã«å¿ããŠKCå
šäœã®ç¯å²ãèã衚瀺ã§ããŸãã
ãã®çµ±å衚瀺ã¯ãå転ããŒã«ãŒã䜿ããªãå Žåã«ãæçšã§ãããã£ãã«ã®åŸããäŸ¡æ Œãç¶æãããŠããåŽãå¢çã§ã®åå¿ããããã¬ã³ãã®èæ¯ãèªã¿åããŸãã
KCã®ããã©ã«ãåçã1.6ã§ããçç±
KCã¯ãããã©ã«ãã§20æéEMAãš1.6åã®ATRã䜿çšããŸããçŸä»£çãªKCã§ã¯2.0åã®ATRããã䜿ãããŸãããBBKCã¯å¢çãäŸ¡æ Œã«å°ãè¿ã¥ããéåžžã®æŒãæ»ããå¢çãã¹ãããã£ãã«ãžã®åé²å
¥ãèŠãããããããã«1.6åãæ¡çšããŠããŸããããã¯èŠãããã®ããã®èšèšã§ããã1.6åã®ã»ããæ¬è³ªçã«æ£ç¢ºãšããæå³ã§ã¯ãããŸããã
åçã¯èª¿æŽå¯èœã§ããéæãæé軞ãååŒã¹ã¿ã€ã«ã«ãã£ãŠé©åãªå¹
ã¯ç°ãªãããã1.6ã¯å®çšçãªåæå€ã§ããããã¹ãŠã®åžå Žã«å
±éããæé©å€ã§ã¯ãããŸããã
æœåšãªããŒãµã«ã»ããŒã«ãŒã®èŠæ¹
⢠ç·ã®ã²ãåœ¢ïŒ åŒ·æ°ã®æœåšãªããŒãµã«ãäŸ¡æ ŒãäžåŽã®ãã©ãã£ãªãã£å¢çããåå¿ããæå¹ãªãã£ã«ã¿ãŒãééããç¶æ
ã§ãã
⢠赀ã®ã²ãåœ¢ïŒ åŒ±æ°ã®æœåšãªããŒãµã«ãäŸ¡æ ŒãäžåŽã®ãã©ãã£ãªãã£å¢çããåå¿ããæå¹ãªãã£ã«ã¿ãŒãééããç¶æ
ã§ãã
ããã©ã«ãã§ã¯ãçµå€ãKCãŸãã¯BBã®å¢çå
ãžæ»ãåããæ€åºããŸããè¿œå æ¡ä»¶ã§ã¯ãçŸåšãŸãã¯çŽåã®è¶³ãBBã«å°éã»çªç Žãããã®åŸã«çŸåšã®çµå€ããã³ãå
ãžæ»ã£ãå Žåãåè£ã«ã§ããŸãã
åãã£ã«ã¿ãŒã¯ãéåžžã®å¢çééã«ãããã€ãºãæããããã«äœ¿çšããŸãã
⢠ãã©ãã£ãªãã£èæ¯ïŒ çŽå2æ¬ã®ãã¡å°ãªããšã1æ¬ã®çµå€ããå¥ã®ATRããŒã¹ã®Volatility Channelã®å¯Ÿå¿ããå¢çããå€åŽã§ããããšãèŠæ±ããŸãã
⢠RSIã¢ã¡ã³ã¿ã ïŒ åŒ·æ°ã§ã¯RSIãäžåŽããã倿ªæºã匱æ°ã§ã¯äžåŽãããå€ãè¶
ããŠããããšãèŠæ±ããŸããã©ã¡ãããããå€ã調æŽã§ããŸãã
⢠Stoch RSIã®æ¥µç«¯å€ïŒ çŽè¿ã®æå¹æéå
ã§ãå°ãªããšã1æ¬ã®ç¢ºå®è¶³ã«ãããŠå¹³æ»åãããKãšDãåæã«90ïŒ10ã®æ¥µç«¯ãŸãŒã³ãžå
¥ã£ãŠããããšãèŠæ±ããŸããæå¹æéã¯èª¿æŽã§ããããã©ã«ãã§ã¯æœåšãªããŒãµã«åã®2æ¬ã確èªããŸããçŸåšã®åé²å
¥è¶³ã¯å«ããŸããã
æœåšãªããŒãµã«ã®æ¡ä»¶ã¯è¶³ã®ç¢ºå®æã«ã®ã¿æç«ããŸããVolatility Channelã¯é衚瀺ã§ããã£ã«ã¿ãŒã«äœ¿ãããå¿
èŠã«å¿ããŠãã£ãŒãäžã«å¢çã衚瀺ã§ããŸãã
ããŒã«ãŒãæå³ããå¯èœæ§
æœåšçãªå転ã¯ã倧ããªãã¬ã³ã転æã«ã€ãªããå Žåãããã°ãå°ããªæŒãæ»ããæ¢åãã¬ã³ãå
ã®äžæåæ¢ããŸãã¯èª€ã£ãã·ã°ãã«ãšãªã£ãŠãã®ãŸãŸãã¬ã³ããç¶ç¶ããå ŽåããããŸããæ€åºããŠããã®ã¯ããã£ã«ã¿ãŒãééãããã©ãã£ãªãã£å¢çããã®æ»ãã§ãããã®åŸã®çµæãäºåã«å€æããããšã¯ã§ããŸããã
ãã®ãããããŒã«ãŒã¯åç¬ã®ãšã³ããªãŒæç€ºã§ã¯ãªãããã£ãŒãã詳ãã確èªããããã®ãã³ããšããŠäœ¿ãã®ãé©åã§ãã匷ããã¬ã³ãã«éããããŒã«ãŒã«ã¯ãæç¢ºãªæ§é æ°Žæºã§äŒžã³åã£ãåŸã«åºãããŒã«ãŒãããå€ãã®ç¢ºèªãå¿
èŠã§ãã
å®è·µçãªèªã¿æ¹
1. BB / KCã®åŸããšäŸ¡æ Œäœçœ®ãããçŸåšã®ãã¬ã³ããšãã©ãã£ãªãã£ç¶æ
ã確èªããŸãã
2. BBãKCã®å
åŽã§åçž®ããŠããããå€åŽãžæ¡å€§ããŠãããã確èªããŸãã
3. ã²ã圢ãåºãããéèŠãªåžå Žæ§é ã®è¿ãã«ãããã確èªããããŒã«ãŒã ãã§å€æããªãããã«ããŸãã
4. ãã©ã€ã¹ã¢ã¯ã·ã§ã³ããã¬ã³ãæ§é ããµããŒããšã¬ãžã¹ã¿ã³ã¹ããŸãã¯å€±æãããã¬ã€ã¯ãã確èªãæ¢ããŸãã
5. ããªã¥ãŒã ãããã¡ã€ã«ãé«ã»äœåºæ¥é«åž¯ãéèŠãªãµããŒãïŒã¬ãžã¹ã¿ã³ã¹ã§ã®åå¿ãªã©ãç¬ç«ããæ
å ±ãçµã¿åãããŸãã
6. ãšã³ããªãŒãæ€èšããåã«ãç¡å¹åæ°Žæºãšãªã¹ã¯ãå®çŸ©ããŸãã
ã¢ã©ãŒã
匷æ°ã匱æ°ããŸãã¯ããããã®æ¹åã«æœåšãªããŒãµã«ãçŸããå Žåã®ã¢ã©ãŒããäœæã§ããŸããã©ããåãè¶³ã®ç¢ºå®æ¡ä»¶ã§äœåãããã£ãŒãäžã®ããŒã«ãŒãé衚瀺ã«ããŠãæ©èœããŸãããªã¢ã«ã¿ã€ã ã§ã¯ãOnce Per Bar Closeãã®äœ¿çšãæšå¥šããŸãã
éèŠ
BBKCã¯ãã£ãŒãåæãšåè£æœåºã®ããã®ããŒã«ã§ããããŒã«ãŒã¯ãã£ã«ã¿ãŒãééããæœåšçãªå転ã瀺ããã®ã§ããã確çãä¿èšŒããã転æç¹ããŸãã¯å®å
šãªå£²è²·ã·ã¹ãã ã§ã¯ãããŸãããéæãæé軞ã«ãã£ãŠæåã¯ç°ãªããŸããããåºããã¬ã³ãåæãåžå Žæ§é ãåºæ¥é«ããµããŒããšã¬ãžã¹ã¿ã³ã¹ãé©åãªãªã¹ã¯ç®¡çãšçµã¿åãããŠäœ¿çšããŠãã ããã
Indicador
