Classic Pattern EngineIs a chart-pattern detection tool built around confirmed swing pivots.
The script identifies selected classic chart-pattern structures and draws them directly on the chart. It is designed as a visual pattern-mapping tool, not as an automated trading system.
What the script detects
Reversal patterns:
- Double Top
- Double Bottom
- Triple Top
- Triple Bottom
- Head and Shoulders
- Inverted Head and Shoulders
Continuation / structure patterns:
- Rectangles
- Ascending Triangle
- Descending Triangle
- Symmetrical Triangle
- Rising Wedge
- Falling Wedge
- Bull Flag
- Bear Flag
- Bullish Pennant
- Bearish Pennant
How it works
The script uses confirmed pivot highs and pivot lows to build a swing structure. It then compares the most recent confirmed swings against geometric conditions such as:
- Similarity of highs or lows
- Pattern height relative to ATR
- Slope of upper and lower boundaries
- Convergence or parallel behavior
- Pattern duration
- Flag or pennant context when applicable
Each detected pattern receives a quality score. This score is based on the geometry of the pattern, such as symmetry, height, similarity of key swing points, slope behavior, and structure fit. The score is intended to help users filter weaker shapes from cleaner structures.
Entry, Stop, and Target levels
The script can display Entry, Stop, and Target reference levels for detected patterns.
These levels are geometric references derived from the detected pattern structure. They are not trade recommendations.
The script can also track the state of the detected setup:
- Pending: the pattern is detected but entry has not been triggered
- Active: entry level has been reached
- Target Hit: price reached the target reference level
- Stop Hit: price reached the stop reference level
- Expired: the setup remained unresolved beyond the selected time window
The Entry label can also show an estimated R:R value based on the distance between Entry, Stop, and Target.
Main settings
Detection:
- Pivot strength
- Equality tolerance in ATR
- Minimum pattern height
- Minimum pattern quality
- Maximum pattern length
Display:
- Show only latest pattern
- Show pattern lines
- Show entry / stop / target levels
- Show R:R in entry label
- Fade inactive levels after result
- Entry / stop / target projection length
- Pattern line width
- Entry / stop / target line width
- Entry / stop / target label size
Colors:
- Pattern colors
- Entry line color
- Stop line color
- Target line color
- Entry text color
- Stop text color
- Target text color
- Resolved / inactive level styling
How to use
Use the indicator as a visual assistant for identifying and reviewing chart-pattern structures.
A detected pattern means the required swing geometry has formed. It does not mean that the pattern will complete successfully or that price will reach the target.
Users can choose to display only the latest pattern for a clean chart, or keep more visual history by changing the display settings.
Repainting note
This script uses confirmed pivot highs and confirmed pivot lows. A pattern can only be detected after the required pivot confirmation bars have passed.
For this reason, pattern drawings may appear on earlier swing points after confirmation. This is a normal confirmation delay caused by pivot-based detection.
The script does not use lookahead. Entry, stop, target, and state labels update only as new bars develop after a pattern has been detected.
Limitations
Chart patterns are geometric interpretations of price structure. Different traders may classify the same structure differently.
The displayed Entry, Stop, Target, and R:R values are reference levels calculated from the pattern geometry. They should not be treated as financial advice, trading instructions, or guaranteed outcomes.
The indicator is intended for chart analysis, education, and visual pattern review. 指标

指标

Relative Strength (RS) - Mansfield StyleRelative Strength (RS) measures how a symbol performs against a chosen
benchmark. Instead of plotting the raw price ratio — whose scale differs
from one symbol to another and makes comparison difficult — this script
normalizes the ratio (symbol close / benchmark close) against its own
simple moving average over a configurable lookback "Period". The result
is a zero-centered line that reads the same way on any symbol:
- RS above 0 and rising → the asset is outperforming the benchmark
- RS below 0 and falling → the asset is underperforming
- Zero-line crossings → shifts in relative leadership
Only the direction and the position relative to zero matter, not the
absolute value.
█ HOW IT WORKS
1. The script requests the benchmark's close on the selected timeframe.
2. It computes the raw ratio: symbol close / benchmark close.
3. The ratio is divided by its SMA over the "Period" lookback, minus 1 —
expressing how far the current relative strength stands above or
below its recent average.
4. An optional moving average of RS can be displayed as a signal line.
█ INPUTS
- Comparative Symbol: the benchmark (an index such as SPX, a sector
index, or any peer symbol — e.g. compare gold against silver).
- Period (default 50): normalization lookback. Shorter = more reactive,
longer = smoother and slower.
- Show Moving Average / Moving Average Period: optional smoothing line.
- Timeframe: leave empty to use the chart's timeframe, or select a
higher timeframe for multi-timeframe analysis.
█ HOW TO USE
Apply the indicator to any symbol. When RS holds above zero, the asset
is leading its benchmark — favor it for relative-strength strategies
(buy strength). When RS holds below zero, the asset is lagging — avoid
it or rotate out. Zero-line crossovers flag early changes in relative
leadership, and two built-in alerts fire on these crossings.
RS is a relative tool, not a timing tool: an asset can outperform a
falling benchmark while still declining in absolute terms. Combine it
with your own trend or entry criteria.
█ CREDITS
The normalization method follows the Mansfield Relative Strength
concept popularized by Stan Weinstein in "Secrets for Profiting in
Bull and Bear Markets".
█ NOTE ON HIGHER TIMEFRAMES
When a higher timeframe is selected in the Timeframe input, the value
of the current forming bar updates until that bar closes. Historical
values do not repaint. 指标

Volatility Squeeze Breakout [JOAT]Volatility Squeeze Breakout
Finds volatility compression — when Bollinger Bands contract inside the Keltner Channel — and signals the directional release with a built-in energy gauge.
What it is
Markets alternate between coiling and expanding. This indicator detects the coil using the classic squeeze relationship between two well-known volatility envelopes, quantifies how much energy has built up, and then signals the breakout in the direction momentum actually resolves. It is an original implementation with a charge model and full trade framing, not a bare squeeze dot script.
How it works
• The squeeze — a squeeze is on when the Bollinger Bands (price standard deviation) contract entirely inside the Keltner Channel (ATR-based). This means realised volatility has fallen below its typical range and the market is compressing.
• Charge / energy — while the squeeze persists, the tool tracks how long and how tightly the market has been coiled and expresses it as a 0–100 charge. A longer, tighter coil stores more potential energy for the eventual expansion.
• Momentum direction — a smoothed momentum measure determines which way the coil is leaning, so the breakout is read directionally rather than as a neutral event.
• The release — a Buy fires when the squeeze releases with rising positive momentum; a Sell fires when it releases with falling negative momentum. The release is a discrete event, and a minimum-gap control prevents repeated prints around the same break.
Trade levels
On a signal, a red risk box marks entry to the ATR stop and a green reward box marks entry to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable energy-gauge panel shows the squeeze state, the charge that had accumulated at the moment of release, the momentum direction, a conviction estimate, the active signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on any asset and timeframe; volatility cycles exist at every scale.
• Watch the charge build during a squeeze, then act on the release in the momentum direction.
• Higher charge readings indicate a longer coil, which some traders treat as a higher-quality setup — but a big coil can still resolve in either direction, so the momentum gate matters.
Settings
Bollinger length and multiplier, Keltner length and ATR multiplier, momentum length, release and charge options, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The squeeze concept is public domain; the value added here is the charge model that turns coil duration and tightness into a readable energy figure, the directional momentum gate on the release, and the integrated non-repainting trade framing — combined and explained so a trader can see exactly why each breakout is flagged.
Notes and limitations
• Squeeze breakouts can fail or fake out; a release does not guarantee follow-through.
• The charge measures compression, not direction — always confirm with the momentum reading and your own context.
• The tally reflects only past bars on the current chart and is not a prediction.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
指标

Multiday VWAP by ByblloMultiday VWAP by Bybllo
OVERVIEW
This indicator plots up to 5 independent rolling Volume Weighted Average Price (VWAP) lines, each anchored a different number of calendar days back from the present bar (default: 2, 3, 4, 5, and 6 days back). Unlike a standard session VWAP that resets every day, each line here accumulates price*volume continuously from its own anchor day up to the current bar, giving traders a set of rolling reference levels for recent multi-day price/volume balance.
I built this for my own trading because I couldn't find an existing community script that did exactly this — a set of independent, multi-day rolling VWAP lines in one indicator — so I'm sharing it in case it's useful to others too.
KEY FEATURES
- 5 independently configurable rolling VWAP lines — toggle visibility, set the lookback in calendar days, and pick a color for each line individually.
- Lookback days are entered as calendar days (weekends included), so "6 days back" always lands on the same relative session regardless of where in the week you are.
- Real-price calculation — prices are pulled via request.security() against the plain ticker, so the VWAP values are identical whether your chart is displaying candlesticks, Heikin Ashi, Renko, or any other non-standard chart type. Volume is unaffected by chart type and is used as-is.
- Robust new-day detection — instead of relying on the chart's own bar-by-bar progress to detect a new trading day (which can be unreliable right after the chart first loads), this script requests daily-resolution data directly. Daily data loads much faster than intraday data, so the VWAP anchors are detected reliably even immediately after opening the chart.
HOW TO USE
Open the indicator settings and, for each of the 5 lines, set how many calendar days back you want that VWAP to start accumulating from. Use the lines as dynamic support/resistance or fair-value reference levels, similar to how a session VWAP is used, but for multi-day accumulation periods.
NOTES
- This script requires volume data from your data provider. If no volume is available for the symbol, the VWAP values will not calculate correctly.
- "Rolling Days" counts calendar days, not trading/session days.
Feedback and suggestions are welcome. 指标

T4T High Probability Order BlocksMost order block indicators mark every last opposing candle before a move. This one doesn't. My HP-OB indicator only plots an order block when the full sequence that give OB its meaning is present - liquidity taken, displacement, and a FAVG - so what's on your chart is a shortlist, not a wallpaper.
How an OB qualifies
A bullish OB requires three consecutive candles to each do their job:
1. The OB candle - bearish candle that engages sell-side liquidity: a lower against recent price, a raid of a prior swing low, or a tap of equal/relatively equal lows. It must also hold the extreme move.
2. The displacement candle - a candle with real conviction.
3. The confirmation candle - its close must leave a clean FVG behind - No gap > No order block!
Everything is mirrored for bearish OBs. Nothing plots until the confirmation candle closes - no repainting, no provisional boxes.
Zone management
Zones extend forward until price interacts with them. A tap into the zones dims after the OB has been tested; a close through the far side retires it. Delays for both are configurable, and stale zones are automatically pruned so charts stay readable.
Settings
Pivots sensitivity, displacement strength, equal-level tolerance, and lower -lower lookback are all adjustable, along with zone boundaries, colours, and optional FVG boxes.
Alerts
Four built-in conditions: new bullish OB, new bearish OB, and first test of either - so you can wait for price to come to your level instead of chasing.
This tool mark structure; it doesn't make decisions. Fewer, cleaner zones and the discipline to wait for them - #PatiencePays 指标

GMS Ultimate IndicatorGMS Ultimate Indicator 9.0 is a customizable multi timeframe market structure and price action tool designed to help traders stay aligned with the dominant side of the market.
It analyzes the Daily, 4H, 1H, 15M, 5M, and 1M trends using HH/HL and LH/LL structure, while identifying pullbacks, consolidation, liquidity sweeps, BOS, CHOCH, protected structure, reaction zones, retests, and rejection candles. Its setup engine helps locate higher probability entries within the broader trend, with adjustable alerts, dashboard layouts, and display settings.
For analysis and educational purposes only. Use proper risk management and backtesting. 指标

策略

Capitulation Stretch Reversion [Jayadev Rana]OVERVIEW
Capitulation Stretch Reversion is a long-biased, price-action mean-reversion strategy. Its thesis is simple: in an established uptrend, sharp multi-bar pullbacks that stretch price well below its short-term mean tend to snap back. The strategy waits for that stretched, capitulating condition, enters on the first sign of a turn, and exits when price reverts to the mean.
Everything is derived from raw price and range (EMAs of price and Average True Range) - there are no oscillators or external data.
HOW IT WORKS
1. Regime filter. A long EMA (default 200) defines the regime. Long trades are only permitted while price is above it, keeping every entry aligned with the prevailing drift. A symmetric short side exists but is OFF by default (see Direction).
2. Stretch + capitulation. A setup can only arm when price has extended at least a set number of ATRs below a short reversion mean (default 0.5 x ATR from a 5-EMA) AND has printed a run of consecutive lower closes (default 2). This is the "capitulation" filter - it avoids buying shallow noise and waits for a genuine flush.
3. Entry. When the stretched, capitulating condition is met and the current bar closes back up (a reversal bar), a long is taken on the confirmed bar.
4. Exit - three ways. The target is a reversion to the mean: the position is closed once price closes back at or above the reversion EMA. A protective stop sits a wide, volatility-based distance below entry (default 3 x ATR). A time stop closes any trade that has neither hit target nor stop within N bars (default 10).
WHY THE STOP IS WIDE
Mean reversion trades a high hit-rate against an unfavourable reward-to-risk: the target (a snap back to the mean) is near, while the protective stop is deliberately wide so normal wobble does not knock you out. This produces frequent winners but occasional losers that are larger than a typical win. That trade-off is intentional and is shown honestly in the results below - read the LIMITATIONS section carefully.
BACKTEST (defaults, on the loaded history)
Tested on SPY daily with the default inputs and the properties set in the script (10,000 initial capital, 100% of equity per trade, 0.03% commission, 2 ticks slippage). On the sample available in the Strategy Tester this produced roughly a 67% win rate with a profit factor near 1.67, a max drawdown around 10%, and no margin calls, modestly ahead of buy-and-hold over the same window. This is a limited in-sample backtest, not a forward result - your own data window, symbol, fees and fills will differ.
SETTINGS
Regime EMA Length - trend filter that gates entries.
Reversion Mean Length - the EMA used as the snap-back target.
Stretch (ATR from mean) - how far price must extend before a setup arms.
Capitulation Bars - consecutive closes required to confirm exhaustion.
Protective Stop (ATR) and Time Stop (bars) - the exit envelope.
Direction - Trade Longs (on) and Trade Shorts (off by default; counter-trend shorts on up-drifting index ETFs have a much lower hit-rate).
Dashboard - live regime, position, win rate, profit factor and net profit.
LIMITATIONS
Signals are evaluated on bar close, not intraday. The reported win rate is in-sample on a finite history and will not persist unchanged out of sample. Because winners are small and losers wide, a cluster of stopped trades can still produce a meaningful drawdown despite a high win rate - position size accordingly. Percent-of-equity sizing at 100% is for demonstration; use realistic risk-based sizing in practice. Mean reversion underperforms in strong, one-directional trends where price never stretches, and can suffer if a pullback turns into a full regime change. This script is a research and educational tool, not financial advice or a guarantee of future performance.
ORIGINALITY
The contribution is the specific combination: an ATR-normalised "stretch" distance from a fast mean, gated by a consecutive-lower-close capitulation count and a regime filter, with a mean-touch target against a wide ATR stop and a time stop. It is built from first principles on price and range, not a wrapper around a built-in indicator. 策略

Adaptive Momentum Ribbon [JOAT]Adaptive Momentum Ribbon
An eight-layer moving-average ribbon whose colour is driven by live momentum and whose compression flags the coil before the move.
What it is
A single moving average tells you very little. A ribbon of them, fanned by speed, tells you three things at once: direction (the colour), strength (how wide it fans) and turning points (where it squeezes and flips). This indicator builds that ribbon and adds a momentum core and a compression detector so the ribbon is not just decorative — it gates the signals.
How it works
• The ribbon — eight exponential moving averages from fast to slow, with an optional light second smoothing pass for cleaner turns. When the fast layers sit above the slow layers the stack is bullish, and vice versa.
• Momentum core — a rate-of-change normalised by ATR and then smoothed. This value is mapped onto a colour gradient, so a strong trend glows saturated while a fading one drifts toward neutral. The same value gates entries, so you buy strength rather than every flip.
• Compression detector — the width between the fastest and slowest ribbon lines is ranked as a percentile over a lookback window. A low percentile means the market is coiled; a move out of that coil is the tradable expansion. Coils are highlighted so you can see energy building.
• Flip signals — a Buy prints when the ribbon flips up out of (or just after) a compression with positive momentum; a Sell is the mirror. Because a flip requires the stack to actually reverse, signals are naturally spaced, and a minimum-gap control adds a further safeguard against clustering.
Trade levels
Each signal draws a red risk box to the ATR-based stop and a green reward box to the third target, with inner target lines and right-edge price labels for entry, stop and every take-profit at your chosen R multiples.
The dashboard
An adjustable panel shows trend direction, a block-gradient momentum meter with a signed headline value, the compression state (coiled or expanded), a 0–100 conviction estimate, the current signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on all assets and timeframes; the ribbon adapts to whatever data it is given.
• Use the coil highlight to prepare for a move and the flip-with-momentum signal to time it.
• Require the coil filter for cleaner, fewer signals in choppy markets, or relax it for more responsive trend entries.
Settings
Base length and layer step, source, optional smoothing, momentum length and smoothing, signal momentum gate, compression window and percentile threshold, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The combination is the point: a speed-fanned ribbon, an ATR-normalised momentum gradient that both colours the ribbon and filters signals, and a percentile-ranked compression model that isolates coils. Together they turn a familiar visual into a structured, non-repainting trend-and-expansion tool.
Notes and limitations
• Moving averages lag by nature; the ribbon confirms trend, it does not call exact tops or bottoms.
• In strong one-way trends the compression filter may keep you out of some continuation entries — that is the intended trade-off for fewer false flips.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
指标

指标

指标

AutoFractal MTF Adaptive Projection [Aaron Diaz]TITLE
AutoFractal MTF Adaptive Projection
ENGLISH DESCRIPTION
OVERVIEW
AutoFractal MTF Adaptive Projection searches for historical price structures that resemble a user-defined current structure. The historical search timeframe is independent from the chart timeframe, so a trader can view a daily chart while searching for analogs on 4-hour, 2-hour, daily, or other supported timeframes.
The script is designed as a market-structure comparison and scenario-projection tool. It does not generate buy or sell signals, and its projected path must not be interpreted as a guaranteed forecast.
HOW IT WORKS
1. Historical search range
The user selects a start date, an end date, and a historical source timeframe. The script evaluates candidate structures only inside that selected period.
2. Current target structure
The structure to be matched can be defined using the latest N chart bars or a manual date range on the current chart.
3. Normalized comparison
Historical and current structures are compared using normalized log returns rather than absolute prices. This allows patterns from different price levels and different market regimes to be compared on a proportional basis.
4. Composite similarity score
Each historical candidate receives a score based on:
- Shape and correlation.
- Retracement and Fibonacci behavior.
- Relative amplitude.
- Directional agreement.
Inverse fractals can be enabled when the user wants to compare a bullish structure with an inverted bearish analog, or vice versa.
5. Adaptive projection
After a match is selected, the script uses the historical continuation as an analog scenario. Three adaptation methods are available:
- Percentage: adapts the historical continuation using proportional price movement.
- Fibonacci: adapts the continuation using the relationship between historical and current structural ranges.
- Smart hybrid: combines percentage and Fibonacci adaptation.
The script can automatically adapt both price amplitude and time duration to the current structure.
6. Manual drawing controls
The automatically fitted historical path and future projection can be adjusted independently. Users can change their height, width, horizontal position, and vertical position without changing the historical match itself.
VISUAL OUTPUTS
- Historical match box: marks the selected analog period.
- Fitted historical pattern: overlays the normalized historical structure on the current target.
- Future projection: displays the continuation that followed the historical analog, adapted to the current structure.
- Diagnostics table: shows the search timeframe, matched dates, total score, correlation, retracement score, amplitude scale, time scale, and number of evaluated candidates.
BASIC USE
1. Select the historical search timeframe.
2. Select the historical start and end dates.
3. Define the current target structure.
4. Set the historical pattern length and future projection length.
5. Adjust the minimum score and scoring weights if necessary.
6. Choose Percentage, Fibonacci, or Smart hybrid adaptation.
7. Use the manual drawing controls only after reviewing the automatic fit.
INTERPRETATION
The total score measures similarity under the script's selected criteria. It is not a probability of the projected path occurring. A high score means that the compared structures are mathematically similar according to the configured inputs; it does not mean that market context, liquidity, news, volatility, or order flow are identical.
LIMITATIONS
- Historical analogs can fail and should not be treated as deterministic forecasts.
- Results depend on the selected date range, timeframe, pattern length, score weights, and available historical data.
- Enabling the current unconfirmed bar can cause the selected match and projection to change intrabar.
- Lower-timeframe searches may require more data and processing resources.
- Manual resizing improves visual alignment but does not increase the statistical validity of the match.
- The indicator does not provide entries, exits, stop losses, or position sizing.
OPEN-SOURCE REUSE AND CREDITS
This script is a derivative work based in part on the open-source script "Auto Fractal " originally published by TheUltimator5.
Original author and original portions:
TheUltimator5
Substantial redesign, new logic, and additional code:
Aaron Diaz
The derivative adds independent multi-timeframe searching, date-restricted candidate selection, normalized log-return matching, composite scoring, adaptive percentage/Fibonacci projections, time and amplitude scaling, manual fit controls, and expanded diagnostics.
This publication is open-source and retains attribution to the original author under TradingView's open-source reuse rules and the Mozilla Public License 2.0.
DISCLAIMER
This indicator is provided for educational and analytical purposes only. It is not financial advice. Historical similarity does not guarantee future similarity. Users remain responsible for their own analysis, risk management, and trading decisions.
DESCRIPCION EN ESPANOL
RESUMEN
AutoFractal MTF Adaptive Projection busca estructuras historicas del precio que se parezcan a una estructura actual definida por el usuario. La temporalidad historica funciona de manera independiente a la temporalidad visible del grafico, por lo que es posible observar un grafico diario mientras se buscan analogias en 4 horas, 2 horas, diario u otras temporalidades compatibles.
El indicador funciona como una herramienta de comparacion estructural y proyeccion de escenarios. No genera senales de compra o venta y la ruta proyectada no debe interpretarse como una prediccion garantizada.
COMO FUNCIONA
1. Rango historico
El usuario selecciona una fecha inicial, una fecha final y la temporalidad historica. El script evalua candidatos solamente dentro de ese periodo.
2. Estructura actual
La estructura que se quiere comparar puede definirse mediante las ultimas N velas del grafico o mediante un rango manual de fechas.
3. Comparacion normalizada
Las estructuras se comparan mediante rendimientos logaritmicos normalizados y no mediante precios absolutos. Esto permite comparar patrones ocurridos en niveles de precio y condiciones de mercado diferentes.
4. Puntuacion compuesta
Cada candidato recibe una puntuacion basada en:
- Forma y correlacion.
- Retrocesos y comportamiento Fibonacci.
- Amplitud relativa.
- Direccion.
Tambien se pueden permitir fractales inversos.
5. Proyeccion adaptativa
El indicador utiliza la continuacion posterior del fractal historico como un escenario analogo. Existen tres metodos:
- Percentage: adapta porcentualmente el movimiento historico.
- Fibonacci: adapta la continuacion de acuerdo con la relacion entre los rangos historico y actual.
- Smart hybrid: combina ambos metodos.
La amplitud y la duracion temporal pueden adaptarse automaticamente a la estructura actual.
6. Ajuste manual
El patron historico ajustado y la proyeccion futura pueden modificarse por separado en altura, ancho y posicion, sin cambiar el fractal historico seleccionado.
INTERPRETACION Y LIMITACIONES
La puntuacion total mide similitud matematica bajo los parametros elegidos; no representa la probabilidad de que la proyeccion se cumpla. Los resultados pueden cambiar al modificar las fechas, la temporalidad, la longitud, los pesos o al incluir una vela sin cerrar. La herramienta no proporciona entradas, salidas, stop loss ni tamano de posicion.
CREDITOS
Este script es una obra derivada basada parcialmente en el script abierto "Auto Fractal ", publicado originalmente por TheUltimator5.
Autor original y partes originales:
TheUltimator5
Rediseno sustancial, nueva logica y codigo adicional:
Aaron Diaz
La publicacion se realiza como codigo abierto, conserva la atribucion correspondiente y mantiene la licencia Mozilla Public License 2.0.
AVISO
Este indicador tiene fines educativos y de analisis. No constituye asesoria financiera. La similitud historica no garantiza que el mercado repita el mismo comportamiento.
指标

RSI Levels & Regime Map Heatmap & Cardwell Reversal SignalsOVERVIEW
RSI is the most-used oscillator in the world, and almost nobody trades it — because "RSI is 62" is not something you can place an order against.
This tool moves RSI onto price.
RSI IS INVERTIBLE. Wilder's smoothing can be solved backwards, so for any RSI value there is an EXACT price that would produce it on the next bar. Instead of "RSI is 62", the chart tells you:
Close above 24,278 -> RSI 70 (resistance)
Close below 24,193 -> RSI 30 (support)
Those are real levels. You can put a stop there. You can put a target there.
The script draws the full ladder (30 / 40 / 50 / 60 / 70, all configurable), shades the bands between them into a regime heatmap, measures the Cardwell range regime, marks Cardwell positive and negative reversals with projected targets, shows a multi-timeframe strip — and then does the thing nobody else does: IT FORWARD-TESTS WHETHER ANY OF IT ACTUALLY HOLDS.
This is a research and framing tool. It is NOT a strategy, NOT a signal service, and NOT a validated edge.
THE MATHS (exact, not an approximation)
RSI = 100 - 100/(1 + AG/AL), where AG and AL are the Wilder-smoothed average gain and loss.
For a target T, let RSt = T/(100 - T). Solving the next bar's RSI for the move x required:
an UP move needs x = (n-1) * (RSt*AL - AG)
a DOWN move needs x = (n-1) * (AL - AG/RSt)
Level = close + x. The up form applies when it is non-negative; otherwise the down form does.
This is algebra, not curve fitting. Feed the derived price back through RSI and you get the target value back exactly. The levels are not estimates — they are the precise prices at which the RSI state changes, recomputed every bar. The ladder breathes with volatility on its own: it tightens in quiet markets and widens in violent ones, with no smoothing parameter to tune.
WHY THESE PARTS ARE ONE TOOL (mashup rationale)
1. THE INVERSE-RSI LADDER — the core. Every rung is the exact price at which RSI would print a chosen value.
2. THE HEATMAP — the bands between the rungs, shaded by regime. It shows at a glance how far price must travel to change the RSI story, which is the one question the oscillator pane can never answer.
3. THE CARDWELL REGIME — Andrew Cardwell's observation: in a BULL market RSI holds roughly 40-80, and 40 becomes SUPPORT. In a BEAR market it holds 20-60, and 60 becomes RESISTANCE. So "RSI 40" means the OPPOSITE thing in the two regimes. A tool that ignores this will cheerfully tell you to buy oversold all the way down a trend. The regime here is MEASURED over a lookback, not assumed — and the rung the script watches follows the regime rather than a fixed number.
4. CARDWELL REVERSALS — the signal almost nobody implements. A POSITIVE REVERSAL is RSI making a LOWER low while PRICE makes a HIGHER low. That is the mirror image of classic divergence, and it is a CONTINUATION signal, not a trend reversal. A NEGATIVE REVERSAL is the bearish mirror. A measured target is projected from each.
5. THE HONESTY LAYER — everyone says RSI 30 is support. Nobody checks. Every level test and every Cardwell reversal is logged and graded with a triple barrier against an unconditional control.
Remove any one and you are left with a prettier RSI that still cannot tell you whether RSI works.
THE CALIBRATION — AND THE TWO TRAPS IT TOOK A LIVE TEST TO FIND
Two subtle biases can make a level tool look brilliant while it is doing nothing at all. Both are handled explicitly here, and both are worth understanding whichever tool you use.
TRAP 1 — THE FILL ADVANTAGE.
A support test fires when price dips INTO the rung and closes back ABOVE it. If you enter the event AT THE RUNG (below the close) but compare it with a control entered at the CLOSE, the event gets a strictly better fill on EVERY trade. It then "beats" the control by construction — not because the level held, but because it bought lower. That is a rigged comparison, and it produces a large fake edge.
THE FIX: the level test is treated as a SIGNAL, NOT A FILL. The event and the control enter at the SAME reference price — the bar's close. The only thing that differs is which bars were selected.
TRAP 2 — DIRECTIONAL DRIFT.
Indices drift upward. If level tests are mostly LONG while the control is 50/50, the events win on drift alone and prove nothing.
THE FIX: longs are compared only with control longs, shorts only with control shorts, then blended back using the events' OWN direction mix. The panel also reports the baseline drift directly, so you can see whether the instrument is simply going up.
The control is UNCONDITIONAL: the same trade geometry taken on arbitrary bars, selected by no signal at all. If the levels cannot beat that, they carry no edge.
Results are reported as EXPECTANCY IN R, not hit rate. A Welch t-test decides whether the difference is real or luck — the panel does not say PROVEN unless t > 1.96.
Other conventions, all chosen so the tool cannot flatter itself:
· Both barriers touched on one bar -> the STOP is assumed first.
· Expired trades are marked to market, not booked as losses.
· The level tested is the one computed at the END OF THE PREVIOUS BAR — the price a trader could actually have rested an order at. Using the current bar's own level would be a look-ahead.
· Everything is logged and resolved on confirmed bars only.
HOW TO USE IT
1. READ THE REGIME FIRST. In a bull regime the 40 rung is support and you are hunting long tests of it. In a bear regime the 60 rung is resistance. In neutral, the ladder is simply a map.
2. The rungs are LEVELS. Price closing through one changes the RSI state, by definition.
3. A CARDWELL REVERSAL is a continuation signal with a projected target.
4. READ THE CALIBRATION BEFORE YOU WEIGHT ANY OF IT — and read the baseline-drift row next to it. If level tests show no proven edge on your instrument, the ladder is a MAP, not a probability.
5. Entry, stop and target are drawn at the same price the calibration measures. They are arithmetic, not advice.
DATA / SCOPE
Any symbol, any timeframe. No volume required. The source is an input, so the ladder can be built from close, hlc3, or even another indicator's plot.
NON-REPAINTING
The ladder is computed from confirmed values and projects FORWARD — it is a statement about what the NEXT bar would need to do, so it necessarily moves as new bars arrive. That is a projection, not a repaint, and it is stated plainly rather than hidden.
Level tests are evaluated against the PREVIOUS bar's level, so no future information is used. Reversal pivots use ta.pivot* and confirm a few bars after the fact; once printed, they do not move. The calibration harness logs AND resolves on confirmed bars only, so its statistics cannot inflate intrabar.
HONEST LIMITATIONS — PLEASE READ
The ALGEBRA is exact. THE CLAIMS ABOUT RSI ARE NOT.
"RSI 30 is support" is folklore until it is measured, which is exactly why this script measures it — and why it is built to be able to return "not proven".
Calibration figures are IN-SAMPLE, with no costs or slippage, and use overlapping windows. A proven in-sample edge is NOT a guarantee out-of-sample. Real fills, spreads and commissions will all reduce it.
Cardwell's rules are discretionary in origin and are mechanised here in one particular way. A different mechanisation would give different numbers.
Small samples are unreliable even when they look good. If the edge is near zero, negative, or unstable across timeframes, the honest conclusion is that it is not there.
Nothing here predicts price.
CONCEPT CREDITS
Relative Strength Index and its Wilder smoothing — J. Welles Wilder Jr.
Range rules, positive and negative reversals, and the measured-move projection — Andrew Cardwell.
Triple-barrier forward labelling — Marcos López de Prado.
Welch's t-test — B. L. Welch.
The inverse-RSI level engine, the regime map, the unconditional direction-matched control and the significance testing are the author's own. Clean-room implementation; no third-party code is reused. Not affiliated with, nor endorsed by, any of the above.
DISCLAIMER
Research and educational tool only. NOT financial advice, NOT a recommendation, and NO guarantee of results. Indicators describe past behaviour; they do not predict the future. Entry, stop and target output is arithmetic, not advice. Trading carries a risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script. 指标

DTC Initial Balance ProWHAT THIS DOES
Every trading session has an "Initial Balance" — the first chunk of time
after the open (default: the first hour, 09:30-10:30 New York) where the
market sets its early high and low. Traders have long believed that
WHICH ONE FORMS FIRST — the high or the low — hints at which way the
rest of the day tends to go.
The problem: on a normal chart, you can't actually tell which came
first just by looking at a candle. A single 15-minute or 1-hour candle
can have both a new high AND a new low in it, and the candle's color
tells you nothing about the order they happened in.
This indicator solves that by secretly rebuilding the entire session
minute-by-minute in the background (even if your chart is on 15m, 1H,
or Daily), so it can tell you EXACTLY which one happened first — based
on real timestamps, never a guess.
HOW TO READ IT
- A colored box appears over the session: green means the low formed
first, red means the high formed first. Gray means it's still
forming.
- A small label shows the result once the session ends.
- A table (top-right by default) shows the full breakdown: exact
prices, exact times, and a "Bias" (Long/Short) reading.
THE PART THAT MAKES THIS DIFFERENT
Most tools stop at "which formed first." This one keeps going and
actually checks your chart's history to answer the follow-up question:
"okay, but does that actually mean anything?" It tracks, for every
past session, what price did AFTERWARD — did it break above the
session high, or below the session low — and shows you the real
percentages. So instead of trusting a rule of thumb, you can see
whether it's actually held up on the exact symbol and timeframe you
trade.
It also projects price targets above and below the session (simple
multiples of the session's range) and shows how often price has
historically reached each one.
FEATURES
- Works on any chart timeframe - internally always reconstructed from
1-minute (or 5-minute, for older history) data
- Fully customizable session times, not locked to the NY open
- Adjustable colors, box/line styles, and label sizes
- A statistics table with three sections: current session detail,
all-time stats, and post-session breakout odds
- Price target lines (+0.5x to +3.0x the session range) with their own
historical hit-rate table
- Alerts for session completion and for each outcome
- No repainting - once a session ends, its result is permanently frozen
A NOTE ON HONESTY
This indicator will tell you "Simultaneous" instead of guessing when
the high and low happen too close together to tell apart (this is a
hard limit of how granular historical data can get, not a shortcut).
Older history beyond what 1-minute data allows automatically falls back
to 5-minute reconstruction, clearly labeled in the table so you always
know the precision you're looking at.
This is an analytical tool for understanding market structure, not financial advice.
Historical statistics describe the past
they are not a guarantee of future behavior.
指标

GMS Ultimate IndicatorGMS Ultimate Indicator is a customizable multi timeframe market structure and price action tool designed to help traders stay aligned with the market’s direction. It tracks 4H, 1H, 15M, and 5M trend conditions, structure state, and price position relative to selected EMAs.
The indicator also identifies BOS, CHOCH, swing highs and lows, liquidity pools and sweeps, previous day/week levels, protected 1H structure, 4H reaction zones, retests, rejection candles, potential setups, targets, and alerts.
Built for scalpers, intraday traders, and swing traders who use market structure and price action. For analysis and educational purposes only. 指标

Robust Bollinger Bands"First and foremost, full credit and massive respect to John Bollinger for inventing the original Bollinger Bands, an absolute cornerstone of technical analysis. This script does not aim to replace his legendary work, but rather to build upon his core philosophy by applying modern robust statistics to solve extreme outlier scenarios."
Description:
Overview
The "Institutional Robust Bollinger Bands" is a highly advanced, mathematically robust volatility indicator designed to solve the most common flaws of the classic Bollinger Bands. Standard Bollinger Bands rely on a Simple Moving Average (SMA) and Standard Deviation. Because standard deviation squares the distance from the mean, extreme market events (flash crashes, large gaps, or massive outlier wicks) artificially inflate the bands. This creates a "ghosting effect" where the bands remain irrationally wide long after the volatile event has passed, leading to false signals (fakeouts).
This script completely rebuilds the volatility model using Robust Statistics, Huber Weights, Kaufman-inspired Efficiency Ratios, and Asymmetric Expansion.
How It Solves the Classic Bollinger Bands Problem
Median (Q50) vs. SMA: Instead of using an SMA for the Basis line, this indicator uses the Median (Q50). The Median is statistically immune to single-bar manipulation. Even if a massive outlier wick occurs, the Basis line remains stable, completely ignoring the "fake" movement.
Huber Weighted Dispersion vs. Standard Deviation: Instead of squaring outliers, this script uses Median Absolute Deviation (MAD) and Huber Weights. Price action that falls outside a statistical threshold (1.345 * MAD) receives heavily penalized weights. This means the bands measure true continuous volatility rather than being skewed by one-off anomalies.
Asymmetric Bands: Financial markets do not follow a perfect normal distribution (Bell Curve); they exhibit skewness and fat tails. This script calculates the Skewness (Q75 + Q25 - 2 * Q50) and Kurtosis (Q95 - Q05). If the trend is aggressively skewed to the upside, the upper band expands further while the lower band tightens, adapting to the directional momentum asynchronously.
The Role of Classic Indicators & Custom Volatility Engines
While the core logic replaces classic averages with quantiles, we still utilize the classic Simple Moving Average (SMA) for a very specific, underlying purpose: Smoothing dynamic mathematical engines.
Efficiency Ratio (ER): We calculate a raw directional efficiency (netDisp / hlRange) inspired by Perry Kaufman's methodology. We then apply an SMA to smooth this raw data. This smoothed ER dynamically adjusts the Lambda (Skewness) multiplier. When the market is trending cleanly, the asymmetry expands automatically.
Gap & Body Volatility: We measure real tick-by-tick shock (disp = body + gap). We use an SMA to compare the short-term volatility of this calculation against its long-term average. This dynamically adjusts the Mu (Fat Tail) multiplier, fortifying the bands automatically when market gaps increase.
Key Features for Traders
Self-Adaptive Multipliers: You don't need to manually change settings for different assets. The internal Efficiency Ratio and Volatility engines automatically scale the Skewness and Kurtosis multipliers based on the asset's current state.
Percentile-Based Squeeze Detection (Yellow Background): Instead of looking for an absolute lowest value (which often breaks in prolonged ranging markets), the script uses a Percentile Rank logic. If the current bandwidth falls within the narrowest 15% (adjustable) of the last 100 bars, the background turns Gold/Yellow. This provides a highly stable visual cue that a major volatility breakout is building up.
QUICK COMPARISON: CLASSIC BB vs. ROBUST BB
1. BASIS LINE (MIDDLE BAND)
Classic: SMA (Simple Moving Average) - Sensitive to spikes.
Robust: Median (Q50) - Completely immune to single-candle manipulation.
2. VOLATILITY MEASUREMENT
Classic: Standard Deviation (Squared errors) - Outliers cause "Ghosting Effect".
Robust: Huber Weighted Dispersion - Punishes outliers, keeping bands stable.
3. BAND STRUCTURE
Classic: Perfectly Symmetric - Ignores market trend bias.
Robust: Asymmetric Expansion - Adapts to price skewness (Bullish/Bearish bias).
4. DYNAMIC MULTIPLIERS
Classic: Static (User-defined) - Requires manual tuning.
Robust: Self-Adaptive - Automatically scales Kurtosis and Skewness via Efficiency Ratios.
5. SQUEEZE DETECTION
Classic: Manual observation.
Robust: Percentile-Rank Based - Background turns yellow when bandwidth is in the narrowest 15% of recent history.
Usage
Use this indicator exactly as you would use classic Bollinger Bands, but with the confidence that outlier wicks will not distort your analysis. Look for continuous Squeeze (yellow) zones to prepare for breakouts, and observe the asymmetric expansion of the bands to understand the true strength and bias of a trend.
Disclaimer: This script is for educational and analytical purposes only. It does not constitute financial advice.
指标

指标

GMS Ultimate Structure + Price ActionGMS Ultimate Indicator is a customizable multi timeframe market structure and price action tool designed to help traders stay aligned with the dominant side of the market.
It analyzes the Daily, 4H, 1H, 15M, 5M, and 1M trends using HH/HL and LH/LL structure, while identifying pullbacks, consolidation, liquidity sweeps, BOS, CHOCH, protected structure, reaction zones, retests, and rejection candles. Its setup engine helps locate higher probability entries within the broader trend, with adjustable alerts, dashboard layouts, and display settings.
For analysis and educational purposes only. Use proper risk management and backtesting. 指标

指标

Smart Money Concepts Liquidity Sweep, Order Block & FVGOVERVIEW
Every Smart Money indicator draws order blocks and tells you they work. This one scores them 0–100 and then forward-tests whether the score is actually true — on your instrument, on your timeframe.
It maps liquidity, detects stop-hunts, builds entry zones from the displacement that follows, confirms them with real order flow, and grades every zone that price returns to. Instead of "here is an order block, trust me", the panel tells you something like:
Tier-A zones returned +0.23R vs +0.08R for a matched control, n=61, t=2.1 — PROVEN
...or, just as usefully, NOT PROVEN. It is built to be able to tell you it doesn't work.
This is a research and framing tool. It is NOT a strategy, NOT a signal service, and NOT a validated edge.
WHY THESE PARTS ARE ONE TOOL (mashup rationale)
The Smart Money / ICT model is a SEQUENCE. Each step is meaningless on its own, and that is why they are combined here rather than sold as separate scripts:
1. LIQUIDITY POOLS — Stops cluster above equal highs (buy-side) and below equal lows (sell-side). Swing points within an ATR tolerance are clustered into a single pool; the more swings, the more stops resting there. A pool is not a signal. It is a magnet and a target.
2. THE SWEEP — Price wicks THROUGH the pool and closes back INSIDE it. That is a stop-hunt, and it is the only part of the sequence that reveals intent. A sweep alone is still not a trade.
3. DISPLACEMENT — An impulsive, ATR-normalised move away from the swept level. This is what separates a SWEEP (reversal) from a RUN (continuation).
4. THE ZONE — Displacement leaves footprints: a FAIR VALUE GAP (a three-bar imbalance) and an ORDER BLOCK (the last opposing candle before the impulse). Where an FVG sits INSIDE an order block, two independent structures agree — flagged as a confluence zone.
5. LOCATION — The zone is then judged on WHERE it sits. Against the VOLUME PROFILE (value area, point of control, and untested "naked" POCs), and against the DEALING-RANGE EQUILIBRIUM. A bullish zone in DISCOUNT is a zone you are being paid to buy; the same zone in premium is not.
6. ORDER FLOW — The question structure cannot answer: did anyone actually show up? Intrabar delta signs each lower-timeframe bar's volume by its own direction. A bullish zone born on NEGATIVE delta is a vacuum, not a footprint — and scores nothing for it.
7. THE ENTRY — Price is never chased. The engine arms only when price RETRACES into a fresh zone, then frames entry / stop / target — the target being THE NEXT OPPOSING POOL OF STOPS, because that is where the next batch of liquidity is resting.
8. THE CALIBRATION — Without it, everything above is folklore.
Remove any one of these and the tool marks noise, chases price, targets nothing, ignores where value actually is, or reports a confidence it has not earned.
THE SCORE (0–100, eight measurable components, no discretion)
Displacement strength ...... impulse body ÷ ATR — the energy behind the zone
Participation (RVOL) ....... volume at formation vs its own recent average
Born from a sweep .......... did a stop-hunt precede it? (the core ICT claim)
Imbalance size ............. FVG height ÷ ATR
HTF alignment .............. does the higher timeframe agree?
Premium / discount ......... bullish zone in DISCOUNT? bearish zone in PREMIUM?
Volume-profile location .... at value, at the POC, or at an untested POC?
Order flow (delta) ......... was the displacement backed by real aggressive flow?
Tiers: A (70+) · B (40–69) · C (below 40). Every weight is an input — if you think the sweep matters more than I do, turn it up, and let the calibration tell you whether you were right.
THE CALIBRATION — AND WHY IT IS HONEST
Every zone trade is paired with a MATCHED CONTROL: the same bar, the same direction, and the SAME R:R — but entered at market with an ATR stop instead of at the zone. This isolates exactly one variable: does entering AT THE ZONE beat entering anywhere else on identical geometry? Under a random walk, this control has zero expectancy, so anything the zones earn is real.
Each tier is tested against its OWN control, because an A-zone may carry a very different R:R from a C-zone, and a trade's hit rate depends on its R:R.
Results are reported as EXPECTANCY IN R, not hit rate. When R:R varies from trade to trade, a hit rate on its own is meaningless: a 6R winner at 20% is +0.4R (excellent), while a 1R winner at 55% is +0.1R (barely worth the commission).
A Welch t-test decides whether the difference is real or luck. The panel does not say "proven" unless t > 1.96.
The panel also answers the one question that matters most: DOES TIER A BEAT TIER C? If the scoring model has any value, A-grade zones must outperform C-grade zones. If they don't, the score is noise — and it will say so.
Conventions are deliberately chosen so the tool cannot flatter itself:
· Both barriers touched on the same bar → the STOP is assumed first.
· Expired trades are marked to market, not counted as wins or losses.
· Everything is logged and resolved on confirmed bars only.
HOW TO USE IT
1. Read the bias, the liquidity map, and the premium/discount shading. Pools above are buy-side, pools below are sell-side, and price usually travels from one to the other.
2. Wait for a SWEEP, then for a zone to be created by the displacement that follows.
3. Do NOT chase. The engine arms an entry only when price RETRACES into a fresh zone.
4. Watch for ABSORPTION at the zone — heavy volume, a small range, price holding. Someone is soaking up the aggression. That is a defended zone, and it is the best live confirmation available.
5. READ THE CALIBRATION BEFORE YOU WEIGHT ANY OF IT. If Tier A is not proven on your instrument and timeframe, a zone is a LOCATION, not a PROBABILITY — treat it as context only.
6. Entry / stop / target and the resulting R:R are drawn on the chart. They are arithmetic, not advice.
Do not tune the weights until the numbers turn green. That is curve-fitting, and the calibration exists to catch it — not to be defeated by it.
ORIGINALITY
The underlying SMC concepts are public and credited below. What is assembled here is the specific synthesis: an eight-component measurable score, the fusion of SMC structure with auction-theory location (volume profile and premium/discount), true intrabar order-flow confirmation, a per-tier matched control, expectancy-in-R reporting, and a significance test that can — and frequently does — return "not proven".
Clean-room implementation. No third-party Pine code is reused.
UNIVERSAL / DATA REQUIREMENTS
Works on any symbol and any timeframe — the engine is ATR-normalised throughout, so it adapts to the instrument rather than assuming point values.
Volume improves the score but is NOT required. On a symbol without real volume, the RVOL, volume-profile and order-flow components neutralise and the panel says so, rather than blanking or pretending.
Intrabar delta requires a timeframe strictly below the chart's. The script AUTO-MAPS this (1m→5s, 3m→15s, 5m→30s, 15m→1m, and so on) because if the intrabar timeframe equals the chart timeframe there is only ONE intrabar — the bar itself — and delta degenerates to ±100% on every bar. Where true intrabar data is unavailable, the script falls back to a close-location proxy AND LABELS IT AS A PROXY in the panel.
NON-REPAINTING
Pools, sweeps, displacement, zones, the volume profile, absorption and entries are ALL computed on confirmed bars only.
Swing points use ta.pivot* and are therefore known only AFTER their confirmation bars. This is why a liquidity pool appears a few bars after its swing. That delay is the honest cost of not repainting, and it is paid deliberately — a level that moves after the fact is worse than no level at all.
The higher-timeframe read uses lookahead_off with a live-bar offset. The calibration harness logs AND resolves on confirmed bars, so its statistics cannot inflate intrabar. Nothing here is drawn and then moved.
HONEST LIMITATIONS — PLEASE READ
Smart Money Concepts is a popular framework, not a proven one. That is precisely why this script measures it instead of asserting it.
The calibration figures are IN-SAMPLE, close-to-close, with NO costs or slippage, and they use overlapping windows. A proven in-sample edge is NOT a guarantee of out-of-sample results.
The rolling volume profile is an APPROXIMATION — each bar's volume is spread uniformly across the bins its range covers. It is not tick data.
Small samples are unreliable. A tier with a low "n" is provisional even if it looks good.
If the edge is near zero, negative, or unstable across timeframes, the honest conclusion is that this model carries no edge on that instrument. The tool is designed to be able to tell you that, and you should believe it when it does.
Nothing here predicts price.
CONCEPT CREDITS
Smart Money / ICT concepts — liquidity pools, stop-hunts, displacement, fair value gaps, order blocks, premium/discount and optimal trade entry — are public trading concepts popularised by Michael J. Huddleston (Inner Circle Trader) and the wider SMC community.
Market Profile, the point of control and the value area — J. Peter Steidlmayer and the CBOT.
Market structure theory — Charles Dow.
Average True Range — J. Welles Wilder.
Wilson score interval — Edwin B. Wilson.
Triple-barrier forward labelling — Marcos López de Prado.
Welch's t-test — B. L. Welch.
The zone-scoring model, the order-flow fusion, the per-tier matched control and the tier calibration are the author's own. Not affiliated with, nor endorsed by, any of the above.
DISCLAIMER
This is a research and educational tool only. It is NOT financial advice, NOT a recommendation, and offers NO guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Entry, stop and target output is arithmetic, not advice. Trading carries a risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script. 指标

PulseBox TraderPulseBox Trader is a multi-timeframe trading assistant designed for both scalping and swing trading. It helps traders see when a possible long or short setup is forming, what filters are active, where the trade box entry is, where the swing-based stop loss is, and where ATR-based profit targets may sit. It also may help trail or stay in the Trade to maximise gains.
This tool is provided for educational and decision-support purposes only. It is not financial advice, does not guarantee profitable trades, and should be tested carefully before any live use. Please feel free to use it for Non Commercial purposes.
The indicator combines several entry ideas:
1. Supertrend flip after candle close
2. Supertrend continuation with VWAP or EMA200 trend alignment
3. RSI trigger candle breakout
4. Doji breakout
5. Flat base or flat top breakout
Filters:
1.VWAP / EMA200 Lead Filter
Auto mode uses VWAP on timeframes up to 15 minutes.
Auto mode uses EMA200 on timeframes above 15 minutes.
Helps decide whether long or short trade boxes are allowed.
2.Supertrend Direction Filter
Longs are preferred when Supertrend is bullish.
Shorts are preferred when Supertrend is bearish.
3.ADX / DMI Momentum Filter
Blocks weaker trade boxes when momentum is low.
Uses ADX plus +DI / -DI.
The lead filter automatically adapts to the chart timeframe:
- On lower timeframes up to 15 minutes, VWAP can guide the trade direction.
- On higher timeframes above 15 minutes, EMA200 can guide the trade direction.
This means the same tool can be used for short-term scalping as well as higher-timeframe swing trading.
The trade box is designed to make the setup easier to understand visually. When a valid setup appears, the box shows:
- Entry price
- Swing-based stop loss
- TP1 at 0.5 ATR
- TP2 at 1 ATR
- TP3 at 1.5 ATR
- TP4 at 2 ATR
- Approximate percentage profit for each target
The panel and settings is built to help newer traders understand what is happening without needing to inspect every setting. It shows:
- Whether a long or short trade box is active
- Which entry method triggered
- Which filters are active
- Any caution, such as price moving against the entry
- Current market session
- Long, short, and total win-rate statistics
- Entry, stop loss, and target levels
The indicator also includes optional market session tools :
- Asian session
- UK session
- Indian session
- US session
- Session open and close lines
- Optional opening range box shading
These session tools are turned off by default, so the chart stays clean unless the trader wants them.
PulseBox Trader is not a buy/sell guarantee. It is a structured decision-support tool . It attempts to combine trend direction, candle triggers, volatility targets, and session awareness into one readable chart overlay. The SL's may be large, please use discretion. Traders should still use risk management, check market context, and test settings before using it live. Capital Appreciation and Capital preservation both are important.
This indicator includes concepts inspired by common technical-analysis methods such as Supertrend, VWAP, EMA200 trend filtering, RSI trigger candles, ATR-based targets, swing-based stop placement, session markers, opening range concepts, doji candles, and marubozu breakout logic.
parts of the script design, organization, wording, panel layout, and Pine Script implementation were developed with AI assistance using OpenAI Codex.
指标

Trident Screener - Stocks, Themes, Sectors [Galin]Trident Screener
What it does
One screener, three universes. Run it in the Pine Screener on individual stocks, on thematic and industry ETFs, and on the sector SPDRs — same columns, same saved filters, three watchlists. It combines a Minervini-style trend template, an IBD-style weighted relative strength score, a three-condition leadership flag with same-day rotation detection, and setup-ripeness columns: contraction, volume dry-up, extension. Every plot becomes a filterable, sortable column — the answer arrives as a ranked table, not a chart to eyeball.
The columns
Trend
MM — 0 to 8, one point per rule when true: 1) close above the 150 and 200 SMA · 2) 150 SMA above 200 SMA · 3) 200 SMA rising vs 22 bars ago · 4) 50 SMA above the 150 and 200 · 5) close above the 50 SMA · 6) at least 25% above the 260-bar low · 7) within 25% of the 260-bar high · 8) weighted price-momentum composite above 70. Rule 8 uses a price composite, not an IBD-style rating — that job belongs to RS Score below.
Relative strength
RS Score — IBD-style weighted relative strength vs the benchmark, in percentage points: 40% × 3M + 20% × 6M + 20% × 9M + 20% × 12M. Zero means the symbol moves with the benchmark; leaders typically read +20 to +80. It is a margin, not a 0–99 percentile — sorting the column gives you the ranking over your own watchlist, which is the honest version of a ranking anyway.
RS 1W % / RS 1M % / RS 3M % — relative performance vs the benchmark per window, computed as the change of the symbol/benchmark ratio.
Leadership & rotation
A+ — 1/0. Above the 200-day SMA AND beats the benchmark over 1 month AND over 3 months. Each condition catches what the other two miss: a "strong month" inside a downtrend is a bounce, not a leader.
A+ streak — consecutive days with the A+ flag. 1 = promoted today: your rotation alert. Sort descending to rank the most established leaders. Tip: check RS 1W on fresh promotions — a green week means an organic promotion; a deep red week means the calendar just rolled a crash out of the 1-month window.
Improving — above the 200 SMA and beating the benchmark on 1M but not yet on 3M: the waiting room for tomorrow's leaders.
Early accumulation
RS NH — the RS line (symbol ÷ benchmark) is at a 252-bar high.
RS NH lead — RS NH while price is still more than 2% below its own 260-bar high. Relative strength breaking out before price is a classic accumulation tell: someone is buying the base hard enough to outrun the index without a breakout.
Setup ripeness
xFrom50 — extension from the 50 SMA measured in daily ATRs: the "too extended to chase" gauge.
% vs 20SMA — the pullback radar: an extended leader near its 20 SMA is offering an entry instead of demanding a chase.
% from 20D High / % from 60D High — proximity to the recent high and to the base high.
Tight5 (xATR) — the 5-day range measured in ATRs. Small = contraction.
Vol 5D/50D — volume dry-up ratio; below ~0.8 = quiet base.
Suggested setups (set once — filters stick to the indicator)
Stocks: MM = 8 · xFrom50 0 to 4 · % from 60D High −8 to 0 · Tight5 < 3 · Vol 5D/50D < 0.8 → sort RS Score descending. Result: tight, dry leaders sitting just under their highs. Loosen the last three by ~30% for an "almost ready" second pass.
Themes / sectors: A+ = 1 → sort RS Score descending. The row count is a daily breadth curve — log it. A+ streak = 1 → fresh promotions. Improving = 1 → the waiting room.
Weekly: RS NH lead = 1 → the names where the money arrived before the breakout.
Settings
Benchmark — default SPY. Compare sectors vs SPY, growth themes vs QQQ, breadth vs RSP, or a stock vs its own sector ETF.
Notes
Run the screener on the 1D timeframe — required, because A+ streak and RS NH count chart bars, so one bar must equal one day. Plots are hidden on the chart by design; this is a screener tool. All windows are trading days (5/21/63/126/189/252). Symbols younger than ~12 months show empty RS Score cells until the history exists. MM criteria adapted from the Minervini Trend Template by yogy.frestarahmawan (MPL 2.0). Volume confirms what the screener nominates — for entry confirmation, pair it with my Relative Volume At Time indicator. 指标
