Edo Order BlocksEdo Order Blocks — Displacement-Detected Order Blocks Scored 0-100, with Active / Tested / Mitigated States and a Strongest-Block Panel
An order block is the last opposite candle before an impulse that breaks away from a level — the last bearish candle before a sharp move up, or the last bullish candle before a sharp move down. In the Smart Money Concepts approach, that candle marks a zone where institutional activity was left unfilled, so when price returns to it, it becomes a natural reference of supply or demand. The problem with most order block tools is that they draw every zone, cluttering the chart with references that never mattered. Edo Order Blocks takes the opposite approach: it scores each zone and draws only the ones that earn it.
Edo Order Blocks detects order blocks by displacement, scores each one from 0 to 100 on objective quality factors, filters out the weak ones, and tracks every surviving zone through its full life — from Active to Tested to Mitigated. Everything is validated on closed bars, so the indicator does not repaint. It is the order-block specialist of the Edolab structure family, designed to pair with Edo Smart Money Map, which maps the BOS / CHoCH structure around these zones.
DISPLACEMENT DETECTION
A new order block is triggered by a displacement: a confirmed candle that closes beyond the highest high (bullish) or lowest low (bearish) of the last N bars, in the direction of its own body. The Displacement Lookback input (10 by default) sets how many bars define that range. This impulse-based trigger captures the moment price breaks away with conviction, which is precisely when an order block is left behind. From the impulse, the indicator looks back up to the Origin Lookback (15 by default) to find the last opposite candle — the origin of the move — and draws the zone between its high and low.
THE QUALITY SCORE
Every candidate order block is scored from 0 to 100 before it is drawn, combining four objective factors: body strength (the candle's body relative to ATR), volume strength (volume relative to its 20-period average), displacement strength (how far the close pushed beyond the range, in ATR units), and trend alignment (whether the block sits on the right side of the EMA 50). Body and volume weigh 30% each, displacement and trend alignment 20% each. The Minimum Score input (40 by default) acts as a filter: only blocks that score at or above it ever reach the chart. Raise it to keep only the highest-conviction zones; lower it to see more. The score is printed on each block's label, so its quality is visible at a glance.
ORDER BLOCKS AND THEIR LIFE
Each drawn zone is a box between the high and low of the origin candle, labelled Bull OB or Bear OB with its score, extended to the right as a live reference. To keep the chart clean, only the most recent blocks per side are kept, up to Max Order Blocks per side (8 by default); older ones are removed as new ones appear.
THREE STATES: ACTIVE, TESTED, MITIGATED
Unlike a simple active/used flag, Edo Order Blocks tracks three states, evaluated on every closed bar. Active: a fresh zone price has not touched since creation — a solid box extending to the right. Tested: price has tapped the zone but not closed through it — the border turns solid and bold, marking that the zone has been challenged and held. Mitigated: price has closed through the zone — the box turns dashed, fades and stops extending, recording that the zone has been consumed. The Touch Mode input decides what counts as a test: Wick (default) marks it as soon as a wick reaches the zone, while Close requires a candle to close inside it. A bullish block is mitigated when price closes below its base; a bearish block, when price closes above its top. Each transition fires its own alert.
INFORMATION PANEL
The panel condenses the read into a compact table. It shows the number of active order blocks on each side, the Strongest OB — the highest-scoring active block, with its side, score and price level — and the active Minimum Score filter. The Strongest OB row is the quickest way to find the single zone the indicator rates highest right now. The panel sits in any of the four chart corners (Top Right by default), comes in three sizes (Tiny / Small / Normal) and two themes (Dark / Light), and can be hidden entirely.
NO REPAINTING
Displacement is validated on closed bars only, using the highest/lowest of completed candles offset by one bar, so a zone never appears or disappears intrabar. A wick that pierces a level but closes back inside generates nothing — the indicator waits for the close. This removes the false zones that clutter tools which react instantly, at the cost of confirming each block once the impulse has completed. There are no higher-timeframe functions: all logic runs on the current chart timeframe.
CONFIGURATION
The inputs are grouped by block. Detection sets the displacement lookback, the origin lookback and the minimum score. Order Blocks sets the maximum per side and the touch mode (Wick / Close). Style exposes the bull and bear colours, the zone opacity, whether the score is shown on the label, the label size and the Dark/Light theme. Panel controls panel visibility, position and size. The defaults are calibrated to work without adjustment on stocks, crypto, forex, indices and futures, on any timeframe — the only input most users tune is the Minimum Score, to make the indicator more or less selective.
ALERTS
Six predefined alerts cover the full life of a zone: New Bull OB and New Bear OB fire when a fresh order block above the score threshold is created; Bull OB Tested and Bear OB Tested fire when price first taps a zone; and Bull OB Mitigated and Bear OB Mitigated fire when price closes through a zone and consumes it. The new-block alerts flag fresh references, the tested alerts fire exactly when a zone is challenged, and the mitigation alerts mark when a reference is spent. All alerts fire on bar close, consistent with the indicator's anti-repaint validation.
HOW TO READ IT
A clean reading uses the score and the states together. High-score zones are the references worth watching: a Bull OB scored 80 sits on a strong-bodied, high-volume, trend-aligned impulse, a far more reliable demand zone than one scored 45. Watch the Active-to-Tested transition: when price returns to an active block and taps it, the zone is being challenged — the bold border marks the moment of reaction. A Tested block that holds and sends price away keeps its relevance; a Mitigated one has been consumed and steps aside. The Strongest OB panel row points to the single best active zone at any time, and pairing Edo Order Blocks with Edo Smart Money Map places these scored zones inside the broader BOS / CHoCH structure for full context.
OPEN SOURCE
Edo Order Blocks is published as a free open source indicator. The full Pine Script is publicly accessible on TradingView for study, adaptation and integration into any workflow. Part of the Edolab Markets free tools ecosystem alongside Edo Smart Money Map, Edo Liquidity Zones, Edo ZigZag Auto Fib SR, Edo Multi Stoch and more available on TradingView.
This indicator is a technical analysis tool for educational and informational purposes only. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading financial markets involves significant risk of capital loss. Past performance does not guarantee future results. Always use proper risk management.
Indicator

Event Probability Engine [Quantum Algo]Event Probability Engine
====================================================
🔶 OVERVIEW
Event Probability Engine is a statistical probability indicator that answers one question at the close of every bar: based on the measurable conditions active right now, what is the historical probability that price closes higher one, three, and five days from today? Instead of subjective pattern reading, the script builds and maintains a live rolling database of forward returns conditioned on eighteen observable market events — day-of-week seasonality, oversold and overbought readings, volume spikes, streaks, range position, volatility regime, pivot touches, and an optional lunar control — then pools the currently active events into a single composite probability, displayed as a TODAY headline, a full per-event statistics table, and a shaded forecast cone projected on the chart.
It is designed for the daily timeframe. On other timeframes, the one, three, and five day horizons become one, three, and five bars.
🔶 WHAT IS AN EVENT STUDY?
An event study measures what a market historically did after a defined, observable condition occurred — for example, what happened over the next five days every time the Relative Strength Index closed oversold, or every Monday, or every time volume spiked two standard deviations above normal. This indicator runs eighteen such studies continuously, in real time, on the chart's own data, and keeps every study honest with the statistical safeguards described below.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. A live event database in Pine. Each of the eighteen events maintains its own rolling, capped sample of forward returns at three horizons, tagged with the market regime at the moment the event fired — a self-updating event-study framework, not a fixed backtest.
2. Shrinkage estimation. Every win rate is pulled toward fifty percent by a configurable number of pseudo-samples. An event with fifteen samples cannot display an extreme probability, because fifteen samples cannot justify one.
3. Overlap correction. State-based events (for example, an oversold reading persisting for a week) generate autocorrelated, overlapping samples that inflate apparent sample size. The effective sample size is deflated by the horizon length before any confidence calculation.
4. Wilson score bounds. Next to each five-day win rate, the table shows the Wilson confidence lower bound computed on the corrected sample size — the number an event must clear before its edge deserves trust, not its raw point estimate.
5. Regime conditioning with fallback. When enough samples exist in the current regime (bull or bear, defined by the two-hundred period exponential moving average), statistics are computed on regime-matched samples only, marked ® in the table. A bear-market Thursday is not assumed to behave like a bull-market Thursday.
6. Quality-weighted log-odds pooling. Active events are combined by weighted log-odds — a method related to Bayesian evidence combination — rather than naive win-rate averaging, so one strong, well-sampled edge is not diluted by three weak ones.
7. A built-in falsification control. Lunar phase events are included deliberately so the engine can audit a popular claim empirically: if full and new moons carry no edge, their quality scores sit near zero and they contribute nothing to the composite. A probability framework should be able to demonstrate which inputs fail, not only which appear to work.
🔶 HOW IT WORKS
Event detection: On every bar close the script evaluates all eighteen conditions — Monday through Friday, adaptive or fixed oversold and overbought thresholds, volume z-score spikes, up and down streaks, range-low and range-high position, volatility expansion and compression by percentile rank, confirmed pivot support and resistance touches within an Average True Range distance, and the optional lunar events.
Database recording: Whenever an event was active one, three, or five bars ago, the realized forward return is stored in that event's arrays, first-in-first-out at a configurable cap, together with the regime tag from the moment the event fired.
Per-event statistics: The table reports, for every event, the shrinkage-adjusted win rate at each horizon, the Wilson lower bound, sample count, average forward return, profit factor, a zero-to-one-hundred quality score blending edge magnitude, sample sufficiency, and recent consistency, and the resulting directional bias.
Composite probability: Active events passing the minimum-sample filter are pooled by quality-weighted log-odds into the TODAY headline (next-day probability of an up close with a visual meter), the one, three, and five day composite row with expected returns and a strength grade, and a projected forecast path with a shaded plus-and-minus one standard deviation cone drawn from the current close.
Chart layer: Optional regime background tint, the regime line, live pivot support and resistance rails with prices, and historical event markers on the candles so past occurrences of every event can be reviewed directly on the chart.
🔶 HOW TO USE IT
1. Apply it to a daily chart of any liquid symbol — cryptocurrency, stocks, indices, forex, gold, futures. Let it load its history; sample counts grow with available bars.
2. Read the TODAY headline first: the next-day probability, the meter, and the expected one-day return.
3. Scan the table for the highlighted rows — those events are active right now. Judge each by its Wilson lower bound and quality score, not the raw win rate.
4. Use the composite row and forecast cone as context: STRONG requires both a meaningful probability distance from fifty percent and high average quality.
5. Treat readings near fifty percent as exactly what they are: weak evidence. This engine is intentionally built to display small honest numbers rather than large misleading ones.
6. Combine with your own analysis — the engine measures conditional history; it does not know tomorrow's news.
🔶 SETTINGS
- Database: sample cap per event, minimum samples for composite inclusion, minimum regime-matched samples, shrinkage strength.
- Events: oscillator length and thresholds (fixed or adaptive percentile), volume z-score, streak length, range lookback, pivot lookback and touch distance, lunar events on or off.
- Statistics: Wilson z-score (default 1.645, a ninety percent one-sided bound).
- Display: dashboard position and five text sizes, forecast cone, regime tint, regime line, pivot rails, candle markers.
🔶 ALERTS
- Composite Bias Change — fires once per bar close whenever the five-day composite bias flips state, with the current one-day and five-day probabilities in the message.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? Statistics are recorded and evaluated on closed bars, and pivot events use confirmed pivots with their standard confirmation lag. The dashboard and forecast update on the live bar by design, as a dashboard should.
Why do most probabilities sit near fifty percent? Because genuine conditional edges in daily data are small, and the shrinkage and overlap corrections are built to say so. Extreme displayed probabilities on thin samples are the signature of a dishonest tool.
What does the ® mark mean? That event currently has enough regime-matched samples, so its statistics are computed only from the current bull or bear regime rather than the full history.
Why are moon phases in a statistics tool? As a falsification control. The engine should be able to show which inputs carry no edge — and the user can watch it do exactly that.
Can I use it intraday? Yes, but the horizons become bars instead of days, and day-of-week events lose their meaning. The design intent is the daily timeframe.
🔶 CREDITS
This script stands on standard, publicly documented statistical methods, gratefully credited: the Wilson score interval by Edwin B. Wilson (1927), Laplace-style shrinkage estimation, and the event-study methodology long established in quantitative finance. Their combination into a live, regime-conditional, overlap-corrected event database with quality-weighted log-odds composite pooling, implemented entirely in Pine Script with capped arrays and user-defined types, is original work — no third-party or open-source script code was reused.
🔶 LIMITATIONS
Probabilities derived from historical conditioning are estimates, not guarantees, and conditional edges in daily data are typically small. Sample databases need history to mature; young charts produce thin, heavily shrunk statistics by design. Day-of-week events assume a five-day session calendar. Regime conditioning depends on the two-hundred period regime definition. This is a research and confluence tool, not a standalone trading system.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past statistical behavior does not assure future results. Trading involves substantial risk. Always do your own research and manage risk independently. Indicator

Dynamic MSS Navigator [MarkitTick]💡 An advanced technical analysis tool engineered to automatically identify localized market structure, validate structural shifts, and dynamically generate risk-to-reward parameters. Built for systematic traders, it continuously scans price action to pinpoint candidate highs and lows based on user-defined lookback periods. Rather than relying on subjective charting, this indicator applies stringent mathematical logic—incorporating Average True Range (ATR) buffers, volume participation, and higher timeframe (HTF) alignment—to filter out market noise and present high-probability structural breaks. Once a valid break occurs, the indicator seamlessly transitions into trade management mode, drawing precise entry, stop-loss, and multiple take-profit levels directly onto the chart, accompanied by a comprehensive real-time data dashboard.
✨ Originality and Utility
● Automated Market Structure Mapping
The core utility of this indicator lies in its ability to remove human bias from market structure analysis. Traders often struggle with defining which highs and lows are structurally significant. This script mathematically defines them, tracking the absolute highest highs and lowest lows over a rolling window, and only recognizing a structural shift when a mathematically validated threshold is breached.
● Dynamic Risk-to-Reward Modeling
Unlike standard indicators that only print buy or sell arrows, this tool instantly calculates the exact risk parameter upon signal generation. By anchoring the stop-loss to the structural pivot with a built-in volatility buffer, it sizes the risk logically. It then extrapolates multiple take-profit targets based on fixed risk-to-reward ratios, providing a complete trade framework from inception to completion.
● Multi-Dimensional Filtering Mashup
This script operates as a highly cohesive mashup of distinct technical methodologies. It combines Donchian-style localized pivot detection for structure, Wilder’s Average True Range for volatility-based breakout validation, Simple Moving Averages of volume for participation measurement, and multi-timeframe security requests for overarching trend alignment. This combination ensures that a signal is only fired when price action, volatility, volume, and higher timeframe momentum are in total agreement.
🔬 Methodology and Concepts
● Localized Pivot Identification
The script continuously monitors the highest highs and lowest lows over a defined lookback period. When a new top is formed, it identifies the lowest point of that peak structure as the "Candidate Top Low." Conversely, when a new bottom forms, it marks the highest point of that valley structure as the "Candidate Bottom High." These form the immediate structural floors and ceilings.
● ATR-Buffered Breakout Logic
To confirm a shift, price must do more than just tick past the candidate line. The indicator requires price to breach the candidate level by an additional margin, calculated as a fraction of the current ATR. This ensures that only shifts with statistically significant momentum trigger a signal, heavily reducing false positives (fake-outs) during low-volatility chop.
● Composite Strength Scoring
Upon signal generation, the algorithm calculates a proprietary "Strength Score" from 0 to 100. This score is a weighted aggregate of three factors:
The distance of the closing price beyond the breakout threshold (measuring immediate momentum).
The current volume relative to its moving average (measuring market participation).
The alignment of the localized pivot with the higher timeframe pivot (measuring macro confluence).
● Dynamic Bias Tracking
The indicator tracks the ongoing market bias, classifying it as bullish, bearish, or neutral. A bullish bias is initiated upon a valid bottom break and remains intact until price breaches the newly established stop-loss level, at which point the bias flips or neutralizing protocols take over.
🎨 Visual Guide
● Chart Elements
• Candidate Lines
Dashed Red Lines indicate the support floor of a localized top. Dashed Green Lines indicate the resistance ceiling of a localized bottom. These project forward to show the exact price level that must be broken.
• Signal Markers
When a structural shift is validated, a solid Red Triangle appears above the bar for a bearish shift (labeled "BEAR"), and a solid Green Triangle appears below the bar for a bullish shift (labeled "BULL"). Small "+" cross icons appear for continuation signals where the trend is reinforced.
• Trade Projection Lines
A solid Red Line marks the calculated Stop Loss level. A dashed Blue Line marks the exact Entry Price. Dashed Teal Lines of varying opacities mark Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3).
• Zonal Fills
A semi-transparent Red Background fill connects the Entry line to the Stop Loss line, visually representing the initial capital risk. A semi-transparent Green Background fill connects the Entry line to the final TP3 line, representing the total projected reward zone.
• Heatmap Candles
The indicator takes control of the underlying candlestick colors to reflect the current structural bias. Deep Teal candles indicate an active bullish trend, Deep Red candles indicate an active bearish trend, and Gray candles indicate a neutral market state where structural direction is unresolved.
● Dashboard Readouts
A highly detailed heads-up display is rendered on the chart, featuring a dark background with bright, contrasting text. It provides rows of vital data including:
Last Signal and Trend State (e.g., HH-HL Up).
Candle Bias and a visual bar chart representing the Strength Score.
Confirmed Signal Count and Bars Since the Last Signal.
Active Position status, Entry Price, and Stop Loss Price.
Dynamic tick boxes for TP1, TP2, and TP3 displaying price levels and completion checkmarks.
Real-time Floating P/L (Profit/Loss) expressed in 'R' multiples.
Current ATR values and Volume vs Average visual bar meters.
Current state of Session and HTF filters.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Signal Execution
Traders should monitor the formation of the dashed candidate lines. When a breakout occurs, do not act prematurely; wait for the candle to close (if "Confirm by Close" is active) and ensure the primary signal triangle prints. This confirms that all volume and volatility parameters have been met.
● Assessing Trade Quality
Immediately consult the dashboard's "Strength Score." Higher scores (e.g., above 75%) indicate robust volume participation and excellent higher timeframe alignment, making them higher probability setups. Lower scores may warrant reduced position sizing or skipping the setup entirely.
● Trade Management
Utilize the dynamically plotted lines to set limit orders and stop losses in your execution platform. As price reaches TP1 and TP2 (indicated by checkmarks on the dashboard), consider trailing the stop loss to breakeven or the next logical structure point. If the candle heatmap shifts to gray (neutral) before reaching targets, it may be a prudent early exit warning.
⚙️ Inputs and Settings
● Core Settings
Lookback: Defines the number of bars used to identify localized tops and bottoms. Higher values find macro structures; lower values find micro structures.
Confirm by Close: Toggles whether the breakout must be confirmed by the candle's closing price or just the wick.
ATR Len & ATR Break Mult: Controls the volatility buffer required to validate a breakout.
● Filters
Volume Confirm: Requires breakout volume to exceed the moving average multiplied by the "Vol Spike Mult".
HTF Confluence: Restricts signals to those that align with the high/low structure of the user-defined Higher Timeframe.
Session Filter: Restricts signal generation to a specific daily time window (e.g., standard market hours).
● Trade Tools
TP1, TP2, TP3 R:R: Defines the static Risk-to-Reward multipliers for the take profit targets.
SL ATR Buffer: Adds additional breathing room to the stop loss beyond the absolute structural pivot.
● Visuals & Dashboard
Allows the user to toggle the display of candidate lines, heatmaps, and the main data dashboard, as well as reposition the dashboard to any corner of the screen.
● Alerts
Customizable string inputs for JSON payload generation, allowing traders to map long, short, close, trail, and target-hit actions directly to automated execution systems.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Dow Theory and Structural Extremes
The foundational logic of this script is rooted in classical Dow Theory, which posits that a trend is defined by a sequence of higher highs and higher lows (bullish) or lower highs and lower lows (bearish). By mathematically indexing `highestbars` and `lowestbars`, the script algorithmically isolates these fractal extremes, stripping away subjective human interpretation of market swings.
● Volatility-Normalized Breakout Thresholds
Financial markets are noisy, characterized by frequent false breaks (liquidity sweeps). This indicator employs Average True Range (ATR), a metric developed by J. Welles Wilder, to normalize the breakout threshold against current market volatility. By requiring price to exceed a structural level by a factor of the ATR, the algorithm relies on statistical significance—demanding that the breakout possesses enough standard deviations of momentum to be classified as a genuine shift in supply and demand, rather than random market drift.
● Volume Participation Theory
Drawing on Volume Price Trend (VPT) mechanics, the algorithm recognizes that price movement without volume is highly suspect. The implementation of a volume moving average filter ensures that structural breaks are validated by a true influx of market participation, confirming that the imbalance between buyers and sellers is robust enough to sustain a new directional vector.
● Automated Expected Value (EV) Projection
By mechanically tying the entry price to a mathematically defined stop-loss, and extrapolating predetermined Risk-to-Reward targets, the script enforces strict expected value mechanics. This removes emotional profit-taking, ensuring that winning trades scale out at mathematically optimal R-multiples (e.g., 1R, 2R, 3R), aligning the trader's execution with positive expectancy mathematical models over a large sample size of trades.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Rally Leader Screener (2x Market)Rally Leader Screener (2x Market) — with Resisting-Weakness Flag
What it does
This indicator is built for the Pine Screener and identifies stocks demonstrating institutional-grade relative strength in two distinct market regimes:
Rally Leaders — After a market correction, the first stocks to rally 2x (or more) the index's move during the initial 6–7 session bounce are frequently the emerging leaders of the new uptrend. This tool automates that measurement: it pulls the benchmark index return over your chosen lookback window and flags any stock whose return is at least a user-defined multiple of the index return.
Resisting Weakness — When the market is flat or declining over the lookback window, the "Leader" logic correctly stays silent (there is no rally to lead). Instead, a second flag identifies stocks that are rising strongly despite market weakness — a classic early sign of accumulation and often the leader list of the next cycle.
Concept
The methodology draws on well-known momentum research (O'Neil, Minervini): true market leaders declare themselves in the first days of a new rally by outrunning the index by a wide margin, and/or by refusing to decline while the broad market corrects. This script quantifies both behaviors.
Screener columns
Stock Return % — the stock's return over the lookback window
Nifty Return % — the benchmark's return over the same window (default NSE:NIFTY, changeable to any index)
RS Multiple — stock return ÷ index return; shown only when the index return is positive (a ratio against a negative or near-zero denominator is meaningless, so it displays blank)
Leader — 1 when the index return is positive AND the stock's return ≥ (multiple × index return), plus liquidity/trend filters
Resisting — 1 when the index return is ≤ 0 AND the stock is up by at least the user-set minimum, plus the same filters
Ret Spread % — stock return minus index return; an all-weather relative-strength column that remains valid in up, down, and flat markets, useful for sorting when RS Multiple is blank
Inputs
Rally lookback (sessions): default 7 — match this to the actual length of the bounce
Leadership multiple: default 2.0 (the "2x the market" rule)
Benchmark index: default NSE:NIFTY; set to any index matching your watchlist universe
Minimum price and 20-day average volume: liquidity filters
Optional filters: close above 50 SMA, and up-day requirement
Resist flag minimum return %: threshold for the weak-market flag (default 5%)
How to use
Add the script to favorites, open Pine Screener, and select a watchlist (e.g., a broad index universe).
During/after a 6–7 day market rally: filter Leader == 1, sort by RS Multiple descending, and save the top names as a fixed watchlist. The intended workflow is to trade setups only within that list for the following weeks rather than re-scanning continuously.
During corrections or flat markets: filter Resisting == 1, sort by Ret Spread % descending, to build a pre-watchlist of stocks under accumulation.
Names appearing on both lists across a correction→rally sequence historically carry the highest leadership probability.
Notes
Designed for the daily timeframe.
This is a screening/ranking tool, not a buy/sell signal generator. Entries and exits should be based on your own setup criteria and risk management.
Works on any market — change the benchmark symbol to match (e.g., SPX for US stocks). Indicator

Indicator

EMA Ribbon Convergence Pullback Long [Swing]EMA Ribbon Convergence Pullback Long v10
Type: Long-only entry signal indicator (Pine Script v5, indicator())
Market: Indian equities (NSE), daily timeframe — works on other markets/timeframes but tuned for daily swings
Core idea: Flag a long entry when a 10-EMA ribbon (10 to 100) has recently tightened into a basing zone, price pulls back into it, and then closes back above the fastest EMA.
Note: This is the indicator version — it plots entry signals and alerts only. It does not size positions, place stops/targets, or run backtests. See the separate strategy() build (v11+) if you need Strategy Tester results with stop-loss/target logic.
1. Concept
The ribbon is 10 EMAs (10, 20, 30 ... 100). Three market states matter:
Basing (convergence): the EMAs bunch close together — the stock is consolidating rather than trending.
Pullback: after an uptrend resumes, price dips back down and touches or dips slightly below the ribbon.
Reversal (trigger): price closes back above the fastest EMA (EMA10), confirming buyers have stepped back in.
The indicator signals on step 3, provided step 1 happened recently and the broader trend (price vs EMA100) is still up.
Important design note: the ribbon does not need to be tightly converged on the trigger bar itself. A real pullback naturally causes the fast EMA to dip below the slower ones — requiring "tight AND perfectly ordered" on the same bar as the breakout is close to a contradiction. This version checks convergence over a recent lookback window, then checks the breakout separately as a distinct condition.
2. Entry Logic (all must be true)
#ConditionDescription1Basing RecentlyRibbon spread was "tight" (below threshold) at some point in the last N bars (convergenceLookback)2Trend UpPrice is above EMA100 (or EMA100 rising, depending on mode selected)3Pulled BackPrice's low touched or dipped below EMA10 within the last N bars (pullbackLookback)4Reversal TriggerClose crosses back above EMA10 (or, optionally, a bullish engulfing/hammer candle)5CooldownAt least cooldownBars bars since the last signal, to reduce signal spam
A yellow dot marks "near miss" bars — everything above is true except the trigger hasn't fired yet. Useful as an early watchlist flag.
Known gap in this version: cooldown is bar-count based only — there is no price-distance check, so two signals can fire close together in price if they land just outside the cooldown window on the same basing structure (this was fixed with a price-gap filter in v11).
3. What This Version Does Not Include
No stop-loss or target levels
No position sizing or backtest stats (Strategy Tester tab will not appear — this is an indicator(), not a strategy())
No price-distance-based duplicate-signal suppression (bar-count cooldown only)
No higher-timeframe (weekly) trend filter
4. Key Inputs Reference
Convergence
useAdaptive (default ON) — auto-scales the "tight ribbon" threshold to the stock's own recent volatility (percentile-based) instead of a fixed %. Recommended ON, especially across stocks at very different price levels.
convergenceThresh (default 3.0%) — fixed threshold used only if useAdaptive is OFF, and as the automatic fallback during the adaptive method's warm-up period (first ~150 bars of a chart's history).
pctLen (default 150) — lookback window for the adaptive percentile calculation.
pctRank (default 30) — lower = stricter/tighter convergence requirement.
Ribbon Order
requireBullishOrder (default OFF) — if ON, also requires EMA10 > EMA50 > EMA100 strictly on the trigger bar. Keep OFF for normal pullback entries; turning it ON produces a much rarer "clean trend only" variant. When OFF, this is tracked as an informational-only value in the Data Window.
Setup / Pullback / Trend
convergenceLookback (default 10) — how far back to check for a basing zone.
pullbackLookback (default 6) — how far back to check for a dip into the ribbon.
trendFilterMode (default "Price Above EMA100, no slope") — choose between slope-based or simple price-vs-EMA100 trend filters.
trendLen (default 10) — slope lookback, only used in the 10-bar EMA100-rising mode.
cooldownBars (default 5) — minimum bars between signals.
Candle Confirmation
requireCandlePattern (default OFF) — if ON, requires an engulfing or hammer candle in addition to the crossover. OFF gives more signals; ON gives fewer, higher-conviction ones.
useEngulfing, useHammer, minBodyATRRatio — pattern-detection sub-settings, only relevant if the above is ON or you're using patterns as an alternative trigger.
Diagnostics
showDebugTable — live stats panel (top-right) showing hover/click instructions.
showSetupMarkers — yellow "near miss" dots.
showWarmupBg — shades the region at the start of the chart where the adaptive threshold hasn't fully matured yet (using the fixed-% fallback instead).
Hidden 🔍-prefixed data-window plots — hover any bar (or click-and-hold on the chart) and open TradingView's Data Window (right-hand toolbar icon, or Alt+D) to see the live true/false state of every condition for that specific bar: Spread %, Threshold Used, Converged, EMA Order, Ribbon Bullish, Basing Recently, Pulled Back, Close Crossed Up, Candle Pattern, Trend Up, and the final BUY Signal flag. This is the fastest way to understand why a bar did or didn't signal.
5. How to Use
Paste the script into Pine Editor and add to chart.
Set an alert on the built-in alertcondition ("EMA Ribbon Long Entry") if you want notifications — set trigger to "Once Per Bar Close" to avoid intrabar flicker.
Use the Data Window (see Diagnostics above) to inspect any historical bar and confirm which conditions passed.
Because there's no stop-loss/target built in here, define your own risk management manually before acting on a signal (e.g., stop below the pullback low, target at a fixed risk-multiple).
6. Known Limitations
Long-only, daily-timeframe design. No short logic; not tested on intraday timeframes.
No higher-timeframe (weekly) trend filter — the indicator can still fire during a daily pullback that's actually part of a larger weekly downtrend. Consider manually checking the weekly chart before taking a signal.
No exit logic. This tells you when to consider entering, not when to exit — position sizing, stop-loss, and target are entirely up to you at this version.
Not backtested with real trade statistics at this stage — visual/historical review only. Use the v11+ strategy() build for Strategy Tester metrics (win rate, profit factor, drawdown).
This is not financial advice. Validate signals manually, paper trade, and manage risk according to your own plan before using with real capital. Indicator

Nadaraya-Watson Trend [QuantAlgo]🟢 Overview
The Nadaraya-Watson Trend indicator estimates a smooth, adaptive trend path by applying non-parametric kernel regression directly to price. For each bar it weights historical values inside a configurable lookback window with a chosen kernel function, normalizes those weights, and returns a single endpoint estimate that forms the plotted trend line. Bandwidth and kernel type control how aggressively recent bars dominate the estimate, optional residual bands express how far price is dispersed around that path, and slope based coloring with reversal markers make direction and turning points readable at a glance across any timeframe or instrument.
🟢 How It Works
The indicator is built around a one sided Nadaraya-Watson (NW) estimator: only the current bar and past bars enter the calculation, so the path behaves as a causal smoother rather than a centered, repainting fit. The pipeline has three stages: kernel weighting over the lookback window, normalized regression into a single trend value, and optional residual band construction from the same estimate.
First, effective bandwidth is formed from the configured bandwidth and multiplier. Each lag distance is then mapped to a kernel weight. Gaussian and Rational Quadratic keep infinite support with different decay shapes. Compact kernels (Epanechnikov, Triangular, Quartic, Cosine) only assign weight while the normalized lag stays inside the unit interval:
kernel_weight(float dist, float h, string ktype, float rq) =>
float w = 0.0
if h > 0.0
float u = dist / h
if ktype == 'Gaussian'
w := math.exp(-(dist * dist) / (2.0 * h * h))
else if ktype == 'Rational Quadratic'
w := math.pow(1.0 + (dist * dist) / (2.0 * rq * h * h), -rq)
else if math.abs(u) <= 1.0
if ktype == 'Epanechnikov'
w := 0.75 * (1.0 - u * u)
else if ktype == 'Triangular'
w := 1.0 - math.abs(u)
else if ktype == 'Quartic'
w := (15.0 / 16.0) * math.pow(1.0 - u * u, 2.0)
else if ktype == 'Cosine'
w := (math.pi / 4.0) * math.cos(math.pi * u / 2.0)
w
float h = bandwidth * h_mult
Next, the Nadaraya-Watson path is computed as the normalized weighted average of the selected source across the lookback window. Nearer bars dominate when bandwidth is low. Weight spreads more evenly when bandwidth is high, producing a smoother path:
float sum_w = 0.0
float sum_p = 0.0
for i = 0 to lookback
float w = kernel_weight(i, h, kernel_type, rel_weight)
sum_w += w
sum_p += src * w
float nw_trend = sum_w != 0.0 ? sum_p / sum_w : na
Finally, residual bands can be drawn from a kernel weighted mean absolute residual of the source versus the current NW estimate, scaled by the band multiplier. When price is tightly clustered around the path the envelope contracts. When price is dispersed the envelope expands, framing extension and compression relative to the same estimator that defines the trend:
float sum_abs = 0.0
float sum_res_w = 0.0
for i = 0 to lookback
float w = kernel_weight(i, h, kernel_type, rel_weight)
if w > 0.0 and not na(src ) and not na(nw_trend)
sum_abs += w * math.abs(src - nw_trend)
sum_res_w += w
float residual = sum_res_w != 0.0 ? sum_abs / sum_res_w : na
float upper = not na(nw_trend) and not na(residual) ? nw_trend + residual * band_mult : na
float lower = not na(nw_trend) and not na(residual) ? nw_trend - residual * band_mult : na
🟢 Signal Interpretation
▶ Bullish Path (Rising NW Line with Bullish Color): When the Nadaraya-Watson estimate is increasing bar to bar, the path and optional gradient fill plot in the bullish color, reading as an uptrend in the kernel smoothed series. Treat this as a long bias: strongest on the reversal marker with price holding above the path, or on pullbacks that respect the path while slope stays up. Bias weakens if price loses the path and the slope flattens or flips down.
▶ Bearish Path (Falling NW Line with Bearish Color): When the estimate is decreasing bar to bar, the path and fill plot in the bearish color, reading as a downtrend in the kernel smoothed series. Treat this as a short bias: strongest on the reversal marker with price holding below the path, or on bounces that fail at the path while slope stays down. Bias weakens if price reclaims the path and the slope flattens or flips up.
▶ Residual Bands (Optional Envelope Around the Path): With residual bands enabled, the upper and lower lines track a scaled kernel weighted residual around the NW path. Touches or closes beyond the outer band highlight price stretched away from the estimate. Returns toward the path after an extension often mark mean reversion relative to the kernel trend rather than a full regime change. Band width is derived from how widely the source has been scattered around the current NW estimate inside the lookback window
🟢 Features
▶ Preconfigured Presets: Three parameter sets tuned for different trading styles and timeframes. "Default" delivers balanced trend estimation for swing trading on 1H to daily charts, smoothing short lived noise while still responding to genuine directional turns. "Fast Response" is built for intraday work on 5 minute to 1H charts, keeping the path tighter to recent structure so turns register earlier at the cost of more frequent reversals in chop. "Smooth Trend" is aimed at position style reading on daily and weekly charts, forming a more stable baseline that flips only when the kernel path itself shifts with more conviction. Kernel type, residual bands, and visual options stay independently configurable under every preset.
▶ Kernel Library: Six kernel functions expand how the same endpoint Nadaraya-Watson framework assigns weight across the window. Gaussian is the classic smooth default with infinite support. Epanechnikov, Triangular, Quartic, and Cosine are compact kernels that fully exclude bars beyond the bandwidth scale. Rational Quadratic keeps infinite support with heavier tails, and its Relative Weighting input controls how much influence farther bars retain versus a Gaussian like decay. Switching kernels changes the shape of the single plotted path without adding a second model or external oscillator.
▶ Residual Bands: Optional envelope around the NW path built from kernel weighted mean absolute residuals of the source versus the estimate, scaled by Band Multiplier. Enable when you want extension and compression context around the same trend line. Disable when you want only the path, gradient, and markers.
▶ Built-in Alerts: Five alert conditions support hands off monitoring. "Bullish Kernel Reversal" fires on the bar the path slope flips from down to up. "Bearish Kernel Reversal" fires on the bar the path slope flips from up to down. "Any Kernel Reversal" fires on either directional flip. "Source Cross Above Upper Band" and "Source Cross Below Lower Band" fire when the selected source crosses the residual envelope extremes. Alert messages include exchange, ticker, and timeframe for immediate context.
▶ Visual Customisation: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) apply coordinated bullish and bearish colors to the path, gradient fill, residual bands, markers, optional bar coloring, and optional background coloring. Custom unlocks independent bullish and bearish color pickers. Gradient fill, residual bands, reversal markers, bar coloring, and background coloring can each be toggled so the chart stays as clean or as expressive as the workflow requires.
Indicator

Rolling Anchored VWAPRolling Anchored VWAP (RAVWAP) plots up to three independent, volume-weighted average price lines that roll forward bar by bar. Unlike session VWAP, which resets at the open, each line uses a moving anchor: at every bar, the window starts exactly N bars ago and runs through the current bar, so you get a continuously updating fair-value reference without session breaks.
Overview
VWAP is widely used by institutions to gauge whether price is trading above or below the volume-weighted average. This indicator extends that idea with rolling anchored windows of any length you choose — useful on any timeframe, including higher timeframes where session VWAP is less relevant.
Each VWAP is fully configurable: enable or disable it, set its own period, color, and line width, and optionally display volume-weighted standard deviation bands at ±1σ, ±2σ, and ±3σ.
How it works
For a given Period setting of N:
The anchor is placed N bars before the current bar
VWAP is calculated from that anchor through the current bar (inclusive)
On each new bar, the anchor advances by one bar
Example with Period = 100:
Bar 100 → VWAP over bars 0 through 100
Bar 101 → VWAP over bars 1 through 101
Bar 102 → VWAP over bars 2 through 102
The calculation uses efficient rolling sums, so it stays responsive even with periods in the hundreds or thousands.
Standard deviation bands use the same volume-weighted formula as TradingView’s built-in VWAP:
σ = √( Σ(V × P²) / Σ(V) − VWAP² )
Band toggles affect display only — they do not change the VWAP value.
Features
3 independent rolling VWAPs with separate periods (defaults: 100, 250, 500)
Individual enable/disable for each VWAP
Custom color and line width per VWAP
Optional ±1σ, ±2σ, ±3σ bands per VWAP
Optional filled band between ±1σ
Configurable source (default: HLC3)
Non-repainting — historical values are fixed after each bar closes
No session resets — continuous rolling windows on any timeframe
Overlay on price — plots directly on the chart scale Indicator

Indicator

Sphinx Sessions, Cycles & LiquiditySphinx Sessions, Cycles & Liquidity is a session and time-cycle framework for intraday index-futures analysis (ES, NQ, YM and their micros). It combines four things usually spread across separate indicators - a fractal cycle grid, session and higher-timeframe liquidity levels, macro-window markers, and an ATR-graded open-bias table - into one overlay built around the CME futures day. It is a context tool and does not issue buy or sell signals.
WHAT MAKES IT DIFFERENT
Most session tools shade Asia / London / New York as flat blocks. This script instead decomposes the day into a continuous 90-minute cycle grid anchored to 20:00 New York, then subdivides each 90-minute block into 30-minute and 10-minute sub-cycles drawn as nested boxes with graduated opacity. The result is a fractal view of intraday time: the current 90m cycle, which third of it you are in, and which 10m segment is active, all at once. Each cycle box closes one minute early, so cycles read as discrete units rather than one continuous wall of shading.
Everything is anchored to an 18:00 New York day reset (the CME futures open) rather than calendar midnight, so sessions, levels, and bias all reference the futures trading day.
The bias model is quantified rather than binary. Instead of only marking price above or below the 08:30 open, the table grades displacement from that open in multiples of the instrument's own daily ATR into equilibrium, caution, and extended zones, and raises a compression flag when the 08:30-09:30 range is unusually tight relative to ATR. This adapts across ES, NQ, and YM without manual point thresholds.
COMPONENTS
Cycle grid: Asia / London / NY / PM structure as nested 90m / 30m / 10m boxes. Renders on chart timeframes below 15 minutes.
Open lines: Midnight open and 08:30 NY open, independently styled and labeled.
Higher-timeframe levels: prior day, week, and month highs and lows (PDH/PDL, PWH/PWL, PMH/PML), persistent and updated on period roll.
Session liquidity: Asia and London highs and lows that grow live through their session and optionally mitigate (delete) on a close-through, leaving only unmitigated liquidity visible.
Macro windows: 09:40, 10:40, and 13:40 NY windows as bracketed zones.
1H fair value gaps: nearest unmitigated bullish and bearish 1H gaps relative to price.
08:30 bias table: direction, ATR-graded strength, zone, and compression flag.
HOW TO USE IT
Apply it to a sub-15-minute chart of an index-futures symbol. Use the cycle grid to locate yourself in the day's time structure, the session and higher-timeframe levels as liquidity targets, the macro windows for timing, and the 08:30 table for directional context relative to the session open. Every module toggles independently, so you can run the full framework or only the pieces you want.
HOW IT WORKS
Session and cycle boundaries are computed from New York clock time, with the 90-minute grid indexed from the 20:00 open and subdivided by integer division into 30m and 10m segments. Session and macro windows use native session detection so they stay correct from 1-minute up to 15-minute charts. Higher-timeframe levels and 1H fair value gaps are pulled from higher-timeframe data; completed values are fixed and current values develop with the forming bar. Key values (session open, session and cycle highs/lows, gate states, ATR distance) are exposed in the Data Window for use in alerts or other tools.
For education and market analysis only. This is not financial advice, and past behavior of any level or signal does not guarantee future results. Indicator

Futures Sessions with NY Opening Range, Levels, FVGs, & HolidaysThis is a session-anchored intraday framework for futures. Every element on the chart is derived from the same session definitions, so the tools stay consistent with each other: the sessions paint the ranges, the completed ranges leave behind levels, the level lifecycle is tied to the session clock, the NY Opening Range anchors the morning, fair value gaps give context inside the ranges, and holiday markers explain the days when sessions are missing or shortened.
Session Ranges
Each market session is defined using IANA names (America/New_York, Asia/Tokyo) – never fixed UTC offsets. The indicator renders identically no matter what timezone your chart is set to (Exchange, New York, etc). Daylight saving is handled automatically: New York flips between EST and EDT on its own, and Tokyo has no DST, so its position against the New York clock simply shifts with the US clock changes (Tokyo's 9:00 open lands at 20:00 New York in summer, 19:00 in winter).
Each session is a shaded fill: Asia in red, London in yellow, New York in blue as defaults.
NY Pre-Open: a dotted range tracks the morning trade from the ORB open at 8:00 America/New_York until the session fill starts at 9:30. It is derived from the ORB input, so moving the ORB moves it too.
Globex Open: the CME futures trading day opens at 18:00 America/New_York (17:00 Chicago), indicated by the pre-open dotted range before the session fill starts at Tokyo open when volume comes in.
New York Opening Range (ORB)
The ORB captures the range of the America/New_York 8:00–8:15 candle, shown as a box with a dashed midline in maroon. It is visible on all smaller timeframes and up to 1h. The ORB ends on the last candle of the New York session — the end time is derived from the NY session input, so the two can never drift apart.
If the ORB range is oversized (18 or more points, configurable), the box is flagged with a red "ORB INVALID" label and shows the range in points.
Sessions Levels (Untested Highs and Lows)
When a session completes, its final highs (black) and lows (teal) are drawn from the candle and extend to the right indefinitely until a level is tested on its first touch. You can configure whether a test means a wick touch (ICT/liquidity style, the default) or a candle close beyond the level (support/resistance style).
Tested levels stay on the chart until the session running at the time of the test ends, so you can use them as points of reference until then. During the London/NY overlap, New York counts as the running session. A level tested during a session gap survives the gap and is handed to the next session that opens. At the NY ORB open at 8:00, all tested levels are removed to prevent clutter.
Untested levels never expire. You can toggle the prices on the price scale on or off based on preference.
Fair Value Gaps
Classic three-candle imbalances in both directions: bullish when a candle's low is above the high from two candles back, bearish when a candle's high is below the low from two candles back. Gaps are shaded in green (by default, configurable) from the middle candle and extend to the right until price trades fully through it (bullish: a low at or below the gap bottom; bearish: a high at or above the gap top), then it is removed. Each gap can draw its Consequent Encroachment — a dashed line at the 50% of the gap, the level where a gap is commonly considered mitigated. Inputs: fill color, CE toggle and color, minimum gap size in points (useful on low timeframes), and a cap on how many gaps are kept.
Holiday Markers
US (NYSE) holidays: a dotted vertical line and a Statue of Liberty marker anchored to the ORB's first candle. Detection is fully rule-based — weekday-observance rules for every holiday, and Good Friday computed from the Easter algorithm (Butcher's computus), so nothing is hardcoded and no yearly maintenance is needed.
Note: NYSE does not observe New Year's on the prior Friday when January 1 falls on a Saturday, and holidays observed on a Friday/Monday (like July 4 on a weekend) are marked on the actual closure day.
Japanese holidays: a dotted vertical line and a shrine marker anchored to the Tokyo session's first candle. Covers the fixed-date holidays, the Happy Monday holidays, both equinox holidays (astronomical formulas, valid through 2150), Monday substitute holidays, the occasional Silver Week citizens' holiday, and the TSE year-end closures (Dec 31, Jan 2, Jan 3).
Markers sit at the bottom of the pane. Days when CME is fully closed have no bars, so there is nothing to mark — markers appear on holidays with shortened or normal trading.
Alert
One built-in alert condition: Tokyo Range Break — fires when price closes outside the completed Tokyo session range, active from the Tokyo close until 11:30 New York time.
How to Use
Built for intraday charts of 1h and below (it draws nothing on higher timeframes). The ORB needs a 15-minute chart or lower to line up with whole candles. Defaults are tuned for CME index futures (ES/MES); the session inputs work on any symbol with continuous futures-style hours. Old drawings persist until Pine's 500-object limits trim the oldest.
These tools are combined because each one feeds the next: the sessions define the ranges, the completed ranges produce the levels, the level lifecycle runs on the session clock and the ORB open, the pre-open dotted ranges share the same derived timings, and the holiday markers explain the days when the rest of the framework is dark. Changing one session input moves everything that depends on it, consistently. Indicator

Indicator

Indicator

ORB Engine | ANONYCRYPTOUSORB Engine | Anonycryptous
Description & user manual
Why this indicator is different
The opening range is one of the most studied concepts in intraday trading, and for good reason. The first fifteen minutes after a major session opens concentrates the most institutional activity of the day. Breakouts from that range, followed by a retest of the level, are among the most statistically consistent setups available on lower timeframes.
The problem is execution. Most opening range tools stop at the box. They draw a high and low, and leave the trader to figure out the rest: when to trade, how to confirm direction, where the liquidity sits, how to time the entry. That gap between the concept and a usable trade is where most ORB approaches fall apart in practice.
The ORB Engine closes that gap. It does not just draw a box. It tracks the full sequence from formation through confirmation through entry, enforces a discipline around when trades are allowed, maps the session liquidity levels that the price is most likely to target or react from, and scores each setup against five confluence criteria before a signal fires. The result is a complete framework for opening range trading that works across instruments and timeframes.
Important notice
The ORB Engine generates visual states based on price structure, volume confirmation, session timing, and liquidity context. These states are not financial advice. They do not predict future price movement. They do not guarantee profitability. All trading decisions are made entirely by the user. Always manage your own risk. Always apply your own judgment.
1. Overview
The ORB Engine is an overlay indicator that combines opening range detection, breakout confirmation, three entry modes, session liquidity mapping, and a five-point confluence scoring system into a single framework. It is designed for intraday scalping and day trading on any instrument and any timeframe below one hour.
What it includes:
- Opening range box (configurable start and end times) with high, low, and midpoint lines
- Wait period enforcement that blocks entries until the active window opens
- Master toggle to disable the wait period entirely for pure ORB breakout use
- Volume-confirmed breakout detection, active as soon as the box closes
- Three entry modes: midpoint retest, breakout retest, and immediate
- Stop loss and take profit lines (1:1, 1:2, 1:3) drawn on entry
- Trade close detection: dashboard and background reset when stop or final target is hit
- Session liquidity engine with live (dotted) and locked (solid) levels for Asia, London, and NY sessions
- Previous session levels with automatic P. prefix labeling
- Vertical session boundary lines at each session open and close
- Five-point confluence score shown in the dashboard
- Status background coloring: red during wait period, green after entry fires
- Full timezone support: all time inputs in the user's chosen UTC offset
- Dashboard with all live trade and session context
- Nine alert conditions
2. Core concepts
2.1 The opening range box
The box captures the high and low of a configurable time window at the start of the active trading session. The default is the first fifteen minutes of the New York session (14:00-14:15 Amsterdam / 08:00-08:15 New York), which concentrates the most institutional activity of the intraday day. The box is drawn as soon as it closes, with a solid high line, a solid low line, and a dotted midpoint line that extends as the session progresses.
The box range is shown in the dashboard. A narrow box suggests tight price discovery. A wide box suggests early volatility and may require a wider stop if trading it directly.
2.2 The wait period
Breakouts in the first sixty to ninety minutes after a major open are frequently false. Institutional players test liquidity in both directions before committing. The wait period blocks entries from firing until a configurable time, defaulting to 15:30 Amsterdam / 09:30 New York, when the first significant volume wave of the day typically confirms direction.
Critically, breakout direction is still tracked during the wait period. If price breaks above the box high at 14:30 and the wait ends at 15:30, the system already knows the direction is bullish when the active window opens. The entry trigger then watches for the configured retest from that point, without waiting for a new breakout signal.
The wait period can be disabled entirely with the master toggle. With it off, the entry triggers are active immediately after the box closes, which is useful for strategies that do not rely on the NY open timing.
2.3 Entry modes
Three entry modes cover the main ways traders approach ORB setups.
Midpoint retest: the most conservative mode. After a confirmed breakout, the indicator waits for price to pull back to the box midpoint, close on the correct side of it, and then fires the entry signal. This mode is best when the session shows clear reversion behavior after the initial breakout impulse.
Breakout retest: waits for price to retest the box boundary itself (high for a bull breakout, low for a bear breakout) after the initial breakout bar, and fires on a candle that touches the level and closes on the breakout side. This mode suits trending sessions where price breaks cleanly, pulls back briefly to the level, and then continues.
Immediate: fires directly on the confirmed breakout candle. If the breakout happened during the wait period, the entry fires on the first bar of the active window. This is the most aggressive mode and is appropriate when the trader expects strong directional continuation without a pullback.
2.4 Breakout confirmation
A breakout is not registered on a close outside the box alone. The breakout candle's volume must exceed the average volume by a configurable multiplier (default 1.3x). This filters breakouts driven by thin participation, which are more likely to fail on the retest. The volume average and multiplier are both adjustable.
2.5 Stop loss and take profit
The stop loss is placed beyond the opposite side of the box, with a small ATR-based buffer. The buffer multiplier is configurable, allowing tighter or wider placement depending on the instrument and timeframe.
Take profit targets are calculated at 1:1, 1:2, and 1:3 risk-to-reward ratios from the entry level, each toggleable independently. All active levels are drawn as dashed lines from the entry bar and labeled on the chart. The dashboard shows the price levels for active targets.
When the stop is hit or the final active take profit is reached, the dashboard resets to a neutral state. The chart lines remain as a visual record.
2.6 Retest timeout
The retest modes have a configurable bar-count timeout. If price does not return to the required level within that number of bars after the active window opens (or after the breakout, if the wait period is off), the setup expires. The dashboard shows the expired state. The default is 100 bars, which on a 1-minute chart is 100 minutes and on a 5-minute chart is roughly eight hours, so adjust this per timeframe and strategy.
3. Session liquidity engine
3.1 Why session levels matter
Price does not move randomly between sessions. The high and low of the Asia, London, and NY sessions represent pools of resting orders: stops clustered above highs, stops clustered below lows. These are the levels institutional flow targets first. A breakout above the ORB box that is also pushing toward an untested session high is a very different proposition from a breakout into empty space.
The ORB Engine maps these levels automatically and keeps them visible across the session, so the confluence between the ORB setup and the nearest liquidity pool is always visible at a glance.
3.2 Live and locked levels
While a session is in progress, the indicator draws dotted lines for the developing high and low. These lines update in real time as new extremes are set within the window. If price sweeps through what was the high at 03:00 before London has closed, the dotted line moves up immediately, reflecting the new developing high. This prevents the missed sweep problem where a level was set early and then exceeded without the chart updating.
When a session closes, the dotted lines are replaced by solid locked lines. These represent the final confirmed high and low of that session.
3.3 Tested and untested levels
Once a session closes, its levels are tracked for mitigation. If price returns to a locked level and wicks through it, the level is marked as tested by fading to a configurable transparency. It does not disappear. Tested levels can act as re-entry points or warn that a previous pool has been cleared. The untested level count in the dashboard tells you how many unmitigated levels are still active on the chart.
3.4 Previous session levels
When a new session begins, the previous session's locked levels are relabeled with a P. prefix (e.g., P.Asia.H, P.NY.L) immediately at the start of the new session, not when it closes. This makes it immediately clear which levels are current and which are historical. The show previous day toggle controls whether one additional day of locked levels is retained alongside today's.
3.5 Vertical session lines
Vertical lines mark the open and close of each session window in the session's color. Style (solid or dotted) and width are configurable. The lines appear only for the current day and are cleaned up automatically at the next session start.
4. Confluence score
The dashboard shows a five-point confluence score for the current setup, displayed as a bar-style meter (▰▰▰▱▱) with the numeric value alongside. The five criteria are:
1. Box formed: the opening range has closed and the high, low, and midpoint are locked.
2. Volume confirmed: the breakout candle exceeded the volume threshold.
3. Liquidity bias consistent: the breakout direction aligns with the nearest untested session level in that direction (e.g., a bull breakout with an untested high above is a stronger setup than a bull breakout with no untested level overhead).
4. Retest within time: the entry fired before the timeout expired.
5. Risk-to-reward viable: the stop distance is within a configurable multiple of the box range, confirming the setup is not overextended.
A score of 3 or above indicates a setup where multiple factors are confirming each other. A score of 1 or 2 means fewer criteria are met and the setup carries more uncertainty. The score updates live.
5. Timezone and session configuration
All time inputs in the ORB Engine are entered in the user's own timezone. Set your UTC offset once in the Timezone group at the top of the settings, and then enter box start, box end, active window start, session end, and all session liquidity windows in your local clock time. The indicator converts everything to New York time internally.
The dashboard shows a live local clock (Now), the box and active window times in your timezone (Box / Active), and the current UTC offset in the row label so the conversion is always visible.
This design means users in Amsterdam, Dubai, Singapore, or New York all configure the same indicator the same way, in the time they think in, without manually calculating offsets.
6. Status background coloring
The chart background changes state with the setup:
- No background: before the box forms, or after the session ends.
- Red tint: the box has formed and the wait period is active. Entries are blocked.
- Green tint: an entry has fired and the trade is active.
The background colors, their transparency, and whether they are shown at all are individually configurable. The default transparency is high enough to not obscure the candles.
7. Dashboard reference
The dashboard updates on every bar and shows:
Box Status - forming, formed, or —.
Box Range - the distance between the box high and low in ticks.
Wait Status - waiting with remaining minutes, active, disabled, or —.
Breakout - bull, bear, or none.
Entry Mode - the currently selected entry mode.
Midpoint Retest / Breakout Retest / Entry Trigger - the retest status: waiting, fired, expired, or —.
Entry - long, short, or —.
Confluence Score - the five-point bar meter and numeric value.
TP Levels - price levels for each active take profit target, or — if no trade is open.
Session / Untested - the current session name and the count of untested liquidity levels.
Now (UTC offset) - the current local clock time in the configured timezone.
Box / Active - the box window and active window start times in local time.
8. Alerts
Nine alert conditions are available:
- Bull breakout: a volume-confirmed close above the box high.
- Bear breakout: a volume-confirmed close below the box low.
- Long entry signal: a long entry trigger has fired.
- Short entry signal: a short entry trigger has fired.
- Long stop loss hit: the long trade stop has been reached.
- Short stop loss hit: the short trade stop has been reached.
- Long final TP hit: the long trade reached the final active take profit.
- Short final TP hit: the short trade reached the final active take profit.
- Near untested liquidity level: price is within a configurable ATR distance of an untested session level.
9. How to use
9.1 Basic workflow
Set your timezone. Enter the box and session times in your local clock. The wait period defaults to the New York 09:30 open equivalent in your timezone, which is when the most reliable ORB confirmations historically occur.
Let the box form. The dashboard shows the forming state during the box window and transitions to formed when it closes. The box range gives you an immediate read on how much price discovery happened.
Observe the breakout. The system detects breakouts as soon as the box closes, even during the wait period. The dashboard shows the breakout direction and a dot appears on the breakout candle. With the wait period on, the background turns red and entries are blocked.
Wait for the active window. When the wait period ends, the background stays neutral and the entry trigger activates. Depending on the entry mode, it is now watching for a midpoint touch, a boundary retest, or it already fired immediately at the open of the active window.
Check the score. A confluence score of 3 or above with a clean entry signal in the context of a nearby untested session level is the strongest combination the system can produce.
9.2 Entry mode selection
Use midpoint retest on sessions that show clear pullback behavior after the initial breakout impulse. Use breakout retest on sessions that trend strongly but pause briefly at the broken level before continuing. Use immediate when price is moving fast and a retest is unlikely, or when you want to be positioned as early as possible in the active window.
9.3 Session levels as context
Before entering any signal, check which session levels are nearby. An entry directly into an untested opposite-side level is likely to stall or reverse at that level. An entry away from all untested levels, in the direction of the next unmitigated pool, is a cleaner setup. The dashboard untested count and the live chart lines give you this context without any additional tools.
9.4 Illustrative bull scenario
Educational example only. Not a trading recommendation.
The opening range forms between 14:00 and 14:15 with a 20-point range. At 14:35, a candle closes above the box high on 1.6 times average volume. The breakout is confirmed as bull, and the wait period background turns red. At 15:30 the active window opens. Price is still above the box high and the midpoint retest mode is active. At 15:42, price dips back to the midpoint, wicks it, and closes above. The entry fires long. Score is 4/5: box formed, volume confirmed, retest in time, and RR viable. The NY.L below is the nearest untested level, well below the stop, so it is not a concern. TP1 is hit 18 minutes later.
9.5 Illustrative bear scenario
Educational example only. Not a trading recommendation.
A narrow 12-point box forms and breaks below the low at 14:28 on heavy volume. The breakout retest mode is selected. The wait period holds entries. At 15:30, price is trading 30 points below the box low. The system begins watching for a pullback back to the box low. At 15:44, price rallies back to the box low, taps it, and closes below. Short entry fires. Score is 3/5. Stop is placed above the box high with ATR buffer. TP2 is reached before the session ends.
10. Settings reference
Timezone: UTC offset selector for all time inputs and the dashboard clock.
Opening range box: start hour, start minute, end hour, end minute (all in local timezone), box color, box fill transparency, max box history in days.
Wait period: enable toggle, active window start hour and minute, session end hour and minute.
Entry settings: breakout volume multiplier, volume average length, retest timeout in bars, ATR length, stop loss ATR buffer, TP 1:1/1:2/1:3 toggles, SL/TP line projection in bars.
Session liquidity: show toggles for Asia, London, and NY with individual start and end times, colors, tested level transparency, line extend bars, show previous day toggle, label text size, show session vertical lines toggle, vertical line style and width, proximity alert toggle and ATR distance.
Confluence score: maximum risk-to-reward sanity check multiplier.
Dashboard: show toggle, position, text size.
Visualization: wait period background show, color, and transparency; entry active background show, color, and transparency.
11. Known limitations
The ORB Engine is designed for sessions that produce a directional move after the opening range. It performs best when the market has a clear bias — a breakout in one direction that holds and then retests cleanly before continuing.
In choppy, sideways price action, the indicator will produce repeated stop loss hits. If the opening range is narrow and price oscillates around the box boundaries without committing to a direction, a breakout in one direction can be followed immediately by a breakout in the opposite direction. Because the system locks breakout direction on the first confirmed move, subsequent reversals are not re-evaluated as a new setup within the same session. The result in choppy conditions is typically one or two stop loss hits before the session ends without a valid directional move.
This is not a flaw in the indicator — it reflects the reality that opening range strategies depend on directional follow-through. On days where the market is consolidating at the session open, no ORB approach will perform well. The confluence score provides some protection: a score below 3 indicates fewer confirming factors and may warrant sitting on the sidelines. The session liquidity levels can also help — if there is no clear untested level in the breakout direction, the setup has no obvious target and the probability of follow-through is lower.
The volume confirmation filter reduces false breakouts in thin conditions, but it does not eliminate them on highly volatile instruments where even noise candles can exceed the volume threshold. On assets with very low liquidity, the breakout volume multiplier should be raised above the default 1.3 to filter more aggressively.
On very low timeframes such as 1-minute charts, the retest timeout in bars covers fewer minutes. A timeout of 100 bars on a 1-minute chart gives 100 minutes of window. Adjust the timeout per timeframe to reflect how long a valid retest can realistically take on the instrument you are trading.
12. Disclaimer
This indicator is provided for educational and informational purposes only. Nothing in this document or in the indicator output constitutes financial advice or any form of recommendation. Trading financial instruments involves substantial risk of loss. Past performance is not indicative of future results. You may lose all of your invested capital. Anonycryptous accepts no responsibility or liability for any losses incurred as a result of using this indicator.
Indicator

Trend Indicator A + VWAP Band 3 CanNew York Session VWAP with Dynamic Deviation Bands
Overview
This indicator is specifically designed for intraday traders looking to capitalize on the high volatility, volume, and momentum generated during the New York market session open. By combining the Volume Weighted Average Price (VWAP) with customizable deviation bands, this tool helps traders identify key institutional liquidity pools, dynamic support/resistance levels, and high-probability mean-reversion or breakout setups.
Key Features
Session-Optimized Logic: Tailored to track price action accurately around the New York opening bell (15:30 CET / 14:30 CET winter time), filtering out low-volume pre-market noise.
Dynamic Deviation Bands: Multi-layered bands act as volatility-adjusted overbought and oversold zones, adapting instantly to sudden market expansions.
Intraday Precision: Ideal for scalping and day trading highly liquid instruments such as market indices (NAS100, US30) and commodities (XAUUSD).
How to Use & Trade Setup
Mean Reversion (The Fade): Look for price exhaustion at the outer deviation bands during the initial New York open rush. A rejection candle at these extremes often signals a high-probability retracement back to the VWAP baseline.
Trend Following (The Breakout): If price breaks and closes decisively outside the first deviation band with strong volume during the first hour of the NY session, it often validates a strong institutional trend.
VWAP Cross: Use the central VWAP line as a dynamic bias filter. Trading above the VWAP indicates bullish sentiment, while trading below indicates bearish control.
Disclaimer: This indicator is for educational and analysis purposes only. Always combine technical indicators with strict risk management and a defined trading plan. Indicator

Indicator

Teej 15 MIN ORBHere's an updated description covering everything the indicator does now:
---
**15min ORB + Ripster EMA Clouds — Confluence Signals with Profit Targets**
This indicator combines the 15-minute Opening Range Breakout with Ripster's EMA Clouds into a complete intraday breakout system: trend filter, entry signal, and profit target in a single overlay.
**Opening Range Breakout**
The high and low of the first 15 minutes of the regular session (9:30–9:45 AM ET by default) are captured and displayed as a transparent box that extends right for the remainder of the day. ORB High and ORB Low lines are drawn in blue with price labels that ride the right edge of the chart, plus an optional midpoint line. Session window and timezone are fully adjustable for other markets.
**Ripster EMA Clouds**
A faithful port of the open-source "Ripster EMA Clouds" by ripster47, converted from Pine v4 to v6. All original features are preserved: five configurable EMA/SMA cloud pairs (8/9, 5/12, 34/50, 72/89, 180/200), hl2 source, original colors and per-cloud transparencies, optional EMA lines, and leading offset.
**GO Entry Signals**
A "GO" label prints at the close of the confirmation candle only when breakout and trend align:
• Green GO — a 5-minute candle closes ABOVE the opening range while the clouds are bullish
• Red GO — a 5-minute candle closes BELOW the opening range while the clouds are bearish
Breakouts against the cloud trend produce no signal. The label is positioned at the entry price (the confirmation close). Signals are non-repainting — they only print once the 5-minute candle has completed — and the confirmation timeframe is adjustable.
**Profit Target Box**
When a GO signal fires, a blue transparent box projects from the entry to a target equal to 200% of the confirmation candle's range (equivalent to a 2:1 reward-to-risk with the stop on the far side of the confirmation candle). The box extends right through the day with the target price labeled. When price tags the target, a "PT HIT ✔" marker prints and the box border turns green. The target percentage is adjustable.
**Alerts included:** Confluence Long, Confluence Short, Profit Target Hit, and optional unfiltered ORB breakout alerts.
**Best used on** 1m–5m intraday charts during regular trading hours.
**Credits:** EMA Clouds section © ripster47, used under the Mozilla Public License 2.0. ORB, confluence, and profit target logic added on top.
*For educational purposes only. Not financial advice.* Indicator

TRADERXMOM IndicatorTRADERXMOM Indicator (Heikin Ashi/EMA Momentum)
What it does
Plots directional momentum signals on Heikin Ashi price action, generated from three independently-gated pattern types: an initial breakout, a pullback-and-continuation, and an EMA-cross condition. "Signal Up"/"Signal Down" markers indicate qualifying momentum shifts within active sessions.
How it works
Heikin Ashi values are calculated manually within the script rather than via a built-in HA ticker override, keeping signal computation independent from the real OHLC series. A fast EMA pair (8/21) drives trend direction and entry timing; a separate, slower EMA pair (13/48) is shown purely as visual reference and isn't part of the signal logic. Each of the three pattern types requires a full-bodied Heikin Ashi candle (no wick on the trend side) as confirmation:
Breakout — a strong-bodied HA candle closing beyond both EMAs in trend direction
Pullback — trend intact, price pulled back toward the fast EMA over the prior several bars, then a strong-bodied HA candle resumes in trend direction
EMA Cross — the fast/slow EMA pair crosses, confirmed by a strong-bodied HA candle
Recognizing three distinct momentum behaviors rather than relying on a single crossover rule is the core differentiator from standard single-trigger EMA/HA scripts, which typically only catch one of these patterns and miss the others.
Signals are further gated by up to four configurable session windows, a cooldown period between signals to prevent clustering, a defined kill zone that blocks signals late in the session, and an optional VWAP directional filter.
How to use it
Built for micro index futures (MNQ, MES) on lower intraday timeframes. Enable or disable individual sessions and the VWAP filter to match your own trading windows. Signal markers indicate conditions worth evaluating, not automatic entries — always apply your own risk management. Indicator

Indicator

Flow Pressure Zones [BOSWaves]Volume Flow Zones - Body-Ratio Volume Flow Scoring with Baseline Fuel Visualization and Counter-Trend Reversal Zone Detection
Overview
Volume Flow Zones is a volume-weighted flow intensity system that scores each bar by the combined strength of its body-to-range ratio and volume participation relative to its rolling average, where baseline fuel candle height, price candle gradient intensity, and reversal zone placement are all driven by this normalized flow score rather than fixed thresholds or arbitrary indicator crossovers.
Instead of relying on raw volume or price direction alone, the flow score combines how convincingly price moved within the bar's range with how significant the bar's volume was relative to recent history, producing a single normalized conviction reading that reflects both the directional commitment and the participation weight behind each bar. This score then drives every visual layer of the indicator simultaneously, from the height of the fuel candles on the baseline to the brightness of the price candle coloring to the conditions required for a reversal zone to be planted.
This creates a flow monitoring framework that communicates momentum quality continuously rather than at discrete signal events. The baseline fuel candles grow and shrink with the flow score on every bar, the glow around the WMA baseline intensifies during high-flow periods, price candles brighten toward full trend color during strong participation and dim toward neutral during weak flow, and yellow reversal candles fire when meaningful counter-trend flow appears against the prevailing trend direction, at which point a forward-projecting reversal zone is planted at the bar's extreme.
Price is therefore evaluated not just for direction relative to the baseline but for the quality and intensity of the flow supporting that direction on every bar.
Conceptual Framework
Volume Flow Zones is founded on the principle that directional price movement carries meaningfully different conviction depending on how decisively price closed within the bar's range and how significantly volume participated relative to recent norms, and that these two dimensions together produce a more reliable flow quality reading than either dimension alone.
Traditional momentum tools measure direction through crossovers or oscillator levels that treat all bars equally regardless of whether a move was driven by decisive high-volume conviction or by drifting low-volume noise. This framework replaces uniform direction measurement with a per-bar flow quality score that distinguishes between genuine momentum and low-conviction price movement, encoding that distinction across every visual element so that chart reading reflects real participation dynamics rather than mechanical indicator states.
Three core principles guide the design:
Flow quality should be measured by combining body dominance within the bar range with volume significance relative to the rolling average, producing a score that captures both directional decisiveness and participation weight simultaneously.
The flow score should drive all visual outputs proportionally and continuously, with fuel candle height, price candle brightness, and baseline glow all scaling in real time to the current flow reading rather than switching between fixed states.
Counter-trend flow events meeting minimum quality thresholds should generate forward-projecting reversal zones anchored to the bar extreme where the opposing flow appeared, marking structural reference levels for potential trend exhaustion and reversal.
This shifts trend analysis from binary directional state monitoring into continuous flow quality measurement where visual intensity across every chart layer communicates conviction strength in real time.
Theoretical Foundation
The indicator combines WMA-based trend direction, body-to-range ratio measurement, volume SMA normalization, flow score derivation with rolling normalization, reversal detection through close position and volume threshold testing, and an ATR-scaled fuel candle system that projects flow intensity visually from the baseline.
The WMA baseline provides a weighted directional reference that gives greater importance to recent price activity, establishing the trend context that determines fuel candle positioning and reversal direction qualification. The body ratio measures what fraction of the bar's total range the body occupies, with higher ratios indicating more decisive directional commitment. Volume normalization divides each bar's volume by its SMA baseline and caps the result at three, preventing extreme volume spikes from overwhelming the score. The raw flow score multiplies body ratio by normalized volume, and a rolling highest-lowest normalization converts the raw score to a 0-1 range that adapts to the instrument's typical flow distribution. Reversal detection tests close position within the range, bar direction, and volume normalization simultaneously, requiring all three conditions to be met before a reversal event qualifies.
Four internal systems operate in tandem:
Flow Score Engine : Calculates body ratio from open-close range divided by high-low range, normalizes volume against its SMA baseline, multiplies the two to produce raw flow, then normalizes the raw flow against its rolling highest and lowest values to produce the final 0-1 score that drives all downstream visual systems.
Baseline Fuel Candle System : Positions ATR-scaled candles above the baseline for bearish trends and below for bullish trends, scaling their height proportionally to the current flow score so that fuel candle length grows and shrinks with each bar's flow intensity and coloring intensifies with a power-transformed opacity gradient.
Price Candle Gradient System : Colors chart candles from a dimmed version of the trend color at low flow scores to full saturation at high flow scores using a power-transformed gradient, with yellow override on any bar where counter-trend reversal conditions are met regardless of trend state.
Flow Reversal Zone Engine : Monitors for qualifying counter-trend flow events meeting close position, direction, and volume thresholds above the minimum flow score, plants ATR-scaled zones with dashed midlines at the bar extreme on confirmed qualifying bars subject to cooldown enforcement, extends zones forward until price closes through them on two consecutive bars.
This design allows every chart element to reflect the current flow score simultaneously while the reversal zone system independently tracks and maps the structural locations where meaningful counter-trend flow appeared.
How It Works
Volume Flow Zones evaluates price through a sequence of flow-aware scoring and visualization processes:
WMA Baseline Calculation : The Weighted Moving Average is calculated over the configured length, with trend direction determined by whether close is above or below the baseline on each bar.
Body Ratio Measurement : The absolute difference between close and open is divided by the high-low range to produce a 0-1 body ratio, with higher values indicating bars where price moved decisively in one direction relative to its total range.
Volume Normalization : Raw volume is divided by the Volume SMA baseline and capped at 3.0, producing a score that reflects whether the bar's participation was below average, average, or significantly above average relative to recent history.
Raw Flow Calculation : Body ratio is multiplied by normalized volume to combine directional decisiveness with participation weight into a single raw flow reading.
Rolling Normalization : The raw flow is normalized against its highest and lowest values over the configured lookback window, producing a 0-1 score that adapts to the instrument's typical flow range and maintains consistent visual scaling across different volatility regimes.
Reversal Condition Testing : Counter-trend pressure is identified when close position within the bar range is below 0.35 on a down-close bar with volume above 1.2 times SMA for bearish pressure, or above 0.65 on an up-close bar with the same volume threshold for bullish pressure. These conditions combined with the flow score threshold and trend direction determine whether a reversal event qualifies.
Price Candle Coloring : The normalized flow score is power-transformed and mapped to a gradient between a dimmed and full-saturation version of the trend color. Reversal bars override this coloring with full yellow regardless of score or trend direction.
Fuel Candle Rendering : ATR-scaled open and close prices are calculated from the WMA with the configured offset, with candle height proportional to the flow score. Fuel candles render below the baseline during uptrends and above during downtrends, with opacity power-transformed from the flow score and yellow coloring applied on reversal bars.
Baseline Glow Rendering : A wide low-opacity version of the WMA line and a thinner core line are plotted with transparency inversely proportional to a smoothed flow average, producing a glow effect that intensifies during sustained high-flow periods.
Reversal Zone Planting : On confirmed reversal bars satisfying the cooldown requirement, an ATR-scaled zone is planted centered on the bar's low for bullish reversals and high for bearish reversals, with a dashed midline and forward extension. Overlapping same-direction zones are removed before the new zone is added.
Zone Lifecycle Management : All active zones extend rightward on each bar. When close has been below the zone bottom for two consecutive bars for bullish zones or above the zone top for two consecutive bars for bearish zones, the zone is deleted.
Together, these elements form a continuously updating flow monitoring system where baseline fuel candles, price candle gradients, and reversal zones all derive from the same underlying flow score, producing a visually unified conviction map across every chart element.
Interpretation
Volume Flow Zones should be interpreted as a flow quality visualization system with structural counter-trend zone mapping:
WMA Baseline : The Weighted Moving Average provides the primary trend reference with a glow that brightens during sustained high-flow periods, providing an immediate visual indicator of whether the current trend is being supported by strong or weak participation.
Bullish Trend State (Green) : Active when close is above the WMA, with fuel candles projecting below the baseline and price candles coloring green with intensity scaling from the flow score.
Bearish Trend State (Red) : Active when close is below the WMA, with fuel candles projecting above the baseline and price candles coloring red with intensity scaling from the flow score.
Fuel Candle Height : The primary flow intensity indicator, growing with each bar's flow score and shrinking during low-conviction periods. Tall fuel candles indicate strong directional participation. Short or barely visible fuel candles indicate weak flow with low conviction behind the current price movement.
Fuel Candle Opacity : The transparency of each fuel candle further encodes flow strength, with near-opaque candles representing peak-intensity flow events and highly transparent candles representing low-intensity bars.
Price Candle Gradient : Price candles brighten toward full trend color saturation at high flow scores and dim toward a muted version of the trend color at low flow scores, providing an immediate bar-level conviction reading directly on the candlestick.
Yellow Candles : Both the price candle and fuel candle flash yellow on bars where qualifying counter-trend flow is detected, immediately identifying potential exhaustion or reversal events within the current trend.
Flow Reversal Zones : Horizontal zones with dashed midlines planted at bar extremes where qualifying counter-trend flow appeared, projecting forward as structural reference levels for the price level where opposing flow was significant enough to register. Bullish reversal zones are colored green, bearish reversal zones red.
Fuel candle height dynamics, price candle brightness, yellow reversal identification, and zone proximity collectively provide more flow intelligence than any element in isolation.
Signal Logic & Visual Cues
Volume Flow Zones presents two primary reversal signal types alongside continuous flow intensity monitoring:
Bullish Reversal (Yellow) : Triggered when price closes in the upper portion of the bar's range on an up-close bar with above-average volume during a downtrend, with flow score exceeding the minimum threshold. Plants a bullish reversal zone below the bar and flashes both price and fuel candles yellow.
Bearish Reversal (Yellow) : Triggered when price closes in the lower portion of the bar's range on a down-close bar with above-average volume during an uptrend, with flow score exceeding the minimum threshold. Plants a bearish reversal zone above the bar and flashes both price and fuel candles yellow.
Zone cooldown enforcement prevents multiple zones from planting in rapid succession, spacing reversal references to only the most significant qualifying events within each cooldown window.
Alert generation covers bullish and bearish reversal flow events and WMA bullish and bearish flips for systematic trend monitoring workflows.
Strategy Integration
Volume Flow Zones fits within flow-informed trend-following and counter-trend monitoring approaches:
Fuel Candle Conviction Reading : Use fuel candle height as a continuous trend health gauge. Consistently tall fuel candles during a trend indicate sustained directional commitment. Progressively shrinking fuel candles within an established trend suggest flow is weakening before any price indicator or crossover confirms the deterioration.
Yellow Candle Context : Use yellow reversal candles as early warning signals within trends rather than as standalone entry triggers. A single yellow candle mid-trend may indicate temporary absorption. Multiple yellow candles within a short window suggest building counter-trend pressure warranting reduced confidence in continuation.
Reversal Zone Reference Trading : Use planted reversal zones as structural reference levels where meaningful opposing flow previously appeared. Price returning to these zones encounters the price level where prior counter-trend activity was significant enough to meet the reversal detection criteria.
WMA Flip Entries : Use WMA direction changes combined with high fuel candle readings immediately following the flip as trend initiation entries, favoring flips that coincide with strong flow scores over flips that occur during low-conviction flow conditions.
Flow Divergence Detection : Monitor for situations where price is making new highs or lows but fuel candle height is diminishing, indicating that price extension is occurring on weakening flow and increasing the probability of reversal or consolidation.
Multi-Timeframe Flow Alignment : Apply higher-timeframe WMA direction and fuel candle intensity as directional context filters, engaging with lower-timeframe reversal zones and yellow candle signals only when they align with the broader flow state established on the higher timeframe.
Technical Implementation Details
Baseline Engine : Weighted Moving Average with configurable length for trend direction and fuel candle anchoring
Flow Score : Body-to-range ratio multiplied by volume SMA normalization with rolling highest-lowest normalization over configurable lookback
Reversal Detection : Close position threshold, bar direction, and volume normalization minimum combined with flow score floor and trend direction gating
Fuel Candles : ATR-scaled height with configurable multiplier and baseline offset, power-transformed opacity gradient, yellow override on reversal bars
Price Candles : Power-transformed flow gradient from dimmed to saturated trend color with full yellow override on reversal bars
Baseline Glow : Dual-line wide and narrow WMA plots with transparency inversely proportional to smoothed flow average
Zone System : Array-managed ATR-scaled zone boxes with dashed midlines, cooldown enforcement, overlap removal, forward extension, and two-bar consecutive close breach invalidation
Performance Profile : Optimized for real-time execution with configurable zone count cap and array-based lifecycle management
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday flow monitoring for scalping with shorter WMA and normalization lengths for faster flow score adaptation to intraday momentum shifts
15 - 60 min : Session-level trend flow tracking with balanced WMA length and moderate zone cooldown for meaningful reversal zone spacing across typical session moves
4H - Daily : Swing-level flow quality monitoring with longer WMA and normalization lookback for sustained flow readings across multi-session directional moves
Suggested Baseline Configuration:
WMA Length : 80
Volume SMA : 20
Normalization Lookback : 80
Offset (ATR%) : 0.4
Candle Height : 2.0
Show Reversal Zones : Enabled
Zone Cooldown : 31
Max Zones : 3
Show Fuel Candles : Enabled
Show Baseline : Enabled
Show Baseline Glow : Enabled
Color Price Candles : Enabled (requires disabling original chart candles in chart settings)
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, volume behavior, and preferred signal density, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Fuel candles too tall or too short : Adjust Candle Height to scale the maximum fuel candle height relative to ATR. Lower values produce more subtle fuel visualization, higher values produce more prominent height differences between high and low flow bars.
Fuel candles too close or far from price : Adjust Offset (ATR%) to control the gap between the WMA baseline and the near edge of the fuel candles, adapting visual separation to the instrument's typical ATR range.
Flow score too reactive : Increase Normalization Lookback to smooth the normalization window, requiring more bars to recalibrate the flow range and reducing sensitivity to short-term volume spikes.
Flow score too slow to adapt : Decrease Normalization Lookback for faster recalibration of the flow score range, allowing the system to adapt more quickly to changing volatility and volume conditions.
Too many reversal zones forming : Increase Zone Cooldown to enforce greater bar separation between consecutive zone plants, or reduce Max Zones to limit the total number of active reference levels on the chart.
Reversal zones too narrow or wide : Adjust Zone Height (ATR×) to scale the vertical size of each reversal zone relative to ATR, calibrating zone thickness to the instrument's typical noise range at the target timeframe.
WMA too reactive to price : Increase WMA Length for a smoother baseline that filters minor oscillations and reduces frequency of trend direction changes, producing more stable fuel candle positioning and cleaner reversal zone direction assignments.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear directional momentum where fuel candle height builds during impulse phases and provides early warning of conviction decay before price reverses
Instruments with consistent volume participation where SMA normalization accurately identifies above-average bars and the flow score reliably differentiates high and low conviction moves
Flow divergence strategies where declining fuel candle height during price extension provides early deterioration signals before conventional indicators confirm reversal
Counter-trend monitoring approaches where reversal zones mark the precise price levels where meaningful opposing flow appeared for use as structural reference in subsequent analysis
Reduced Effectiveness:
Choppy, low-volume markets where body ratios are consistently low and volume normalization produces undifferentiated scores, reducing fuel candle height variation and generating frequent yellow candles without meaningful reversal context
Instruments with highly irregular volume distribution where the SMA normalization baseline is distorted by outlier sessions, producing unreliable flow score rankings across typical bars
Extremely fast-moving markets where large body ratios are consistently present on almost every bar, compressing the flow score range and reducing the visual differentiation between high and low conviction periods
Low-ATR instruments where the fuel candle geometry produces visually imperceptible height differences, requiring manual candle height and offset adjustment to produce meaningful visual scaling
Consolidation and sideways conditions where volume participation is mixed and body ratios are low, producing uniformly short fuel candles and frequent yellow candles without the trend context that makes reversal detection structurally meaningful
Integration Guidelines
Confluence : Combine with BOSWaves structural tools, order block analysis, or momentum oscillators to validate reversal zone interactions and yellow candle events with broader analytical context
Fuel Candle Trend Health : Monitor fuel candle height evolution throughout established trends as a continuous conviction health indicator. Progressively shrinking fuel candles during a sustained trend suggest flow deterioration that may precede reversal before price structure confirms the change.
Yellow Candle Clustering : Single isolated yellow candles within a trend carry less weight than clusters of two or more within a short window. Clusters suggest building counter-trend participation that is approaching the threshold required to challenge the prevailing flow direction.
Zone Freshness : Prioritize recently planted reversal zones over older ones. Fresh zones reflect current session flow dynamics while older zones may have formed under different volume and volatility conditions that are no longer representative.
State Discipline : Maintain directional bias aligned with the current WMA trend state until a confirmed WMA direction change occurs. Yellow candles and reversal zones within an established trend are monitoring signals rather than automatic exit triggers and should be interpreted as context rather than directional commands.
Disclaimer
Volume Flow Zones is a professional-grade flow quality analysis and counter-trend monitoring tool. It uses body-ratio volume flow scoring with rolling normalization and reversal zone detection but does not predict future price movements. Results depend on market conditions, instrument volume characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates price structure, order flow context, and comprehensive risk management. Indicator

Indicator

Indicator

For-Loop Consensus MA | MiesOnChartsFor-Loop Consensus MA
Overview
For-Loop Consensus MA is a trend indicator that replaces a single moving average with an ensemble of exponential moving averages (EMAs) and asks them to "vote" on the direction of the market. Instead of committing to one length -- where a value of 20 and a value of 50 can disagree and either can be wrong at any given time -- it evaluates many lengths at once and only signals a trend when a large majority of them agree. The result is a single line whose colour reflects the level of agreement across the whole set of lookbacks.
The idea behind it
A recurring problem with moving-average trend tools is parameter sensitivity: the "best" length is only known in hindsight and changes with market conditions. A short EMA reacts quickly but whipsaws in noise; a long EMA is stable but late. Picking one is a compromise.
This indicator borrows a concept from statistics and machine learning known as model averaging (also called ensembling or bagging): rather than trusting one model, you build many variations of it and combine their outputs. The aggregate is generally more robust than any single member, because the idiosyncratic errors of individual lengths tend to cancel out while the shared trend signal reinforces.
Two things are aggregated here:
The line itself -- the average of all EMAs in the ensemble, producing a smoothed consensus curve.
The direction vote -- the fraction of EMAs that price is currently trading above.
How it works
The script uses a for loop to construct and maintain a series of EMAs spanning a range of lengths:
It steps from Min EMA Length to Max EMA Length in increments of Length Step (for example 20, 40, 60… 140).
Each EMA is computed manually from its smoothing factor alpha = 2 / (length + 1), and its running value is stored in a persistent array -- one slot per length -- so every member carries its state forward bar to bar.
On each bar the loop does two things: it sums the EMA values (to build the consensus line), and it counts how many EMAs price closes above (to build the vote).
From these:
Consensus line = the mean of all EMAs in the ensemble.
Vote share = number of EMAs price is above ÷ total number of EMAs, a value between 0 and 1.
Signal logic
The vote share drives the trend state through a symmetric threshold:
Bullish when the vote share is greater than or equal to the Supermajority Vote Share input (default 0.7) -- i.e. at least 70% of the lookbacks agree price is in an uptrend. The line turns green.
Bearish when the vote share is at or below its mirror (1 - threshold, so 0.3 at the default) -- at least 70% agree on a downtrend. The line turns red.
Neutral in between, when the ensemble is split and no supermajority exists. The line is grey, indicating indecision or a ranging market.
Requiring a supermajority rather than a simple majority is deliberate: it filters out the marginal, split-vote conditions where moving averages are least reliable, and only commits to a trend colour when the evidence across timescales is broad.
Inputs
Source -- the price series the EMAs are built from (default: close).
Min EMA Length / Max EMA Length -- the shortest and longest lookbacks in the ensemble. A wider span blends more timescales.
Length Step -- the spacing between ensemble members. A smaller step packs in more EMAs (finer, heavier); a larger step uses fewer.
Supermajority Vote Share -- how strong the agreement must be before a trend is declared. Higher values (e.g. 0.8) demand stronger consensus and produce fewer, more selective signals; lower values (e.g. 0.6) are more responsive but less discriminating.
How to use it
Trend context -- read the colour of the line as a regime filter. Green suggests a broad-based uptrend across lookbacks; red a broad downtrend; grey a lack of consensus where trend-following is riskier.
Trend confirmation -- the line can be used alongside price structure or other tools to confirm that a move is supported across multiple horizons rather than by one arbitrary length.
Neutral zones -- grey stretches highlight indecision and can be treated as periods to stand aside or tighten expectations.
Two alert conditions are included -- Consensus MA Long (bullish) and Consensus MA Short (bearish) -- so the trend states can be wired to TradingView alerts.
Notes and limitations
Like all moving-average-based tools, this indicator is reactive: it describes the trend that price is already in and will lag turning points. It does not predict future prices.
Signals reflect agreement among lagging averages, so expect the trend colour to change after a reversal has begun, not before it.
Wider length ranges and larger supermajority thresholds increase robustness at the cost of responsiveness. There is no universally correct setting; adjust to the instrument and timeframe you trade.
This script is a decision-support tool, not a standalone trading system and not financial advice. It does not include risk management and makes no representation about future performance.
Test any settings on your market before relying on them. Indicator
