For-Loop Vote Trailing Stop | MiesOnChartsFor-Loop Vote Trailing Stop
Overview
For-Loop Vote Trailing Stop is a trend-following tool that combines two ideas: a multi-horizon momentum vote to decide the direction of the market, and an ATR-based ratcheting trailing stop to ride and eventually exit the move. Rather than judging momentum from a single lookback, it polls dozens of horizons at once and lets them vote; the winning side then sets a stop line that trails price and only flips when the opposite side wins the election.
The script plots as a single stop line that sits below price in an uptrend and above price in a downtrend, changing colour and side when the regime turns.
The script is designed and tuned for the 1D (daily) timeframe, though its inputs are fully adjustable for other timeframes.
The idea behind it
Momentum measured over one lookback is fragile: a 10-bar reading and a 60-bar reading frequently disagree, and whichever you pick can be caught out by the other's timescale. This indicator treats direction as an election across horizons instead of a single measurement.
For every horizon from the minimum to the maximum, it asks a simple yes/no question is price higher now than it was that many bars ago? Each horizon casts a vote of +1 (higher) or −1 (lower). Summing and normalising these votes produces a single momentum score between −1 and +1 that reflects how broadly the move is supported across timescales. A score near +1 means price is up over nearly every horizon (a broad, persistent advance); near −1 means the opposite; near 0 means the horizons are split and there is no coherent trend.
That breadth-of-momentum score is more robust than any one lookback because agreement across many horizons is harder to fake than a single reading, and disagreement is surfaced honestly as a neutral score rather than hidden inside one arbitrary length.
How it works
1. The vote
A for loop runs from Min Horizon to Max Horizon, comparing the source against its value "i" bars ago and adding +1 or −1 for each horizon. The total is divided by the number of horizons, giving a normalised score in the range .
2. The regime.
The score is compared against two thresholds:
-- If it reaches the Long Threshold, the regime turns long.
-- If it falls to the Short Threshold, the regime turns short.
-- Between the thresholds the current regime is held, the tool does not flip on marginal readings.
3. The trailing stop
An offset equal to ATR Multiplier × ATR is placed on the correct side of price:
-- On a fresh long signal the stop is set below price; while the long regime persists it only ever ratchets upward, locking in progress and never loosening.
-- On a fresh short signal the stop is set above price; while short it only ratchets downward.
-- The regime flips, and the stop jumps to the other side when the opposite threshold is met.
Because the stop can only tighten in the direction of the trend, it behaves like a one-way ratchet that follows favourable moves and holds its ground against pullbacks until the vote itself reverses.
Signal logic and markers
-- The stop line is green while the regime is long (plotted beneath price) and red while short (plotted above price).
-- A green up-triangle marks each flip to long; a red down-triangle marks each flip to short.
-- Two alert conditions, Vote Stop Long and Vote Stop Short, fire on those flips so the regime changes can be wired to TradingView alerts.
Inputs
-- Source : the price series the vote is measured on (default: hl2, the bar midpoint, which is slightly steadier than close).
-- Min Horizon / Max Horizon : the shortest and longest lookbacks in the vote. A wider span blends more timescales into the score.
-- Long Threshold : how strong the bullish vote must be to turn the regime long. Higher values demand broader agreement before committing.
-- Short Threshold : how weak (negative) the vote must be to turn the regime short.
-- ATR Length : the lookback for the Average True Range used to size the stop offset.
-- ATR Multiplier : how far the stop sits from price, in ATR units. Larger values give the trend more room to breathe (fewer, later exits); smaller values keep the stop tighter (quicker exits, more flips).
Note that the two thresholds are independent, so the tool can be set asymmetrically for example, requiring a stronger vote to enter long than to flip short, or vice versa to reflect a directional bias or differing conviction on each side.
How to use it
-- Trend direction and stop management : the line's side and colour give the current regime at a glance, while its level offers a systematic, volatility-scaled trailing reference that adapts as ATR expands and contracts.
-- Entries and exits : the flip markers indicate when broad momentum has changed sides; the trailing line indicates where that thesis would be invalidated.
-- Volatility awareness : because the offset is ATR-based, the stop automatically widens in turbulent conditions and tightens in calm ones, rather than using a fixed distance.
Notes and limitations
-- This is a reactive, trend-following tool. It follows momentum that is already underway and will change sides after a reversal has begun, not before it. It does not predict future prices.
-- In ranging or choppy markets the vote can oscillate around the thresholds, producing repeated flips ("whipsaw"). Wider horizon spans, more separated thresholds, and a larger ATR multiplier reduce this at the cost of responsiveness.
-- The stop is a calculated reference level, not a guaranteed exit price; actual fills depend on your broker, slippage, and market conditions.
-- There is no universally correct setting; the horizon range, thresholds, and ATR multiplier should be adjusted to the instrument and timeframe you trade.
Originality
This is not a standard ATR trailing stop or SuperTrend clone. The direction that governs the stop is not derived from a single moving average or band, but from a cross-sectional vote computed in a loop across many momentum horizons. The ensemble vote and the ratcheting ATR stop are combined into one tool: the breadth of momentum decides the regime, and the volatility-scaled stop expresses that regime as an adaptive, one-way trailing level.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice, nor a recommendation to buy or sell any asset. It is a decision-support tool, not a trading system, and the trailing stop it draws is a reference level, not an order or a guaranteed exit. Trading and investing carry substantial risk, including the possible loss of all capital. Past behaviour of any indicator or market is not indicative of future results, and no representation is made that its signals will be profitable. You are solely responsible for your own trading decisions and should conduct your own research and consult a licensed financial professional where appropriate. The author accepts no liability for any loss or damage arising from the use of this script. 指标

指标

ADVANCE Smart Money Concepts WITH EMA [BY MR BASIT]Here is a professional English description for your Smart Money Concept indicator:
Smart Money Concept (SMC) Indicator
The Smart Money Concept (SMC) Indicator is a professional trading tool designed to help traders identify institutional market behavior and high-probability trading opportunities with a clean and easy-to-read chart layout.
This indicator combines the most important Smart Money Concept elements into a single system, including Market Structure Shift (MSS), Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, Fair Value Gaps (FVG), Equal Highs (EQH), Equal Lows (EQL), Liquidity Zones, and session-based analysis.
Key Features:
• Automatic detection of Bullish and Bearish BOS and CHoCH.
• Identification of institutional Order Blocks and mitigation zones.
• Fair Value Gap (FVG) detection for imbalance trading opportunities.
• Equal High and Equal Low recognition for liquidity targeting.
• High and Low marking for important market levels.
• Clean and professional labels for improved chart readability.
• Integrated EMA 9 and EMA 15 for trend confirmation and trade filtering.
• Optimized for intraday, scalping, and swing trading strategies.
• Works across Forex, Indices, Commodities, and Cryptocurrency markets.
• Designed for TradingView with a focus on performance and visual clarity.
This indicator helps traders understand market structure from the perspective of institutional order flow, allowing for more informed trading decisions and better risk management.If you want, I can also create a shorter TradingView publish description or a premium-style commercial description for selling the indicator.
指标

Ha Smooth Scalperha smooth scalper
ha smooth scalper is a trend-following and scalping tool built around smoothed heikin-ashi logic, real structure trend locking, multi-timeframe confirmation, higher-timeframe filtering, protected structure levels, clean candle coloring, and a compact professional dashboard.
the goal of this indicator is to help traders stay with the real trend instead of reacting to every small candle color change.
in a strong bullish slope, the tool can keep the chart bullish until a real protected swing low is broken.
in a strong bearish slope, the tool can keep the chart bearish until a real protected swing high is broken.
this makes the trend view cleaner and helps reduce false flips during strong directional moves.
main concept
most candle-based systems change color too quickly.
a single weak red candle inside a strong bullish trend should not always mean the trend is bearish.
a single weak green candle inside a strong bearish trend should not always mean the trend is bullish.
ha smooth scalper solves this by combining:
smoothed heikin-ashi calculation
real structure lock
protected swing highs and swing lows
multi-timeframe agreement
extra higher-timeframe confirmation
trend cloud
optional smooth candle mode
professional dashboard
how the trend works
the indicator first builds smoothed heikin-ashi candles from the chart data.
then it uses a structure lock system to decide if the market is really bullish or bearish.
bullish trend
the market stays bullish while price respects the protected swing low.
small bearish candles inside the bullish slope do not automatically flip the trend.
the trend changes to bearish only when the protected support structure is broken.
bearish trend
the market stays bearish while price respects the protected swing high.
small bullish candles inside the bearish slope do not automatically flip the trend.
the trend changes to bullish only when the protected resistance structure is broken.
protected structure level
the protected structure line shows the key level that must break before the trend can truly change.
in a bullish trend, this level is usually below price.
in a bearish trend, this level is usually above price.
for beginners, this is one of the most important parts of the tool.
if the market is bullish and price stays above the protected structure, the bullish trend remains valid.
if the market is bearish and price stays below the protected structure, the bearish trend remains valid.
smooth lock candle mode
smooth lock candle mode is designed to keep chart colors aligned with the real structure trend.
when enabled:
bullish structure keeps candles bullish
bearish structure keeps candles bearish
minor counter-trend candles are ignored
color changes only happen after real structure breaks
this mode is useful for traders who want a cleaner trend view and fewer emotional exits.
multi-timeframe confirmation
the indicator includes six selectable timeframes.
each timeframe can be enabled or disabled.
the panel shows whether each selected timeframe is bullish or bearish.
the minimum timeframe agreement setting controls how many selected timeframes must agree before a signal is accepted.
example:
if six timeframes are enabled and the minimum agreement is set to three, at least three selected timeframes must agree with the signal direction.
higher values create fewer but cleaner signals.
lower values create more signals but with more risk of noise.
extra htf confirmator
the extra higher-timeframe confirmator is an additional filter designed to reduce weak buy and sell signals.
it can confirm direction using:
ema slope plus price
or heikin-ashi direction
when enabled, long signals require bullish higher-timeframe confirmation.
short signals require bearish higher-timeframe confirmation.
this is useful because many losing trades happen when lower-timeframe signals go against the larger trend.
signal logic
long signal
a long signal can appear when:
the structure flips bullish
enough selected timeframes agree
the extra htf confirmator agrees
the trend mode allows long entries
the impulse filter confirms body expansion
short signal
a short signal can appear when:
the structure flips bearish
enough selected timeframes agree
the extra htf confirmator agrees
the trend mode allows short entries
the impulse filter confirms body expansion
full confluence star
a star appears when all selected timeframes agree with the signal direction.
this is a stronger confluence condition, but it should still be used with proper risk management.
dashboard
the dashboard is designed to give a fast view of the market.
it shows:
chart trend
six timeframe directions
multi-timeframe agreement
extra htf confirmation
structure lock status
protected structure price
smooth lock candle state
last signal
the panel uses a clean grey professional style and can be moved around the chart.
how to use the indicator
step 1: check the chart trend
start with the first dashboard row.
if the chart trend is bullish, focus mainly on long setups.
if the chart trend is bearish, focus mainly on short setups.
beginners should avoid trading directly against the displayed structure trend.
step 2: check the protected level
look at the protected structure level.
in a bullish trend, this is the important level below price.
if price stays above it, the bullish structure remains valid.
in a bearish trend, this is the important level above price.
if price stays below it, the bearish structure remains valid.
step 3: check timeframe agreement
look at the six timeframe rows.
cleaner long conditions usually appear when most selected timeframes are bullish.
cleaner short conditions usually appear when most selected timeframes are bearish.
step 4: check the htf confirmator
if the extra htf confirmator is enabled, wait for it to agree with the trade direction.
bullish htf confirmation supports long setups.
bearish htf confirmation supports short setups.
step 5: wait for a signal
a long signal marks a bullish structure transition with confirmation.
a short signal marks a bearish structure transition with confirmation.
do not trade every signal blindly.
always check trend context, support and resistance, volatility, session timing, and risk placement.
beginner long example
1. chart trend is bullish
2. smooth lock candle mode shows bullish structure
3. most selected timeframes are bullish
4. extra htf confirmator is bullish
5. price holds above the protected structure level
6. a long signal appears
7. stop loss can be planned below the protected level or below a recent swing low
8. target can be based on resistance, previous high, or a fixed risk/reward plan
beginner short example
1. chart trend is bearish
2. smooth lock candle mode shows bearish structure
3. most selected timeframes are bearish
4. extra htf confirmator is bearish
5. price holds below the protected structure level
6. a short signal appears
7. stop loss can be planned above the protected level or above a recent swing high
8. target can be based on support, previous low, or a fixed risk/reward plan
important settings
pre-smooth length
controls the first smoothing applied to price before the heikin-ashi calculation.
lower values react faster.
higher values are smoother.
post-smooth length
controls smoothing after the heikin-ashi calculation.
higher values reduce noise and false movement.
lower values make the tool more reactive.
slow baseline length
controls the slow baseline used for trend context and pullback logic.
structure pivot strength
controls how strong a swing high or swing low must be before it can become a protected structure level.
lower values react faster.
higher values create stronger but slower structure levels.
structure break confirmation
close mode requires candle close beyond the protected level.
wick mode reacts faster but can be noisier.
structure break buffer
adds an atr buffer beyond the protected level before the structure is considered broken.
higher buffer creates fewer trend flips.
lower buffer creates faster flips.
minimum timeframes agreeing
controls how many enabled timeframes must agree before a signal is allowed.
higher values are stricter.
lower values are more aggressive.
extra htf confirmator
adds a higher-timeframe direction filter to help avoid weak lower-timeframe signals.
smooth lock candle mode
keeps the visible candle color aligned with the structure trend until a real structure break happens.
best beginner settings
for cleaner trend reading:
enable real structure trend lock: on
structure source: raw price
structure break confirmation: close
smooth lock candle mode: on
extra htf confirmator: on
use confirmed mtf candles: on
minimum timeframes agreeing: 3 or higher
glow baseline: off
confluence background tint: off
for faster scalping:
structure pivot strength: 6 to 8
minimum timeframes agreeing: 2 to 3
extra htf confirmator: on
smooth lock candle mode: on
for safer trend following:
structure pivot strength: 10 to 14
minimum timeframes agreeing: 4 to 6
extra htf confirmator: on
structure break buffer: higher value
alerts
the indicator includes alerts for:
long scalp
short scalp
full bull
full bear
structure bull break
structure bear break
for cleaner alerts, use once per bar close.
risk management
this tool helps identify trend direction and filtered signals, but risk management is still required.
before entering a trade, define:
entry
stop loss
target
position size
invalidated condition
a good signal without risk management can still become a bad trade.
final note
ha smooth scalper is designed to make trend direction cleaner, reduce false color flips, and help traders focus on higher-quality conditions using structure, smoothing, multi-timeframe alignment, and higher-timeframe confirmation.
指标

Opening Delta Supply Demand HybridOpening Delta Supply Demand Hybrid
This indicator combines Daily Supply and Demand zones, LVN confluence, Money Flow high-trade zones, and Opening Delta dominance pressure.
It detects important supply and demand areas from daily price and volume behavior. The zones stay active until price fully breaks them with a candle close. A supply zone is invalidated only when price closes above it, and a demand zone is invalidated only when price closes below it.
The Opening Delta model measures buyer and seller pressure from the session open. It tracks delta strength, dominance, RVOL, candle quality, superior delta, and dominance flips. If real volume delta is unavailable or returns zero, the indicator can use a candle-volume fallback to keep signals working.
BUY signals appear when price rejects a demand zone and Opening Delta confirms buyer strength. SELL signals appear when price rejects a supply zone and Opening Delta confirms seller strength. The indicator blocks signals when the global strength favors the opposite side.
It also includes a Money Flow High Trade Zone, which highlights the price area with the highest money flow activity from the daily profile.
Main features:
Daily Supply and Demand zones
LVN confluence
Money Flow high-trade zone
Opening Delta buyer/seller pressure
Dominance strength table
BUY and SELL confirmation arrows
Alerts for hybrid signals and delta conditions
Configurable filters for stricter or more aggressive signals
How To Use
Add the indicator to your chart and choose the market/session you trade.
Set the session start time to match your market open.
For example, US index futures usually use 9:30 New York time for the cash open.
Watch the supply and demand zones:
Demand zones are potential bounce areas.
Supply zones are potential rejection areas.
Zones remain active until price fully breaks them with a candle close.
Use the Opening Delta table to read market control:
BUYERS means buyer pressure is stronger.
SELLERS means seller pressure is stronger.
BALANCED means there is no clear dominance.
Look for confirmed signals:
A BUY signal appears when price rejects a demand zone and buyer pressure confirms the bounce.
A SELL signal appears when price rejects a supply zone and seller pressure confirms the rejection.
Avoid trading against the strength:
If price touches demand but strength favors sellers, the indicator blocks the BUY signal.
If price touches supply but strength favors buyers, the indicator blocks the SELL signal.
Use the Money Flow High Trade Zone as an important reaction area.
This zone shows where the highest money flow activity occurred in the daily profile.
Adjust the filters:
Use stricter settings for fewer but stronger signals.
Disable some confirmations for more aggressive signals.
Lower the cooldown if you want more frequent arrows.
Basic Rule
Buy only when price reacts from demand and Opening Delta supports buyers.
Sell only when price reacts from supply and Opening Delta supports sellers. 指标

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.
指标

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. 指标

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. 指标

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). 指标

指标

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. 指标

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.
指标

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 指标

指标

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. 指标

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. 指标

指标

指标

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.
指标

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. 指标

指标

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.* 指标

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. 指标
