Opening Range Breakout [ITA]🟠 OVERVIEW
Opening Range Breakout marks the high and low of the first minutes of the trading session, extends those boundaries forward, and flags the bar where price closes outside them. The range is built live as the session opens, tracking its running high and low, then locks once the opening period ends.
Once the range is set, the indicator measures its height and projects extension targets above and below it. Four range lengths are available, and the session open time and timezone are configurable so the tool works on any market rather than being fixed to a single exchange.
🟠 CONCEPTS
* Opening Range - The high and low established during the first minutes of the session. Represents the initial boundaries of agreement between buyers and sellers before the day develops.
* Range Lock - The moment the opening period ends and the boundaries stop updating. From that bar onward the levels extend forward unchanged.
* Extension Target - A projected level placed at a multiple of the range height above the range high or below the range low. Acts as a measured move reference rather than a prediction.
* Qualified Breakout - The first close outside the range in a given direction. Each direction is tracked independently and marked only once, so a session that breaks up, reverses and then breaks down shows both events without repeating either.
* Session Anchoring - The range window is evaluated in the selected timezone rather than the chart timezone, keeping it aligned to the actual market open regardless of the user's location.
🟠 FEATURES
* Selectable Range Length - Choose between 5, 15, 30 or 60 minute opening ranges.
* Live Range Building - The box tracks the running high and low as the opening period develops, then locks when it closes.
* Extension Targets - Projects two configurable multiples of the range height in both directions.
* Breakout Marking - Labels the first close outside the range in each direction.
* Breakout Alerts - Fires on upside and downside breaks independently.
🟠 HOW TO USE
* Match the range length to the instrument. Shorter ranges suit fast-moving markets and scalping, longer ranges suit index futures and higher-priced equities where the first minutes tend to be noisy.
* Set the session open time and timezone to your market. The default is 09:30 New York.
* Use the range boundaries as the reference for the session. Price holding inside them points to rotation, while a decisive close outside tends to set the tone for the rest of the day.
* Read the extension targets as measured moves. A tight opening range produces close targets, while a wide one produces targets that may take the full session to reach, which is itself useful when sizing expectations.
* Adjust Days to Display to keep the chart clean when reviewing several sessions of history.
🟠 CONCLUSION
Opening Range Breakout combines automatic range detection, forward-extending boundaries, and range-based extension targets in a single tool. It removes the manual work of marking the opening range each session while keeping the framework configurable enough to apply across different markets and session times. مؤشر

Bitcoin SuperFlip | Supertrend EMA Trend-Following StrategySuperFlip combines two of the most widely tested trend-following tools on TradingView — the ATR-based Supertrend and a long-period EMA trend filter — into a single directional strategy built and tuned for BTCUSD on the 1-hour chart. The goal isn't novelty; it's a clean, well-understood core (Supertrend flips) layered with a simple confirmation filter (EMA200) and an optional secondary filter (ADX) to reduce whipsaw entries during choppy, low-conviction conditions.
This is a trend-following, not mean-reversion system. It will have a lower win rate than a typical scalping strategy, and that is by design — trend systems make their money from a smaller number of large winning trades that outweigh a higher frequency of small losses.
How it works
Supertrend (ATR-based) tracks the prevailing trend direction and flips when price crosses its dynamic ATR band. This flip is the core trigger for both entries and exits.
EMA200 trend filter only allows longs when price is above the 200-period EMA, and shorts when price is below it — filtering out counter-trend signals that go against the higher-timeframe bias.
Optional ADX filter (off by default) adds a trend-strength gate, only allowing entries when ADX is above a user-set threshold (default 20). This is intended to reduce entries during flat, directionless conditions where Supertrend tends to whipsaw.
Flip-based exits: positions close automatically when Supertrend flips in the opposite direction — this is the primary exit mechanism.
Optional Stop Loss / Take Profit: percentage-based SL/TP can be layered on top of the flip exit as a secondary risk cap (off by default in the current preset — see warnings below).
Features
Toggleable ADX trend-strength filter with adjustable length, smoothing, and threshold
Optional percentage-based stop loss and take profit
Adjustable Supertrend ATR length/factor and EMA filter length
Visual glow-line Supertrend rendering with layered gradient fill toward price
Bullish/bearish flip markers, separate from actual trade-entry markers, so you can see when Supertrend flips vs. when a trade was actually filtered/taken
Multiple color presets (Classic, Aqua, Cosmic, Cyber, Neon, Custom)
Optional bar and background tinting for at-a-glance trend state
Commission (0.075%) and slippage (1 tick) modeled into backtest results by default
Recommendations
Built and tested for BTCUSD, 1H timeframe — this is the intended use case; other assets/timeframes will require re-tuning.
Position sizing defaults to 25% of equity per trade rather than 100% — this materially reduces drawdown and PnL volatility versus full-equity compounding, and is a more realistic starting point for evaluation.
If enabling the ADX filter, start around threshold 15-20 and sweep from there — lower values retain more trades at the cost of some whipsaw protection, higher values do the opposite.
Consider re-enabling a wider stop loss (8-10%+) rather than running with SL fully disabled, especially before using on a leveraged instrument.
Always forward-test or paper-trade before committing real capital — historical performance on a fixed backtest window is not a guarantee of future results.
Warnings
No stop loss is enabled by default in this configuration. Running without a stop loss on a leveraged or volatile asset like BTC carries real, uncapped downside risk per trade — enable and size a stop loss appropriate to your risk tolerance before live use.
With low trade counts (roughly 50-100 in typical backtests), a small number of outlier trades can heavily influence headline profit factor and total return figures — inspect the individual trade list, not just summary stats, before trusting the numbers.
High reported PnL% figures are sensitive to default_qty_value (percent-of-equity compounding) and can look far more impressive than the underlying edge actually is. Judge the strategy primarily by win rate, profit factor, and drawdown — not raw percentage return.
Past performance on historical data does not predict future results. This script is provided for educational and research purposes and is not financial advice.
استراتيجية

MTF Supply & Demand (PropFirmGorilla)This indicator detects supply and demand zones across eight timeframes at once — 15m, 30m, 1H, 90m, 2H, 4H, 690m and Daily — and draws them on whatever chart you're viewing, so you don't have to flip timeframes to map higher-timeframe levels.
How a zone is found
Each zone is built from an impulse candle and the basing candle immediately before it:
Demand: a bullish impulse candle that moves up at least a set % (open→close) and closes in the top portion of its range, preceded by a small down-closing basing candle whose body is no larger than a set % of the impulse body. The zone runs from the basing candle's open down to its low.
Supply: the mirror — a bearish impulse that closes near its low, preceded by a small up-closing basing candle. The zone runs from the basing candle's high down to its open.
A zone is removed automatically once price trades back through it (through the zone low for demand, the zone high for supply), so the chart only shows levels that are still unmirrored.
Non-repainting
Higher-timeframe zones are read from closed bars only (confirmed history, no lookahead), so a zone appears after its impulse candle closes and does not repaint on reload.
Features:
8 timeframes, each toggled on/off independently.
Simplify Zones: when same-side zones overlap, merge them into one rectangle labeled with every timeframe involved (e.g. "90m / 30m / 15m") to reduce clutter.
Box or line display: filled zones, or a single line at each zone's origin.
Separate colors and adjustable opacity for demand vs supply.
Each zone is labeled with its timeframe.
Adjustable detection thresholds (impulse move %, close-in-range %, basing body %) and a cap on zones per timeframe.
How to use
Add it to any chart. Zones from all enabled timeframes appear as colored areas extended to the right. Treat demand zones as potential support and supply zones as potential resistance; a zone disappears once price closes through it. Tune the detection inputs to match the instrument's volatility, and enable Simplify Zones on lower timeframes where many zones stack up.
Inputs
Zone Detection: Impulse min move (%), Impulse close in range (%), Basing body max vs impulse (%), Max zones per timeframe.
Timeframes: 15m / 30m / 1H / 90m / 2H / 4H / 690m / Daily.
Appearance: Show demand / Show supply, Demand & Supply colors, Fill opacity, Fill boxes (off = origin line only), Simplify Zones, Show timeframe label.
Notes
90m and 690m are requested as custom minute resolutions; if your plan or symbol doesn't return one, untick that timeframe.
Higher-timeframe zones need that timeframe's history to be available; extend the chart's loaded history if a timeframe looks sparse.
This tool is for chart analysis and education only. It is not financial advice; test any approach before trading it.
مؤشر

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. استراتيجية

ATR-Normalized Monte Carlo PROATR-Normalized Monte Carlo PRO is a probabilistic forecasting tool designed to estimate a range of possible future price paths using the asset’s own historical behavior normalized by Average True Range (ATR).
Instead of assuming that returns follow a theoretical normal distribution, the script builds an empirical sample of historical price movements expressed in ATR units. These normalized movements are then randomly resampled to generate multiple forward price paths.
The objective is not to predict an exact future price, but to estimate the distribution of possible outcomes over a configurable forecast horizon.
How the model works
For each historical bar, the script calculates an ATR-normalized close-to-close movement:
Normalized Move = (Current Close - Previous Close) / Previous ATR
This transforms historical price changes into comparable volatility-adjusted units.
The Monte Carlo engine then randomly samples these historical ATR-normalized movements and applies them to the current ATR environment to generate multiple simulated price paths.
For each future step, the script calculates the following distribution percentiles:
• P05 — lower 5th percentile
• P25 — lower quartile
• P50 — median simulated outcome
• P75 — upper quartile
• P95 — upper 5th-percentile boundary
These levels form a forward probability envelope around the current price.
Forecast horizon
The forecast can be defined in two ways:
Sessions
The script estimates the average number of chart bars per trading session using recent historical sessions and converts the selected number of sessions into forecast bars automatically.
Bars
The user can directly specify the number of future bars to simulate.
This allows the model to adapt to intraday and higher-timeframe charts without requiring a fixed number of bars per session.
ATR risk units
The script includes four methods for defining the Target and Stop risk unit:
Bar ATR
Uses the current chart ATR directly.
Session ATR
Scales the current ATR by the square root of the estimated number of bars per session:
Session ATR = ATR × sqrt(Bars per Session)
This is the default setting.
Horizon ATR
Scales ATR across the entire forecast horizon:
Horizon ATR = ATR × sqrt(Forecast Bars)
Manual Scale
Allows the user to define a custom ATR scaling factor.
Target and Stop levels are then calculated as multiples of the selected risk unit.
Example:
Target = +3.0 Session ATR
Stop = -1.0 Session ATR
This corresponds to a theoretical 1:3 risk-to-reward structure.
Probability metrics
The dashboard displays several Monte Carlo-derived probabilities:
P(Close > Current)
Percentage of simulated paths whose terminal price finishes above the current market price.
P(Target First)
Percentage of simulations that reach the selected Target before reaching the Stop.
P(Stop First)
Percentage of simulations that reach the Stop before reaching the Target.
P(Unresolved)
Percentage of simulations that reach neither level within the selected forecast horizon.
These metrics distinguish directional probability from the probability of completing a specific trade structure.
Dynamic Probability Bias
The script classifies the current simulation distribution into five configurable states:
• Strong Bullish
• Bullish
• Neutral
• Bearish
• Strong Bearish
By default, the classification is based on the percentage of simulated terminal prices finishing above the current price.
The thresholds are user-configurable.
The Probability Bias is therefore dynamic and may change as price, ATR, historical normalized movements, and the forecast horizon change.
It should be interpreted as a summary of the current Monte Carlo distribution, not as a trading signal.
Dashboard
The configurable dashboard includes:
• Current timeframe
• ATR value and ATR percentage
• Historical sample size
• Number of simulations
• Forecast mode
• Estimated bars per session
• Forecast bars
• Base ATR
• Session ATR
• Horizon ATR
• Selected risk-unit mode
• P05 / P25 / P50 / P75 / P95
• Probability of closing above current price
• Target-first probability
• Stop-first probability
• Unresolved probability
• Target / Stop structure
• Risk-to-reward ratio
• Dynamic Probability Bias
The dashboard position, text size, colors, borders, and left/right column alignment can be customized.
How to use it
A practical workflow is:
1. Select the chart timeframe.
2. Choose the historical lookback.
3. Select the number of Monte Carlo simulations.
4. Define the forecast horizon in sessions or bars.
5. Select the ATR risk-unit method.
6. Define Target and Stop multiples.
7. Evaluate the percentile envelope together with the probability metrics.
For example, a bullish Probability Bias does not necessarily imply a high probability of reaching a +3 ATR Target. The script intentionally separates directional probability from Target/Stop feasibility.
Originality and purpose
This script combines three concepts into one framework:
• empirical Monte Carlo resampling,
• ATR-normalized historical price movement,
• session-aware forecast and risk scaling.
Rather than applying a fixed theoretical return distribution, the simulation uses the instrument’s own recent volatility-adjusted historical behavior.
The purpose is to provide a probabilistic framework for scenario analysis, volatility-aware risk assessment, and trade planning.
Important limitations
Monte Carlo simulation does not predict future market prices.
The model assumes that historical ATR-normalized movements are relevant to future scenarios. Market structure, volatility regimes, gaps, liquidity conditions, news events, and structural changes may cause future behavior to differ materially from the historical sample.
The current implementation also resamples individual historical movements independently. It therefore does not fully preserve serial correlation, volatility clustering, or multi-bar market regimes.
Target and Stop probabilities are simulated estimates and should not be interpreted as guaranteed probabilities of future execution.
Results may also vary as the latest bar, ATR, historical sample, and simulation draws change.
Use standard price charts when evaluating the script. Non-standard chart types can materially alter the underlying price series and produce misleading interpretations.
Disclaimer
This script is provided for educational and analytical purposes only.
It does not provide financial advice, investment recommendations, trade signals, or guarantees of profitability.
Monte Carlo simulations, probability estimates, percentile projections, and hypothetical scenarios are based on historical data and assumptions. They do not guarantee future results.
Trading and investing involve risk, including the possible loss of capital. Users are responsible for their own analysis, risk management, and trading decisions.
مؤشر

Master Line Plus. Multi-MA ConsensusMaster Line Plus — Multi-MA Consensus with Agreement Score
Master Line Plus blends eight different moving-average families into a single consensus trend line, measures how strongly those averages agree, and filters direction with a volatility-aware band. It's a clean, open-source way to read one trend reference — plus a sense of how much conviction is behind it — instead of stacking many moving averages on the chart.
How it works
Every moving-average type reacts to price differently. EMA and WMA weight recent bars heavily and turn quickly; SMA weights all bars equally and turns slowly; RMA (Wilder's) is the smoothest; HMA cuts lag while staying responsive; DEMA and TEMA use multiple EMA passes to reduce lag further; and ALMA applies a Gaussian weighting to balance smoothness and responsiveness. Each one alone is a compromise — fast types whipsaw in chop, slow types lag at turns.
Plus computes all eight over the same length and averages them into one line:
consensus = ( EMA + SMA + WMA + HMA + RMA + DEMA + TEMA + ALMA ) / 8
The purpose of the combination is not to stack indicators, but to average out the bias of each MA type: the lag-reducing members keep the line responsive while the smoother members damp noise, producing a trend estimate steadier than any single fast MA yet more responsive than any single slow one. Using eight diverse families (rather than eight EMAs) is what makes the blend meaningful — they disagree in different conditions, and that disagreement is itself information.
Agreement score. Because the eight averages are diverse, Plus also counts how many of them price is trading above. When most agree (e.g. 8/8) the trend is broad and well-supported; when they split (e.g. 5/8) the move is weaker or transitioning. The dashboard shows this as a percentage aligned with the current trend — a simple conviction gauge a single line can't give.
Direction. Trend is decided with an ATR band rather than a raw cross: it turns bullish only when price closes above the consensus by more than Flip band × ATR, bearish only when it closes the same distance below, and holds the previous trend in between. This deadband suppresses the constant flip-flopping of a plain price/MA cross in sideways markets. Triangles mark the exact flip bar, and the line and optional band are colored by trend.
Signal line & higher-timeframe filter. A signal line (an EMA of the consensus) can be shown for slope/cross context. Optionally, a higher-timeframe consensus must agree before a flip is allowed — so on a 1H chart you can require the daily consensus to also be bullish before a long flip prints.
How to use it
Use the consensus line as your trend reference and bias filter — favor longs while it's teal, shorts while it's red.
Read the Agreement % as conviction: high agreement supports staying with the trend; a falling score warns the move is losing breadth.
Enable higher-timeframe agreement to trade only with the larger trend and cut counter-trend signals.
Widen the Flip band on noisy instruments to reduce false flips; narrow it on clean trends for earlier turns. Increase Length for a slower bias; decrease it for a faster read.
Two built-in alerts fire on bullish and bearish flips.
Settings
Consensus — Source, Length (used by all eight MAs), ALMA offset/sigma.
Trend & signal — Flip band (× ATR) and the signal-line length.
Higher timeframe — require HTF agreement for flips, and the HTF to use.
Display — show/fill band, signal line, flip markers, bar coloring, dashboard.
Notes and limitations
This is a trend-following tool. Like all moving-average methods it lags at turning points and can flip late after sharp reversals; the ATR band trades some timing for fewer false signals.
The higher-timeframe consensus uses request.security with lookahead disabled, so it can update on the still-forming HTF bar until that bar closes. On-chart values are likewise evaluated on the current bar and can update in real time until the bar closes.
It does not predict price and makes no performance claims — use it as one input alongside your own analysis and risk management.
For research and education only. This is not financial advice. مؤشر

EMA Trend ProEMA Trend Pro
OVERVIEW
EMA Trend Pro is a dual moving-average trend tool with built-in confluence filters. It colors the trend, marks momentum shifts when the fast average crosses the slow one, and — unlike a plain moving-average cross — filters those signals through a higher-timeframe trend check and an ATR-based range check to cut down on false signals. A compact info panel keeps the current state visible at a glance.
HOW IT WORKS
The script builds two moving averages from a source of your choice, and you can select the averaging method (EMA, SMA, WMA, RMA, or VWMA):
• Fast MA (default 21) — reacts quickly to recent price.
• Slow MA (default 55) — represents the broader trend.
Their relationship defines the regime:
• Fast above slow → momentum aligned to the upside → bullish (green).
• Fast below slow → momentum aligned to the downside → bearish (red).
A moving average smooths price into a single line; an exponential MA weights recent bars more heavily so it tracks price faster than a simple average. Using two lengths separates short-term momentum (fast) from the prevailing trend (slow), and the point where they cross is a classic signal for a potential shift of control between buyers and sellers.
THE FILTERS (what makes this more than a plain cross)
A raw moving-average cross has two well-known weaknesses: it fires against the larger trend, and it whipsaws when the market is flat. EMA Trend Pro addresses both:
• Higher-timeframe (HTF) filter — the same two averages are also computed on a higher timeframe you choose. Long signals are only allowed when the HTF trend is up, and short signals only when it is down. This keeps you trading with the larger trend instead of against it. The HTF values are read without lookahead, so historical signals do not repaint.
• ATR separation filter — the Average True Range (ATR) measures how much price typically moves per bar. This filter ignores any cross where the two averages are closer together than a chosen multiple of ATR, which removes the low-conviction crosses that happen when the averages are tangled in a tight range.
Both filters are optional and independent, so you can run the tool as a simple cross, a trend-aligned system, or a strict range-aware system.
WHAT IT DRAWS
• Fast MA line, colored by the active trend (green / red).
• Slow MA line as a neutral reference.
• A fill between the two averages, tinted by direction — a wider gap means stronger separation.
• Optional background tint and optional bar coloring for the current regime.
• Triangle markers on the exact bar where a filtered signal occurs (up / down).
INFO PANEL
A small top-right table shows, at a glance:
• Trend — current lower-timeframe direction.
• HTF — the higher-timeframe direction and the timeframe used.
• Signal — LONG, SHORT, or none on the current bar.
HOW TO USE IT
• Trend bias: read green as a long bias and red as a short bias.
• Signals: the up / down triangles mark filtered momentum shifts. With the HTF filter on, they only appear in the direction of the larger trend.
• Reduce noise: enable the ATR separation filter, or raise its multiplier, to keep only stronger crosses.
• Tuning: shorter lengths give faster, more frequent signals; longer lengths give fewer, smoother ones. Try different MA types and a higher timeframe that suits your trading style (for example, a 4H filter for signals taken on lower timeframes).
SETTINGS
• MA type — averaging method (EMA / SMA / WMA / RMA / VWMA).
• Source — price series the averages are built from (default close).
• Fast length / Slow length — the two averages (defaults 21 / 55).
• Higher-timeframe filter + Higher timeframe — enable and choose the HTF trend check.
• Min separation filter + Min separation (× ATR) — enable and set the range filter.
• Trend fill / Trend background / Color bars by trend / Signal markers / Info panel — display toggles.
ALERTS
Four ready-made alerts: filtered Long and Short signals, plus Trend flip up and Trend flip down — so you can be notified on any symbol or timeframe.
NOTES & LIMITATIONS
Moving-average crosses are lagging by nature: they confirm a move after it has begun rather than predicting it. The filters reduce false signals but cannot remove them, and a higher-timeframe filter naturally produces fewer, later entries in exchange for better alignment. This tool is a visual aid for trend direction and momentum shifts — it is not a complete trading system and does not manage risk or position size. Always confirm with your own analysis.
Open-source — feel free to study, use, and build on it.
For research and educational purposes only. This is not financial advice. مؤشر

Minimalistic Po3 (M1D)Minimalistic Po3 (M1D)
Draws the current higher timeframe candle once to the right of price, so the accumulation, manipulation and distribution taking place inside it can be read against your execution chart without switching timeframes.
One candle only — the live one. It is rebuilt on every tick of the last bar and never left behind as history, so the chart never accumulates old projections. Four dotted reference lines carry its open, high, low and close back to the bar that opened it, and each price is named at the candle's right edge, so the levels that candle is building from are on your chart at the prices they actually sit at.
Why one candle
A higher-timeframe candle is a whole session of intent compressed into one shape. On a low timeframe that shape is what you are trading inside of, but you cannot see it — you either flip timeframes and lose your place, or you keep a second chart and split your attention. Drawing the one candle you are inside of, beside live price, puts that context on the chart you are already executing on. It is deliberately one candle and no history: a chart full of past projections is a chart you stop reading.
What it draws
THE CANDLE — the forming higher-timeframe candle, body and wick, projected clear of live price with an adjustable gap and width. Up and down bodies take their own colours and the outline and wick are drawn separately, so it reads cleanly on a light or a dark chart.
OPEN / HIGH / LOW / CLOSE LINES — one dotted line per price, running from the bar that opened the candle out to the drawn one. These are the levels the candle is dealing between while it forms.
OPEN DIVIDER — a dotted vertical at the bar that opened the candle, joining the high and low lines so the whole period reads as one zone. It can run the full height of the pane like a session divider, or stop at the candle's high and low.
PRICE TAGS — the four prices named at the right edge of the drawn candle, so you can read the level without hovering.
CONSOLE — the timeframe in use, the time left in the candle, and its range so far. It also tells you when nothing is being drawn and why.
How to use it
Pick the timeframe you take your bias from and leave it there — the candle is context, not a signal, and changing it mid-session changes the story you are reading.
The open line is the reference the period is being measured from: price above it and price below it are two different days. The high and low are the extremes taken so far, and the divider marks where the period began, so a sweep of one side and a return inside the body is visible as it happens rather than after the candle closes.
The countdown tells you how much of the period is left. The same displacement means something different with five hours to run than it does with ten minutes.
Settings worth knowing
Timeframe is 4H by default, with 15m, 1H, 4H, 1D and 1W available.
The chart timeframe must be below the chosen candle timeframe. If it is not, nothing is drawn and the console says so rather than leaving you looking at an empty chart wondering.
Gap from live price, candle width, body and outline colours, line colour, divider height, price tags, text size and console corner are all adjustable. Every element can be turned off on its own.
How it differs from a plain higher-timeframe overlay
The candle is built from your chart's own bars as they print, not requested as a finished higher-timeframe bar, so it is the candle in progress from the first bar of the load rather than the last closed one. Its levels are carried back to the bar that opened the period instead of only being drawn beside it, so they are usable as levels on the chart you are executing on. And it draws exactly one, always the live one, with no history retained.
Notes
The drawn candle is the FORMING one and updates live, which is the point of it — you are watching that timeframe build. Its history is not kept: this shows you the candle in progress, not a record of previous ones.
The countdown reads --:-- when there is no live tick to count against, such as a closed market.
Everything drawn is context. There are no entries, no exits, no directional calls and no performance claims.
This is a market-analysis tool, not financial advice. Past market behaviour does not indicate future results. Test any tool thoroughly and trade your own plan. مؤشر

Hourly Alpha Profile Terminal [The Quant Science]Hourly Alpha Profile Terminal is an advanced quantitative analysis tool developed for the TradingView platform, designed for traders operating on intraday timeframes up to 60 minutes. Its main goal is to unveil the hidden structure of price volatility and directionality on an hourly basis , focusing on a specific day of the week chosen by the user. Instead of relying on traditional momentum indicators, this script historically maps market behavior hour by hour, calculating win rates and risk intensity for all 24 hours of the day.
🔷 What It Does
The script performs real-time statistical and visual analysis directly on the chart through two dedicated quantitative terminals.
The Win Rate Profile Terminal divides the entire day into 24 hourly slots from 00:00 to 23:59, analyzes how many hourly cycles closed bullish compared to the total for the selected day of the week, and returns a success percentage win rate and an explicit directional bias of bullish, bearish, or neutral, accompanied by a visual progress bar.
The Volatility Profile Terminal calculates the logarithmically normalized standard deviation of hourly returns for each time slot, generating a volatility index and risk-based intensity bars to identify precisely which hour of the day experiences the most violent price movements as the peak risk slot.
🔷 How to Use It
To obtain correct data, the indicator requires an intraday timeframe less than or equal to 60 minutes, such as 1m, 5m, 15m, or 60m. If applied to daily, weekly, or higher charts, the terminal blocks execution and displays an error warning.
Add the script to your intraday chart on TradingView, open the indicator settings to select the day of the week you want to analyze, and observe the overlapping tables on the chart to identify hours with high win rates above 55% for trend opportunities or hours with extreme volatility for risk management.
🔷 What It Is Used For
Hourly Seasonality Analysis for discovering during which times of day a given asset historically shows a strong directional tendency.
Entry Timing Optimization for avoiding false breakouts during low-directionality or erratic risk hours and focusing on statistical high-probability slots.
Risk Management and Volatility Mapping for understanding when the market becomes more volatile to prevent excessive slippage or correctly position stop losses based on peak risk hours.
🔷 Who Uses It
Day Traders and Scalpers who need a statistical edge based on recurring market behaviors during trading sessions like the London or New York opens.
Quantitative and Systematic Traders looking to filter operational setups by integrating hourly probability matrices.
Market Analysts seeking an objective and visual reading of market microstructure without cluttering the chart with classic oscillators.
🔷 User Interface Management
Settings: Day to Analyze allows you to choose the day of the week to analyze from Monday to Sunday.
Win Rate Terminal Positio n allows you to position the probability table in your preferred corner of the screen using options like Top Right, Top Left, Bottom Right, Bottom Left, or Center.
Win Rate Terminal Size lets you adjust the text size inside the table to Small, Normal, or Large.
Volatility Terminal Position manages the screen position of the volatility table.
Volatility Terminal Size modifies the text size of the volatility table to fit any screen resolution.
🔷 To be used in combination with the Bias Detector Terminal
This script completes a suite consisting of two scripts:
🔹 Bias Detector Terminal used to find a day with a bias. For example, by analyzing Bitcoin on a Daily timeframe, we find a bias for Saturday.
👉 Bias Detector Terminal:
🔹 Hourly Alpha Profile Terminal let us dive deeper into the market and analyze the Saturday intraday session.
مؤشر

Session Killzones + Opening Range [verticetrading]SESSION KILLZONES + OPENING RANGE
The Session Killzones + Opening Range indicator draws the Asia, London and New York sessions as live boxes on the chart, highlights each session's opening range, and adds a "fuel gauge" that compares the session's developing range with the symbol's own recent sessions.
🔶 USAGE
Add the indicator to an intraday chart of a market that trades across sessions (gold, forex, crypto, index futures). Each active session appears as a shaded box with its name; the first minutes of the session are shaded darker as the opening range. When price closes beyond that range, an alert can fire.
🔹 Reading the fuel gauge
* The session label shows the current range as a percentage of the typical range of that session's last 20 instances, e.g. "London — range at 137% of typical".
* Below roughly 60% late in the session: a quiet session; breakouts tend to have less follow-through.
* Around 60-110%: a normal session.
* Above roughly 120%: the session has already travelled more than usual; late entries face a statistically stretched move.
* The gauge measures amplitude, not direction: a 137% session can be a straight trend or a range that ends where it started — the candles inside the box tell you which.
🔹 Alerts
* Session opened.
* Opening range broken up / broken down (confirmed close only).
🔶 DETAILS
Sessions are evaluated in the timezone you choose (New York by default, the usual anchor for FX and metals). For every session the script stores the final range of its last 20 instances and divides today's developing range by that average; the label appears once a few sessions of history exist. Since a range can only grow, the percentage rises during the session and never falls, so the same 40% means "slow, still has room" mid-session and "a quiet day" at the close. Opening-range breakouts are detected on confirmed closes only, so nothing repaints. The statistics describe the loaded history of the chart only.
🔶 SETTINGS
🔹 General
* Language / Idioma: interface language (English by default, Spanish available). Every setting, tooltip and alert has an English label.
* Sessions timezone: the timezone the session hours refer to (Exchange, UTC, New York, London, Central America, Mexico City, Madrid/Paris/Berlin, Tokyo).
* Opening range (minutes): length of the opening range, 30 by default.
🔹 Session: Asia / London / New York
* Show: toggles the session.
* Hours: the session's time window in the selected timezone (defaults 18:00-03:00, 03:00-11:30 and 08:00-17:00 New York time).
* Color: box and label color.
Educational tool, not financial advice. A news day can print 200%; the gauge tells you when the context deserves attention, not where price will go. Trading involves risk. مؤشر

Advanced Harmonic & RSI Reversal Scanner (Dual-Wave)Description:
Most harmonic indicators suffer from two fatal flaws: they clutter your chart with overlapping lines, and they blindly signal entries at Fibonacci levels without checking if the market is actually slowing down.
The Advanced Harmonic & RSI Reversal Scanner solves both problems. By combining precise Fibonacci geometry (to find the location of a reversal) with an RSI exhaustion filter (to time the exact moment of the reversal), this script prevents you from catching falling knives.
This is a clean, professional-grade scanner designed for traders who want high-probability setups without the chart spam.
🔥 Core Features
Dual ZigZag Engine: The script simultaneously scans a "Major" wave and a "Minor" wave. It prioritizes finding larger, macro setups first, but will automatically scale down to find minor setups if the broader trend is noisy.
Live Point D Tracking: Unlike standard scripts that wait for a pivot to be fully confirmed (which causes late entries), Point D dynamically tracks the live wick of the current candle. The Fibonacci ratios update in real-time as the candle moves into the Potential Reversal Zone (PRZ).
RSI Entry Confirmation: A pattern alone is not enough. The script will only fire a Bull ▲ or Bear ▼ entry signal if Point D forms and the RSI confirms momentum exhaustion (crossing over/under the oversold/overbought thresholds).
Dynamic Risk & Targets: Forget manual measuring. Upon an entry trigger, the script instantly calculates and plots your Take Profit and Stop Loss lines:
TP1: 38.2% retracement of the A-to-D leg.
TP2: 61.8% retracement of the A-to-D leg.
Risk (Stop Loss): Dynamically placed 20% beyond Point D's structural size, safely protecting you against deep extensions like Butterfly or Crab patterns.
Anti-Spam Charting: Built with a strict visual state-machine. When a live candle twitches, the script cleanly deletes and redraws its lines rather than overlapping them. Your chart remains crystal clear.
Smart History Stamping: Once a trade setup completes, the script permanently "stamps" the pattern and its target lines onto the chart so you can accurately backtest past performance.
📐 Supported Patterns
The scanner precisely calculates internal and external Fibonacci ratios to identify:
Gartley
Bat
Butterfly
Crab
AB=CD (Functions as a fallback priority if an XABCD structure is invalid)
💡 How to Trade with this Indicator
Wait for the Setup: Let the script map the X, A, B, and C yellow pivot nodes. Watch as it projects Point D.
Wait for the Trigger: Do not enter blindly. Wait for the colored "Bull ▲" or "Bear ▼" pill to appear. This means price has hit the PRZ and the RSI has hooked, signaling momentum is shifting.
Execute the Plan: Place your entry. Set your Stop Loss at the red Risk line.
Manage the Trade: Take partial profits or move your stop to breakeven when price hits the green TP1 line. Leave a runner for TP2. مؤشر

Pivot Channel TrendLines [BigBeluga]🔵 OVERVIEW
The Pivot Channel TrendLines is an advanced technical analysis indicator designed by BigBeluga to automatically map structural pivot points, project dynamic trendline channels, and track directional breakout signals directly on the chart. Traditional manual trendline drawing is often subjective and time-consuming, while standard indicators fail to account for slope progression and volatility filters. To solve this limitation, this script combines an automated pivot detection engine with ATR-filtered extension lines and real-time breakout triggers.
The indicator visualizes key market highs and lows, dotted projection channels, and directional signals. The core calculations identify confirmed pivot extremes using configurable lookback periods, compute slope values between successive pivots, and filter out insignificant structures using Average True Range thresholds. Customizable color palettes, line styles, and extension lengths allow traders to fine-tune the geometric mappings across various asset classes and timeframes.
🔵 HOW IT WORKS
The system operates through an integrated architecture where each component dynamically influences chart behavior:
1 — Automated Pivot Detection Engine
Lookback Scanning: Evaluates bar ranges using user-defined lookback criteria to identify significant swing highs and lows.
ATR Filtering: Compares successive pivot price differentials against Average True Range thresholds to ensure only meaningful structural shifts generate active channels.
2 — Dynamic Trendline Projection & Channels
Confirmed Trendlines: Connects historical pivot points with solid boundary lines to map ongoing trend channels.
Dotted Extensions: Projects sloping extension lines forward by a user-defined bar length to monitor future support and resistance interactions.
3 — Directional Breakout & Price Dash System
Breakout Triggers: Monitors active extension lines in real time, plotting directional labels ("Up" or "Down") whenever price closes beyond expected threshold boundaries.
Last Pivot Dashes: Renders customizable horizontal dashed or dotted lines alongside precise price level tags for the latest identified high and low pivots.
🔵 HOW TO USE
Apart from serving as an automated structural mapping tool, the indicator can be applied in several ways:
Identify Trend Channels: Follow the solid and dotted trendlines connecting major pivot highs and lows to track prevailing market direction and channel boundaries.
Catch Structural Breakouts: Monitor the chart for Up or Down directional labels indicating when price has successfully broken through active projected extension lines.
Track Recent Reference Prices: Use the last pivot price dashes to quickly reference key support and resistance boundaries established by the most recent market swings.
🔵 NOTES
Why this implementation is unique:
It automates complex pivot channel mapping and slope projections directly on the chart.
Features integrated ATR volatility filters to eliminate insignificant structural noise.
Fully optimized for high-performance rendering under Pine Script version 6 standards.
مؤشر

Master Line Lite: 5-MA ConsensusMaster Line Lite condenses five different moving-average families into a single, easy-to-read consensus trend line, then filters its direction with a volatility-aware band so the trend only changes when price commits. It's a clean, open-source alternative to stacking several moving averages on one chart.
How it works
Each moving-average type reacts to price differently. An EMA and a WMA weight recent bars heavily and turn quickly; an SMA weights every bar equally and turns slowly; an RMA (Wilder's) is the smoothest; and an HMA cuts lag while staying responsive. Any single one is a compromise — fast types whipsaw in chop, slow types lag at turns.
Master Line Lite computes all five over the same length and averages them into one line:
consensus = ( EMA + SMA + WMA + HMA + RMA ) / 5
Blending the five balances their individual biases: the fast members keep the line responsive while the slow members damp noise. That's the purpose of the combination — not to stack indicators, but to average out the weakness of each MA type into one steadier reference than a single fast MA, yet more responsive than a single slow one.
Direction is then decided with an ATR band instead of a raw cross. The trend turns bullish only when price closes above the line by more than Flip band × ATR, and bearish only when it closes the same distance below; between those thresholds the previous trend is held. This deadband is what suppresses the constant flip-flopping of a plain price/MA cross during sideways markets.
The line is colored by the current trend, an optional band shows the flip thresholds, and triangles mark the exact bar where the trend flips.
How to use it
Use the line as a trend reference and bias filter — favor longs while it's teal, shorts while it's red.
The triangles flag where the consensus trend changes — a "context has shifted" cue, not a standalone entry.
Widen the Flip band on noisy/ranging instruments to cut false flips; narrow it on clean trends for earlier turns.
Increase Length for a slower higher-timeframe bias; decrease it for a faster intraday read.
Two built-in alerts fire on bullish and bearish flips.
Settings
Source — price series the averages are built from (default: close).
Length — lookback used for all five moving averages.
Flip band (× ATR) — how far price must clear the line to change the trend; the core noise filter.
Show band — draw the upper/lower flip thresholds.
Color bars by trend — tint candles with the trend color.
Show status box — small top-right label with the current Bull / Bear / Flat state.
Notes and limitations
Like all moving-average methods, this lags at turning points and can flip late after sharp reversals — the ATR band trades some timing for fewer false signals. Values can update on the still-forming real-time bar until it closes. It does not predict price and makes no performance claims; use it as one input alongside your own analysis and risk management.
For research and education only. This is not financial advice. مؤشر

EMA Trend SignalsEMA Trend Signals
OVERVIEW
EMA Trend Signals is a clean, lightweight trend-following tool built around two exponential moving averages (EMAs). It colors the trend, highlights the space between the two averages, and marks the exact bars where the fast average crosses the slow one — giving an at-a-glance read on direction and momentum shifts without cluttering the chart.
HOW IT WORKS
The script calculates two EMAs from a source of your choice:
• Fast EMA (default 21) — reacts quickly to recent price.
• Slow EMA (default 55) — represents the broader trend.
The relationship between them defines the regime:
• Fast EMA above the slow EMA → momentum is aligned to the upside → bullish (green).
• Fast EMA below the slow EMA → momentum is aligned to the downside → bearish (red).
An EMA is a weighted average that gives more importance to recent bars, so it follows price faster than a simple moving average while still smoothing out noise. Using two lengths separates short-term momentum (fast) from the prevailing trend (slow); the point where they cross is a classic, widely used signal for a potential shift in control between buyers and sellers.
WHAT IT DRAWS
• Fast EMA line, colored by the active trend (green / red).
• Slow EMA line as a neutral reference.
• A soft fill between the two EMAs, tinted by direction — a wider gap means stronger separation.
• An optional light background tint showing the current regime.
• Triangle markers on the exact bar where a cross occurs (up / down).
HOW TO USE IT
• Trend bias: read green as a long bias and red as a short bias. Many traders only take positions in the direction of the color.
• Signals: the up-triangle (fast crosses above slow) and down-triangle (fast crosses below slow) mark momentum shifts. They perform best in trending conditions and will whipsaw in tight ranges — pair them with your own structure, key levels, or a higher-timeframe filter.
• Tuning: shorten the lengths for faster, more frequent signals; lengthen them for fewer, smoother ones. Change the Source input to apply the logic to hl2, hlc3, and so on.
ALERTS
Two ready-made alerts are included — "EMA Cross Up" and "EMA Cross Down" — so you can be notified the moment a cross happens on any symbol or timeframe.
SETTINGS
• Source — price series the EMAs are built from (default close).
• Fast EMA length — short-term average (default 21).
• Slow EMA length — trend average (default 55).
• Trend background — toggle the regime tint.
• Cross markers — toggle the triangle shapes.
NOTES & LIMITATIONS
Moving-average crosses are lagging by nature: they confirm a move after it has already begun rather than predicting it, and they can produce false signals in sideways markets. This tool is a visual aid for trend direction and momentum shifts — it is not a complete trading system and does not manage risk or position size. Always confirm with your own analysis.
Open-source — feel free to study, use, and build on it.
For research and educational purposes only. This is not financial advice. مؤشر

Multiday Anchored Auto VWAP by ByblloOVERVIEW
Multiday Anchored Auto VWAP plots up to 10 automatically anchored, rolling Volume Weighted Average Price (VWAP) lines - Rolling Day #0 (today) through Rolling Day #9 (9 days ago) - plus 5 fully independent manual VWAP lines you anchor to any date/time you choose.
Unlike anchored-VWAP tools that force a choice between automatic or manual mode, the 10 automatic Rolling Day lines and the 5 Manual Input lines here run completely independently and can be shown together - keep the last few rolling days visible for a short-term picture while also anchoring a Manual line to a specific earnings date or session open.
INTENDED USE
Well suited to short-term futures scalping - Nasdaq futures (NQ/MNQ) and similar instruments. Primarily used on the 1-minute chart, but the rolling VWAP levels hold up just as well on 2, 3, and 5-minute charts and other intraday timeframes, since the anchor logic is independent of your chart's timeframe.
FEATURES
- 10 automatic Rolling Day VWAP lines, each recalculated fresh from "now" every run (via timenow) - no hardcoded dates, so the lines never go stale or need republishing.
- 5 independent Manual Input VWAP lines with full date/time pickers, for anchoring to a specific event, earnings date, or session open.
- Single "Auto Mode Session Start Time (HHMM)" input applies to all 10 rolling lines at once - default 07:00 (Asia/Seoul), aligned with the Nasdaq futures (Globex) 18:00 ET session open during US Daylight Saving Time (shifts to 08:00 KST during US Standard Time - adjust as needed around the DST transition).
- Calendar-day based rolling (not trading-day based) for simple, predictable anchoring - see the author's companion script "Multiday VWAP by Bybllo" if you need trading-day-aware anchoring instead.
- Anchor-point safety guard prevents accumulation before each line's actual start, so no artificial spikes at the anchor bar.
- Optional anchor-start labels (#0-#9, M1-M5) marking exactly where each line begins.
- Works on any chart type (candlestick, Heikin Ashi, Renko, etc.) since prices are pulled via request.security() from the underlying ticker.
This script requires volume data from your data provider. For educational and informational purposes only, not financial advice. Always verify how these levels behave on your specific symbol and timeframe before relying on them for live trading. مؤشر

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。
本指標為視覺化與分析工具,不產生買賣建議,內容不構成投資建議。任何做法請自行驗證
後再投入資金。 مؤشر

SPMA Trend | NAL1. Overview
SPMA Trend | NAL is an adaptive trend and volatility framework built around the Shock Percentile Moving Average.
Unlike a conventional moving average that continuously follows price, the SPMA selectively updates when the current price change ranks above a configurable percentile of recent returns. This creates an event-driven baseline that places greater emphasis on stronger positive price shocks while holding its previous value during lower-ranked movement.
SPMA Trend expands this concept with adaptive volatility bands, asymmetric shock modeling, empirical quantile boundaries, and optional slope confirmation to form a complete directional regime model.
2. Core Calculation
The SPMA begins by ranking the current price change against its recent historical distribution.
Ret = close - close
Per = ta.percentrank(Ret, percentrank_lookback)
Gate = Per > percentile_gate
When the percentile gate is satisfied, the baseline updates to the current EMA value. Otherwise, it retains its previous level.
MA := na(MA ) ? emaValue : Gate ? emaValue : MA
This produces a persistent baseline whose movement is concentrated around stronger ranked price events rather than every fluctuation in price.
3. Adaptive Volatility Framework
SPMA Trend surrounds the baseline with a configurable volatility structure.
Five volatility models are available:
Standard Deviation — measures dispersion around the mean.
ATR — measures price-range volatility.
Mean Absolute Deviation — measures average absolute dispersion.
Median Absolute Deviation — provides a more robust measure of dispersion with reduced sensitivity to extreme observations.
Quantile — constructs the upper and lower boundaries from the empirical distribution of historical price deviations from the SPMA.
The Quantile model is inherently asymmetric. Positive and negative residuals are evaluated separately, allowing each side of the structure to reflect its own historical distribution.
residual = close - SPMA
= f_quantile_volatility(residual, VolLen, QuantilePct)
For the conventional volatility models, an optional asymmetric mode analyzes positive and negative log-return shocks independently. This allows upper and lower volatility expansion to respond differently when the distribution of market shocks becomes unbalanced.
The resulting volatility estimate is applied around the SPMA to create the final adaptive boundaries.
upperBand = SPMA + finalUpper * VolMul
lowerBand = SPMA - finalLower * VolMul
4. Signal Structure
The bullish regime is deliberately selective.
Price must break above the upper volatility boundary while the SPMA itself is rising. When enabled, the percentage slope of the SPMA must also exceed the configured slope threshold.
if SPMA > SPMA and close > upperBand and (UseSlope ? SlopeGate : true)
NAL := 1
A bearish regime is established when price moves below the lower adaptive boundary.
if close < lowerBand
NAL := -1
Between qualifying transitions, the previous directional state is retained. This converts individual volatility-band events into a persistent trend regime rather than a sequence of isolated crossover signals.
5. Key Features
Shock-percentile adaptive baseline.
Event-driven rather than continuously updating trend structure.
Five selectable volatility models.
Mean and median absolute-deviation volatility.
Empirical asymmetric residual quantiles.
Optional positive/negative shock-adjusted volatility bands.
Configurable SPMA slope confirmation.
Persistent bullish and bearish regime states.
Adaptive band, glow, fill, and candle visualization.
6. Use
SPMA Trend is designed as a specialized trend-regime component within a broader systematic framework.
The indicator combines three distinct layers of information: the significance of recent price movement determines when the baseline adapts, the volatility model determines how far price must expand from that structure, and the optional slope gate measures whether the underlying SPMA is developing with sufficient positive directional strength.
This creates a framework centered on identifying meaningful expansion away from an event-driven price structure rather than responding to every short-term movement.
Its primary value is as a distinct structural layer within a complete strategy architecture, where shock significance, volatility expansion, and directional development can be integrated with other independent forms of market information. مؤشر

CandelaCharts - RTH Gap📝 Overview
The CandelaCharts - RTH Gap indicator is a professional technical tool designed to automatically identify, track, and visualize Regular Trading Hours (RTH) gaps. By targeting the exact NY close (4:00 PM for equities/ETFs like SPY, or 4:15 PM for futures) and open (9:30 AM), this indicator precisely maps out the untraded price voids between sessions, providing crucial intraday support and resistance levels.
Unlike standard gap indicators that fail on RTH-only charts, this script uses robust day-change logic to detect session transitions flawlessly. Unfilled gaps extend indefinitely across the chart, while filled gaps can be kept on the chart to serve as historical support/resistance.
📦 Features
Exact RTH Logic: Automatically anchors session closings (16:00/16:15 NY time) and openings (09:30 NY time) to measure the exact RTH gap size, regardless of whether you have Extended Trading Hours (ETH) turned on or off.
Customizable Inner Levels: Break down gap zones into mathematically significant price levels:
Midline (50% Mean): Plots the exact middle of the gap, a highly respected level for intraday rejections.
Quadrants: Divides the gap into 25%, 50%, and 75% retracement levels.
OTE (Optimal Trade Entry): Plots the 0.618, 0.705, and 0.786 Fibonacci levels to find high-probability reversal zones.
Dynamic Labels: Displays dynamic price labels on the chart axis. When Inner Levels (OTE or Quadrants) are enabled, the top, bottom, and midline labels automatically update to show percentages/ratios (e.g. 100%, 50%, 0% or 0.0, 0.5, 1.0) rather than raw prices to keep the charts clean.
Post-Fill Extensions: When a gap is filled, the main box stops extending to mark where the mitigation happened. However, if enabled, the levels (Top, Bottom, Midline, and Inner Levels) will convert to dashed lines and continue to extend to the current candle as historical support/resistance.
Filter by Bias: Clean up your chart layout by choosing to display only Bullish gaps, Bearish gaps, or Both.
Historical Tracking: Keep the last N gaps visible on the chart for history and context.
⚙️ Settings
Session: Define the exact RTH Session hours (default is 09:30-16:00).
History: Define how many historical gaps to keep on the chart.
Gap Up / Gap Down: Toggle visibility and customize colors, fill transparency, and border styles.
Midline: Toggle the visibility of the gap's 50% midline, and customize its style and color.
Inner Levels: Toggle Quadrants or OTE subdivisions, and customize their styles and colors.
Show Labels: Toggle price/ratio axis labels.
Show Filled Gaps: When enabled, filled gaps turn gray and extend as dashed lines to the current candle. When disabled, filled gaps are completely removed from the chart.
Alerts: Toggle the ability for the indicator to fire programmatic alerts.
⚡️ Showcase
RTH Gap - Default View
RTH Gap - OTE Levels
RTH Gap - Quadrant Levels
🚨 Alerts
This indicator includes built-in alert conditions ensuring you never miss a critical gap test. Once "Enable Alerts" is checked in the settings, you can configure TradingView to notify you when:
An RTH Gap Up is fully filled.
An RTH Gap Down is fully filled.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
مؤشر

Bias Detector Terminal [The Quant Science]Bias Detector Terminal is a quantitative analysis tool designed to identify day-of-week statistical bias and seasonality. By calculating the historical frequency of bullish closes for each trading day, the terminal provides a clear picture of directional market probabilities.
🔷 What it does
The indicator analyzes daily price history to calculate:
Bullish Ratio: The number of bullish sessions (close > open) relative to total historical bars for each day of the week (Monday to Sunday).
Session Win Rate: The exact percentage of positive closes for every trading day.
Smart Bias Signals: Categorizes each session based on statistical thresholds:
🟢 : Win Rate >= 55%
🔴 : Win Rate <= 45%
⚪ : Win Rate between 45% and 55%
Visual Flow Profile: An inline progress bar for instant visual assessment of buy/sell pressure.
Composite Metrics: A summary row showing the cumulative baseline for all historical data analyzed.
🔷 How to use it
Chart Application: Add the script to the chart of your chosen asset (Stocks, Crypto, Forex, Indices).
Timeframe Setting: Make sure the chart is set to the Daily (1D/Daily) timeframe. The script includes a built-in check that will trigger an error if applied to lower timeframes.
🔷 Interface Customization
Through the indicator settings you can:
Change the console position on screen (Top Right, Top Left, Bottom Right, Bottom Left, Center).
Modify the terminal font size (Small, Normal, Large).
🔷 Use Cases
Weekly Operational Planning: Identify in advance which days of the week historically favor buyers or sellers from a statistical standpoint.
Confluence Filter: Avoid opening short positions on days with a historically high bullish win rate (and vice versa), raising the overall quality of your trade setups.
Seasonality Analysis: Determine if a specific asset exhibits recurring statistical patterns (e.g., Turnaround Tuesday or Friday weakness).
🔷 Target Audience
Quant & Systematic Traders: For those who base their decisions on statistical data rather than gut feeling.
Day Traders & Swing Traders: Useful for aligning intraday operations with the statistical trend of the current day.
Market Analysts: For those who want to integrate high-level visual reporting and quantitative metrics into their TradingView analysis.
مؤشر

Breakout Radar (TechnoBlooms)Breakout Radar (TechnoBlooms)
Compression • Pressure • Bias • Breakout Confirmation
A structure-first breakout analysis tool designed to identify when quiet price action is building toward a directional move.
Overview
Breakout Radar is a price-compression and breakout-pressure indicator developed by TechnoBlooms. Instead of simply marking every new high or low as a breakout, it first looks for a compressed market structure, measures the pressure developing inside that structure, identifies directional bias, and then waits for price to confirm a break beyond the locked range.
The objective is simple: help traders distinguish between ordinary sideways movement and a consolidation that may be preparing for expansion. The indicator is designed as a decision-support tool, not as an automatic buy/sell system.
What Makes Breakout Radar Different?
Compression first: The system searches for contraction in volatility and price structure before considering a breakout.
Locked structure boxes: Once a qualifying compression is detected, its boundaries are locked instead of continuously following price like a conventional range filter.
Bull vs Bear Pressure: The indicator evaluates how price is behaving near the upper and lower boundaries and converts that behaviour into separate Bull Pressure and Bear Pressure readings.
Pressure Delta and Bias: The difference between bullish and bearish pressure helps identify whether the structure is leaning BULLISH, BEARISH or remains NEUTRAL.
Progressive radar states: The setup develops through SCANNING, BUILDING, WATCH and ARMED states rather than jumping immediately to a signal.
Confirmed breakout: A breakout requires price to close beyond the locked structure with an ATR-based confirmation buffer.
Signal validity buffer: After confirmation, the latest breakout signal can remain valid through a normal retest and is removed only when its stored invalidation level is breached or a newer breakout replaces it.
Clean historical context: Completed compression structures remain faintly visible so traders can study how earlier consolidations resolved, while overlap filtering reduces unnecessary nested boxes.
How to Read the Dashboard
Dashboard Item Interpretation
Compression Measures how strongly the current market is contracting. Higher values indicate tighter compression relative to recent conditions.
Bull Pressure Measures bullish pressure developing inside the active structure.
Bear Pressure Measures bearish pressure developing inside the active structure.
Pressure Delta Bull Pressure minus Bear Pressure. A positive value favours bulls; a negative value favours bears.
Bias Summarises the current directional pressure as BULLISH, BEARISH or NEUTRAL.
Radar State SCANNING = no active setup; BUILDING = compression found; WATCH = pressure is becoming meaningful; ARMED = pressure and compression have reached stronger conditions.
Understanding the Radar States
SCANNING — The indicator is monitoring the market, but no qualifying compression structure is currently active.
BUILDING — A compression structure has been identified. Pressure is developing, but the setup is not yet strong enough to demand close attention.
WATCH — Pressure has strengthened. Traders may begin watching the box boundaries and directional bias more closely.
ARMED — Compression and directional pressure have reached stronger conditions. This does not mean a breakout has already happened; it means the structure deserves heightened attention.
How the Breakout Signal Works
A bullish breakout is considered confirmed when price closes above the locked upper boundary plus the configured ATR confirmation buffer and bullish pressure is stronger than bearish pressure. A bearish breakout uses the opposite logic below the lower boundary.
Only the latest relevant breakout arrow is retained. The arrow is intentionally small so the chart remains focused on structure rather than becoming filled with historical signal markers.
The signal is not automatically removed after a fixed number of candles. At the moment of confirmation, Breakout Radar stores an ATR-based invalidation level. This allows price to perform a normal retest without immediately cancelling the breakout. The signal disappears when the breakout is invalidated or when a newer confirmed breakout replaces it.
Example 1 — Bullish Compression Breakout
Assume a stock trades sideways between ₹980 and ₹1,000 while volatility contracts. Breakout Radar identifies the compression and locks a box around the structure. As price repeatedly tests the upper portion of the box, Bull Pressure rises from 48 to 64 and then to 78, while Bear Pressure remains near 42.
The dashboard may progress from BUILDING → WATCH → ARMED with a BULLISH bias. If price subsequently closes above the upper boundary plus the breakout confirmation buffer, a small bullish arrow appears. A minor pullback toward the breakout area does not automatically remove the signal; it remains valid until the stored bullish invalidation level is breached.
Example 2 — Bearish Compression Breakout
Imagine an index consolidating between 24,800 and 25,000. During the consolidation, repeated pressure develops near the lower boundary. Bear Pressure increases to 81 while Bull Pressure falls to 51, producing a negative Pressure Delta and a BEARISH bias.
Once price closes below the locked lower boundary with the required ATR buffer, the bearish breakout is confirmed and a small downward arrow appears. The completed compression box remains on the chart as historical context while the Radar is free to scan independently for the next compression structure.
Example 3 — Why ARMED Is Not the Same as BUY or SELL
Suppose Compression is 76, Bull Pressure is 80 and Bear Pressure is 49. The Radar can show ARMED with a BULLISH bias even though price is still inside the box. This is an early-warning condition, not a trade confirmation. If price fails to break the upper boundary and pressure weakens, the setup can remain inside the structure or change bias. The breakout arrow appears only after the actual confirmation condition is met.
Reading the Boxes
The rectangles represent detected compression structures. The active structure is used for live pressure and breakout analysis. After a breakout, the completed box can remain lightly visible to show where the expansion originated. An overlap filter is used to reduce repeated boxes representing substantially the same price structure.
How Breakout Radar Compares with Other Popular Tools
Breakout Radar shares some visual ideas with range filters, order blocks, and support/resistance tools because all of them study how price behaves around important areas. The similarity, however, is mainly in the chart structure. Breakout Radar is built for a different question: is the market compressing, which side is applying more pressure, and has that compression actually expanded into a confirmed breakout?
Tool Main Purpose Similarity Key Difference
Range Filter Smooth price noise and identify directional movement or a filtered trading range. Both may show boundaries around price and can help traders recognise a transition from sideways movement to expansion. A range filter usually moves or recalculates with price. Breakout Radar first detects compression, locks the structure, measures Bull/Bear Pressure inside it, and waits for a buffered close outside the box.
Order Block Mark price areas associated with prior institutional-style supply/demand concepts or displacement. Both can leave historical zones on the chart and both may become areas traders watch during later price interaction. Breakout Radar does not claim to identify institutional orders or actual order flow. Its boxes represent measured compression structures, not order blocks. Direction is assessed from price behaviour and pressure within the compression.
Support & Resistance Identify levels or zones where price has previously reacted, stalled, reversed, or broken. The top and bottom of a Breakout Radar box naturally act as temporary resistance and support while the compression remains active. Traditional S&R starts with reaction levels. Breakout Radar starts with volatility/structure compression and then adds pressure, bias, state progression and breakout confirmation.
Breakout Radar Identify compressed structures, measure directional pressure, and confirm expansion beyond a locked range. Uses price boundaries just as many classical technical tools do. Combines compression scoring, locked boxes, Bull/Bear Pressure, Pressure Delta, Bias, BUILDING/WATCH/ARMED states, ATR breakout confirmation and signal invalidation in one workflow.
1. Breakout Radar vs Range Filter
The closest visual comparison is a range filter because both can make consolidation and directional movement easy to see. But Breakout Radar is not designed to continuously filter price. Once a qualifying compression is found, the box is locked. The indicator then studies what is happening inside that fixed structure. A trader can therefore see whether pressure is building toward the upper boundary, the lower boundary, or neither.
Example: price may remain inside a ₹500-₹510 box while Bull Pressure rises from 52 to 79. A conventional range filter may simply continue tracking the range or trend. Breakout Radar can move from BUILDING to WATCH to ARMED while the price is still inside the box, and only confirms the bullish breakout after a close above the upper boundary plus the ATR confirmation buffer.
2. Breakout Radar vs Order Blocks
An order-block indicator normally attempts to identify a zone associated with an earlier impulsive move and treats that area as a possible future supply or demand zone. Breakout Radar does something different: the rectangle is created because the current market has compressed, not because the script is labelling an institutional order area.
The historical boxes may therefore look superficially similar to order-block zones, but their meaning is different. A green completed Breakout Radar box means a compression structure eventually resolved upward; a red completed box means it resolved downward. It should not be interpreted as proof that institutional buying or selling occurred inside that box.
3. Breakout Radar vs Support & Resistance
Support and resistance are still relevant to Breakout Radar. In fact, the lower and upper boundaries of an active compression naturally behave like short-term support and resistance. The difference is that those boundaries are only one layer of the analysis.
Breakout Radar also asks whether volatility is compressed, how frequently price is pressuring each boundary, where price is persisting inside the structure, whether the internal structure is squeezing in one direction, and whether the final candle behaviour supports that direction. These components feed the Bull Pressure, Bear Pressure, Pressure Delta and Bias readings.
Where They Can Be Used Together
These tools do not have to compete with one another. A trader may use higher-timeframe support/resistance or a separately identified order-block area for context, then use Breakout Radar on the execution timeframe to see whether price is compressing near that area and whether directional pressure is developing. Likewise, a range or trend tool can provide broader directional context while Breakout Radar focuses specifically on the compression-to-expansion phase.
A Simple Way to Remember the Difference
• Range Filter asks: Where is filtered price/trend moving?
• Order Block asks: Where is a previously significant supply/demand-style zone?
• Support & Resistance asks: Where has price reacted or may react again?
• Breakout Radar asks: Is price compressing now, which side is building pressure, and has expansion been confirmed?
This distinction is central to the TechnoBlooms concept: the box itself is not the signal. The information comes from the evolution of compression, pressure, bias and eventual breakout confirmation.
Suggested Workflow
1. Look for an active compression box rather than chasing price after an extended move.
2. Check whether the Radar is BUILDING, WATCH or ARMED.
3. Compare Bull Pressure and Bear Pressure, then confirm the Pressure Delta and Bias.
4. Treat ARMED as preparation, not confirmation.
5. Wait for a confirmed close beyond the relevant box boundary and confirmation buffer.
6. Use the breakout invalidation level together with your own risk-management process.
7. Confirm higher-timeframe structure, liquidity, market context and event risk before acting.
Important Notes
Breakout Radar does not predict that every compression will produce a successful breakout. Markets can generate false breaks, gaps, news-driven moves and rapid reversals. Pressure readings are analytical measurements derived from price behaviour; they are not exchange order-flow data.
The indicator does not provide profit targets or broker execution. This is intentional: Breakout Radar focuses on identifying compression, directional pressure, breakout confirmation and subsequent validity.
Recommended Markets & Timeframes
The concept can be applied to liquid equities, indices, futures, forex, commodities and crypto. Because volatility characteristics differ by instrument and timeframe, users should validate the default settings on the market they trade. Lower timeframes generally produce more setups and more noise; higher timeframes generally produce fewer but broader structures.
Alerts
Breakout Radar supports alert conditions for bullish ARMED, bearish ARMED, bullish breakout confirmation and bearish breakout confirmation. For live use, traders should configure TradingView alerts according to their preferred symbol, timeframe and confirmation workflow.
TradingView-Ready Short Description
Breakout Radar (TechnoBlooms) is a structure-first compression and breakout-pressure indicator designed to identify when a quiet market may be preparing for expansion. It combines volatility compression, locked price structures, Bull/Bear Pressure, Pressure Delta and directional Bias with progressive SCANNING → BUILDING → WATCH → ARMED states. Breakouts are confirmed only after price closes beyond the locked structure with an ATR-based buffer. The latest breakout signal remains visible while structurally valid, while completed compression boxes provide clean historical context. Breakout Radar is designed as a decision-support and market-structure tool rather than a standalone buy/sell system.
Disclaimer
For educational and analytical purposes only. This indicator does not constitute investment advice, a recommendation, or a guarantee of future performance. Trading and investing involve risk. Users should perform their own analysis and apply appropriate risk management before making trading decisions.
مؤشر

IQR Risk-to-Reward & Dynamic Targets [MantisAlgo]IQR Risk-to-Reward & Dynamic Targets combines empirical quartile statistics with structural liquidity analysis to identify setups with favorable market-derived risk-to-reward. Instead of assigning arbitrary profit targets such as fixed 2× risk multiples, the indicator divides recent price action into Q1 (25th percentile), Q2 (Median), and Q3 (75th percentile), together with 1.5×IQR statistical outlier boundaries.
These statistical value zones are combined with opposing swing liquidity to calculate the available True Risk-to-Reward Ratio before a setup is displayed. Each qualified setup automatically projects Entry, Structural Stop Loss, Take Profit 1, Take Profit 2, and the resulting True R:R directly on the chart.
🟢 IQR FAIR VALUE STRUCTURE
The Interquartile Range represents the middle 50% of the recent price distribution:
IQR = Q3 − Q1
Q1 = 25th Percentile
Q2 = 50th Percentile (Median)
Q3 = 75th Percentile
When price remains primarily between Q1 and Q3, the market is trading inside its recent statistical value region and tends to rotate around the Median. When price extends beyond an outer quartile or IQR outlier region and subsequently reclaims the Median Wave, the indicator evaluates whether sufficient structural space exists for a move toward opposing liquidity.
This creates two broad market conditions:
• Equilibrium / Mean-Reversion — Price remains within the Q1–Q3 value region and rotates around the Median.
• Expansion / Reclaim — Price extends outside statistical value, then reclaims the Median with sufficient space toward opposing liquidity.
🟢 SIGNALS & TRUE R:R GATE
The core trigger follows a simple sweep-and-reclaim sequence.
For a Long setup, price must first sweep or touch the Lower IQR Band within the recent bars. The signal is then evaluated when price crosses back above the Median Wave and the reclaim candle closes above it.
For a Short setup, price must first sweep or touch the Upper IQR Band. The signal is evaluated when price subsequently crosses back below the Median Wave and the reclaim candle closes below it.
Long: Lower Band Sweep → Median Reclaim → Confirmed Close
Short: Upper Band Sweep → Median Reclaim → Confirmed Close
The reclaim candle becomes the Entry only when volume is sufficiently active, the signal cooldown has been satisfied, and the available True R:R meets or exceeds the selected minimum threshold.
True R:R = Target Distance / Invalidation Distance
Target Distance = |TP2 − Entry|
Invalidation Distance = |Entry − SL|
If True R:R is below the selected threshold, the setup is suppressed. If it meets or exceeds the threshold, the trigger triangle and complete Entry / SL / TP1 / TP2 structure are displayed.
🟢 DYNAMIC TARGET STRUCTURE
Each qualified setup contains four objective levels:
Entry — The exact closing price of the confirmed trigger candle.
Stop Loss — The structural extreme associated with the preceding sweep. For Long setups, the relevant sweep low is used; for Short setups, the relevant sweep high is used. A break beyond this level invalidates the setup structure.
Take Profit 1 — TP1 is based on the opposing quartile boundary: Q3 for Long setups and Q1 for Short setups. It represents the first statistical mean-reversion objective.
Take Profit 2 — TP2 is based on opposing structural liquidity: swing-high liquidity for Long setups and swing-low liquidity for Short setups. Because TP2 is derived from actual chart structure rather than a predetermined fixed multiple, the resulting True R:R changes naturally from setup to setup.
🟢 IQR OUTLIER FENCES
The indicator also calculates traditional Box Plot outlier boundaries:
Lower Fence = Q1 − (1.5 × IQR)
Upper Fence = Q3 + (1.5 × IQR)
These boundaries identify price observations that are unusually extended relative to the recent rolling distribution and provide additional context for statistical sweeps.
🟢 DYNAMIC MEDIAN WAVE
The central Median Wave is based on Q2 and smoothed using a two-pole SuperSmoother-style digital filter. Its purpose is to reduce short-term noise while remaining responsive to directional changes. The wave changes visual state according to its directional slope and acts as the primary reclaim reference for potential setups.
🟢 STATISTICAL BOX-PLOT PIVOTS
Confirmed structural swing pivots can display compact Box Plot brackets directly on the chart. Each bracket visualizes the local Q1 Lower Quartile, Q2 Median, Q3 Upper Quartile, and IQR outlier boundaries, making it easier to compare structural turning points with the surrounding statistical distribution.
🟢 STATISTICAL HUD
The optional top-right HUD provides a compact summary of the current statistical and structural state, allowing users to review the active distribution, directional context, and setup information without manually inspecting every plotted level.
🟢 SETTINGS
Quartile Sample Window — 34: Controls the rolling observation window used to calculate Q1, Q2, and Q3.
Outlier Whisker Multiplier — 1.5: Controls the IQR multiplier used to define the statistical outlier fences.
Structural Liquidity Lookback — 20: Controls the search window used to identify opposing swing liquidity for TP2.
Minimum True R:R Ratio — 2.0: Defines the minimum required target distance relative to structural risk. Higher values produce fewer but more selective setups.
Signal Cooldown — 6: Controls the minimum separation between consecutive signals.
Visual Settings: Show IQR Fair Value Cloud, Show Statistical Box-Plot Pins, Show Signal Trigger Triangles, Show Target Projection Rays, Max Historical Setups to Display, and Show Statistical HUD Dashboard.
🟢 INTERPRETATION
The indicator combines three elements: Statistical Location, Structural Invalidation, and Available Target Space. It does not assume that every statistical extreme will reverse or that every liquidity target will be reached.
Instead, it evaluates whether a confirmed statistical reclaim has enough remaining structural space relative to its invalidation risk to satisfy the selected True R:R requirement. The goal is to make signal timing, structural risk, and available market space directly visible on the chart rather than attaching arbitrary target multiples after a signal appears.
🟢 DISCLAIMER
This indicator is designed for technical analysis, quantitative research, and educational purposes only. It does not constitute financial advice. Historical statistical relationships do not guarantee future outcomes. Always apply appropriate risk management and position sizing. مؤشر

مؤشر

Geometrics - Elliott Wave Auto Counter (Impulse, ABC, Triangles)Overview
The Geometrics - Elliott Wave Auto Counter is an advanced, fully automated technical analysis tool designed to identify and plot Elliott Wave structures directly on your chart. Built strictly around the three cardinal rules of Elliott Wave Theory, this indicator takes the heavy lifting out of wave counting by dynamically tracking pivot points and projecting geometric structures in real-time.
Whether you are tracking standard motive waves, complex diagonals, or corrective structures, this script provides a clear, visual roadmap of potential market cycles.
Key Features
Impulse Waves (1-2-3-4-5): Automatically identifies valid 5-wave impulse structures. It ensures that Wave 2 does not retrace 100% of Wave 1, Wave 3 is never the shortest, and Wave 4 does not enter the price territory of Wave 1. It also calculates and displays the exact Fibonacci retracement and extension percentages on the chart.
Leading & Ending Diagonals: Detects diagonal wedge structures where Wave 4 is permitted to overlap Wave 1. The script even dives into the inner wave structures to classify whether the diagonal follows a 5-3-5-3-5 or 3-3-3-3-3 pattern.
Corrective Waves (A-B-C): Once a 5-wave sequence is completed, the script actively looks for and plots the subsequent A-B-C corrective structure.
Triangle Detection: Identifies both Contracting and Expanding triangles (A-B-C-D-E). It automatically draws the upper and lower boundary lines and projects geometric breakout targets based on the width of the initial A-B leg.
Dynamic Target Projections: Takes the guesswork out of taking profits. The script projects forward-looking target boxes for:
Wave 3 (161.8% - 261.8% of Wave 1)
Wave 5 (61.8% - 100% of Waves 0-3)
A-B-C Corrections (38.2% - 61.8% retracement of the entire 1-5 structure)
Smart Invalidation & Automatic Alt-Counts: This is a standout feature. The script plots a strict invalidation line at the start of the wave (Point 0). If the price action breaks this level, the current count is instantly marked as invalid. The script will then automatically scan historical pivot windows to find and plot a valid Alternative Count (Alt Count) and its new targets.
Customization & Settings
The indicator is highly modular. Via the settings panel, users can:
Adjust the Timeframe and Pivot Length to fine-tune the sensitivity of the ZigZag tracking.
Toggle specific structures on or off (e.g., hide Triangles if you only want to see Impulses).
Fully customize the colors and styling of lines, labels, and target boxes to fit your personal chart theme.
⚠️ Important Disclaimer
This script is a geometric counting tool based strictly on the three rigid, textbook rules of Elliott Wave. As seasoned practitioners know, real-world wave counting is highly subjective and context-dependent. Multiple valid interpretations of a chart can exist simultaneously. This indicator does not cover every possible sub-classification (like expanded/running flats or complex WXYXZ combinations) and should be used as an analytical aid alongside your own market analysis, not as a standalone buy/sell signal. مؤشر
