VWAP Choppy Market Detector [TradingFinder] Trend Range🔵 Introduction
Markets are not always clean. Sometimes price moves with a clear bullish or bearish direction, sometimes it stays inside a range, and sometimes it keeps shifting back and forth with no reliable structure. This indicator uses VWAP-based bands to make these market conditions easier to read directly on the chart, showing trend, range, and choppy price action through simple visual zones.
In trending markets, the bands remain more stable and highlight the dominant side of the market. Green zones show bullish pressure, while red zones show bearish pressure. When price moves sideways, the indicator marks the range area with purple zones and shows the Range High and Range Low, making the upper and lower limits of the consolidation easier to follow.
The choppy market signal comes from the behavior of the colors themselves. When the chart keeps changing between bullish, bearish, and range states, it reflects unstable price action, frequent market behavior shifts, and chaotic volatility. This makes the indicator useful for reading when the market has a clean direction, when it is trapped inside a range, and when price movement becomes too noisy or uncertain.
🔵 How to Use
Start by looking at the overall color behavior on the chart. The main purpose of this indicator is to show the current market environment through VWAP-based bands, so the first step is not to look for a single signal, but to understand the condition of the market. When the colors stay stable for a longer period, the market is usually showing a clearer structure. When the colors change repeatedly, the market is shifting between different states and price action is becoming less stable.
Green areas show bullish trend conditions. In this state, price is trading with stronger upward pressure and the market is moving with a clearer bullish bias. Traders can use this condition as a trend filter, a continuation filter, or a confirmation tool before looking for long setups with their own strategy. A stable green zone usually means the market is cleaner for bullish trend-following ideas compared to a market where the color keeps changing.
Red areas show bearish trend conditions. In this state, price is trading with stronger downward pressure and the market is moving with a clearer bearish bias. Traders can use this condition to filter short setups, confirm bearish continuation, or avoid taking long trades against the dominant market behavior. When the red zone remains stable, it shows that the bearish side of the market is more consistent.
Purple areas show range market conditions. In this state, price is moving inside a more limited structure instead of trending strongly in one direction. The upper and lower range boundaries can be used to understand where the market is consolidating. The upper boundary works as the Range High, while the lower boundary works as the Range Low. These levels help traders see the current sideways structure more clearly and follow how price reacts inside the range.
In a range market, traders can use the Range High and Range Low as visual reference levels. Price near the upper boundary may show that the market is testing the top of the range, while price near the lower boundary may show that the market is testing the bottom of the range. This can be useful for range analysis, mean-reversion setups, support and resistance reading, and identifying where price is likely to react inside a consolidation area.
Choppy market behavior is read through frequent color changes. When the chart keeps switching between green, red, and purple, it shows that the market does not have a clean direction. This kind of behavior usually means price is unstable, market bias is changing quickly, and volatility is becoming chaotic. Instead of treating these color changes as random noise, they should be read as the main warning sign of a choppy market.
One of the most useful applications of this indicator is avoiding poor trading conditions. Many strategies perform well in clean trends but struggle when the market becomes choppy. If the colors change too often and price fails to hold a stable condition, traders can use that information to reduce exposure, wait for a clearer structure, avoid overtrading, or be more selective with entries.
The indicator can also be used as a trend-following filter. When the market remains green, traders can focus more on bullish setups. When the market remains red, traders can focus more on bearish setups. This does not mean every green area is a buy signal or every red area is a sell signal. It means the market condition is more aligned with that side, and traders can combine it with their own entry model, price action setup, support and resistance level, or risk management plan.
Another use case is range detection. When the indicator marks a purple range, traders can quickly see that price is no longer moving with strong directional pressure. This helps separate trending conditions from sideways conditions. Range detection can be useful for traders who use consolidation breakouts, range trading, mean reversion, liquidity sweeps, or support and resistance reactions.
The indicator can also help with breakout context. Before a breakout, price often spends time inside a range. By watching the Range High and Range Low, traders can better understand where the range is forming and where a breakout attempt is happening. If price leaves the purple range and the market shifts into a stable green or red condition, traders can use that as extra context that the market behavior has changed from consolidation to directional movement.
For choppy market analysis, the most important thing is the speed and frequency of the color changes. A few normal changes can happen during transitions, but repeated switching shows that the market is unstable. This can help traders recognize fake breakouts, messy pullbacks, weak trend conditions, and periods where price does not respect a clean structure.
The timeframe setting controls the VWAP anchor period. Daily mode is more suitable for short-term and intraday analysis. Weekly mode gives a broader view of the current week’s VWAP structure. Monthly mode provides a higher-timeframe view and can be useful for swing trading or larger market context. Traders can choose the anchor timeframe based on the way they trade and the amount of market structure they want to see.
The Band Multiplier controls the width of the main VWAP bands. A wider band gives a broader market structure, while a smaller band keeps the bands closer to price. This setting affects how the trend and volatility structure is displayed on the chart. Traders can use it to match the indicator with different symbols, sessions, and volatility conditions.
The Range Multiplier controls the sensitivity of the range detector. A lower value makes the range detection more sensitive, so range areas may appear more actively. A higher value makes the range detection more conservative, so the indicator becomes more selective when marking range conditions. This setting is useful because different markets do not move the same way; some symbols are naturally smoother, while others are more volatile and noisy.
The VWAP line can be shown or hidden depending on the trader’s preference. When enabled, it gives a direct view of the VWAP reference line inside the band structure. Some traders may use it as a central fair-value reference, while others may prefer to keep the chart cleaner and focus only on the colored bands and market regime zones.
This indicator can be used by scalpers, intraday traders, swing traders, and market structure traders. Scalpers may use it to avoid fast choppy conditions and focus on cleaner short-term movement. Intraday traders can use it to read the daily or weekly VWAP structure. Swing traders can use weekly or monthly mode to understand broader market behavior. Price action traders can use it as a visual filter for trend, range, and unstable market conditions.
The best way to use the indicator is as a market condition tool, not as a standalone entry system. Its main value is helping traders understand when the market is trending, when it is ranging, and when price action is too choppy to read clearly. Once the market condition is clear, traders can apply their own strategy with better context.
🔵 Settings
TimeFrame : This setting defines the VWAP anchor period used by the indicator. Traders can choose between Daily, Weekly, and Monthly modes. Daily mode follows the current day’s VWAP structure, Weekly mode uses the current week’s VWAP structure, and Monthly mode shows a broader VWAP structure based on the current month.
Band Multiplier : The Band Multiplier controls the width of the main VWAP bands. A higher value makes the bands wider and gives more space around price, while a lower value keeps the bands closer to price. This setting affects how the indicator displays the main trend and volatility structure.
Range Multiplier : The Range Multiplier controls the sensitivity of the range detector. Lower values create High Range Sensitivity, so the indicator detects range conditions more actively. Higher values create Low Range Sensitivity, making range detection more selective and conservative.
Show VWAP Line : This option shows or hides the VWAP line on the chart. When enabled, the VWAP line can be used as the central reference inside the band structure. When disabled, the chart stays cleaner and the focus remains on the colored market condition zones.
🔵 Conclusion
Market conditions can change quickly, and not every move has the same quality. A clean trend, a structured range, and a choppy market need to be read differently. This indicator helps make that difference more visible by using VWAP-based bands and color behavior to show when price is moving with direction, when it is consolidating, and when the market is becoming unstable.
The main strength of the tool is its visual reading of market behavior. Stable green or red zones make trending conditions easier to follow, while purple zones highlight range structures with clear upper and lower boundaries. When the colors start changing frequently, that shift itself becomes an important warning that price action is noisy, unstable, and moving without a clean direction.
Overall, the indicator gives traders a clearer way to read trend, range, and choppy market conditions before making trading decisions. It is best used as a market environment filter, helping traders understand the current price behavior and decide whether the market is clean enough for their strategy or too chaotic to trade confidently.
지표

Optimal Trade Entry + Silver Bullet [Quantum Algo]Optimal Trade Entry + Silver Bullet
====================================================
🔶 OVERVIEW
Optimal Trade Entry + Silver Bullet is an automated ICT-style Fibonacci retracement engine that combines the Optimal Trade Entry (OTE) concept with the three Silver Bullet time windows. The indicator confirms market structure through swing highs and swing lows, detects a break of structure, automatically anchors a Fibonacci grid to the impulse leg, and highlights the 61.8% to 79% retracement zone — the Optimal Trade Entry zone — as a gradient that intensifies toward the 70.5% sweet spot. Every zone tap is graded with a transparent confluence score built from time-of-day windows, fair value gaps, and liquidity sweeps.
The goal is simple: remove the two biggest sources of error in discretionary Optimal Trade Entry trading — anchoring the Fibonacci retracement to the wrong leg, and taking entries outside the hours when the model statistically performs.
🔶 WHAT IS THE OPTIMAL TRADE ENTRY ZONE?
The Optimal Trade Entry is a smart money concept describing the discount (in an uptrend) or premium (in a downtrend) portion of an impulse leg where institutional participants typically complete their entries after a trend has been confirmed. It is defined as the area between the 61.8% and 79% Fibonacci retracement of the most recent impulse, with the 70.5% level acting as the statistical sweet spot. Price retracing into this zone after a break of structure offers a defined-risk entry: the stop belongs beyond the origin of the leg, and the targets project into the extension levels beyond the impulse extreme.
🔶 WHAT ARE THE SILVER BULLET WINDOWS?
The Silver Bullet model restricts trading to three specific one-hour windows in New York time, when algorithmic price delivery is most likely to seek liquidity and fill fair value gaps:
- London Open window — 03:00 to 04:00
- New York Morning window — 10:00 to 11:00
- New York Afternoon window — 14:00 to 15:00
This indicator shades each window on intraday charts, labels the window open, and treats window activity as a scoring input: an Optimal Trade Entry tap that occurs inside an active window grades higher than one that occurs outside it.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. Pivot-and-shift automatic anchoring. The Fibonacci grid is never drawn from arbitrary pivots and never requires manual anchoring. It appears only after price closes through a confirmed swing point — a genuine break of structure — and anchors to the true origin of the impulse leg.
2. Dynamic leg stretching. While the trend continues printing new highs or new lows, the grid stretches with the market in real time, so the retracement zone is always measured against the current, mathematically complete leg — not a stale one.
3. Time-based signal qualification. The Silver Bullet windows are not decorative background shading. They are wired directly into the signal engine and the grading model, which is what separates this tool from a standard Fibonacci retracement indicator.
4. Transparent confluence grading. Every signal receives a grade of A+, A, B, or C based on four observable, verifiable conditions: entry zone tap, active Silver Bullet window, directional fair value gap formed inside a window on the current leg, and a liquidity sweep at the leg origin (the anchor pivot running the stops beyond the pivot before it). Nothing is hidden, nothing is repainted, and nothing is curve-fit.
🔶 HOW IT WORKS
Market structure engine: Swing highs and swing lows are confirmed with a symmetric pivot lookback. A candle close above the last confirmed swing high shifts the engine bullish; a close below the last confirmed swing low shifts it bearish. All signals are evaluated on closed bars only, so entries do not repaint.
Fibonacci retracement grid: On each break of structure the impulse leg is measured from the anchor pivot to the running extreme. The script plots the origin (1.0), equilibrium (0.5), the entry zone borders (0.618 and 0.79), the sweet spot (0.705, dotted), the impulse extreme (0.0), and two target extensions (default -0.27 and -0.62).
Entry zone gradient: The zone between 0.618 and 0.79 renders as four stacked slices whose opacity increases toward the 0.705 sweet spot, giving an immediate visual read of where the highest-probability fill sits.
Fair value gap engine: Three-candle imbalances that clear a minimum size threshold (measured against average true range) are boxed on the chart. By default only gaps forming inside an active Silver Bullet window are drawn, and every gap grays out automatically once price mitigates it, keeping the chart clean.
Liquidity sweep detection: When the anchor pivot of a new leg trades through the pivot before it — sell-side liquidity taken before a bullish leg, or buy-side liquidity taken before a bearish leg — the setup is flagged as a sweep and grades higher.
Trade plan projection: When price taps the entry zone and passes the active filters, the script prints a graded signal marker plus Entry, Stop (beyond the leg origin with an average-true-range buffer), Target One, and Target Two, each labeled with its exact price.
Dashboard: A compact panel tracks directional bias, live retracement percentage, entry zone status, sweet spot price, the active Silver Bullet window, fair value gap confluence count, and liquidity sweep status at a glance.
🔶 HOW TO USE IT
1. Apply the indicator to an intraday chart. One-minute to fifteen-minute timeframes suit the Silver Bullet windows best; the Fibonacci engine itself works on any timeframe.
2. Wait for the dashboard bias to flip after a break of structure.
3. Let price retrace. The dashboard shows the live retracement percentage as price approaches the Optimal Trade Entry zone.
4. The strongest setups tap the gradient inside an active Silver Bullet window after a liquidity sweep, with a fair value gap in the direction of the leg — that is the A+ profile.
5. Use the printed Entry, Stop, and Target levels as reference geometry, then apply your own position sizing and risk management.
6. Tighten or relax the engine with the two signal filters: Require Active Silver Bullet Window and Require Fair Value Gap Confluence.
🔶 SETTINGS
- Swing Detection Length — pivot lookback controlling structure size; higher values track larger legs.
- Completed Setups To Keep, Fair Value Gaps To Keep, Trade Plans To Keep — cap how many historical drawings remain, so the chart stays clean and the auto-scale stays anchored to current price.
- Independent toggles for each Silver Bullet window, the Fibonacci grid, the zone gradient, equilibrium, targets, and the dashboard.
- Fully customizable colors and dashboard position.
🔶 ALERTS
- Bullish Optimal Trade Entry — price tapped the bullish zone and passed the active filters.
- Bearish Optimal Trade Entry — price tapped the bearish zone and passed the active filters.
- Silver Bullet Window Opened — one of the three windows just began.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? Entries are evaluated on closed bars only. Swing pivots require confirmation by design, which introduces intentional lag but keeps historical signals fixed.
Which markets does it work on? Any symbol with candle data — cryptocurrency, forex, gold, indices, stocks, and futures. The Silver Bullet windows reference New York time regardless of your chart timezone.
Which timeframe is best? The Silver Bullet windows require an intraday chart (sixty minutes or below). The one-minute to fifteen-minute range is the classic application; the Optimal Trade Entry engine alone also functions on higher timeframes.
What does the grade mean? It is a count of observable confluences (zone tap, window, gap, sweep) — a transparency tool, not a win-rate prediction.
🔶 LIMITATIONS
Pivot confirmation is intentionally delayed by the swing length, so the engine describes confirmed structure rather than predicting it. Retracements can exceed the zone and invalidate the leg during strong counter-moves. Grades measure confluence, not probability of profit. No indicator replaces independent analysis.
🔶 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 behavior of any level, time window, or signal does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently. 지표

Renaissance Mean Reversion [JOAT]RENAISSANCE MEAN REVERSION
A tribute to the Medallion-style statistical-arbitrage approach: do not trade price — trade the spread between price and its smoothed expectation , measure how reliably that spread mean-reverts using an AR(1) half-life regression , and only fire signals when the half-life is fast enough to be tradeable. The result is a discipline-enforcing engine that says no more often than yes : it refuses to take a reversion trade until the spread shows it actually reverts.
The synthetic spread
The script builds a synthetic pair from two views of the same instrument:
Leg 1 — current price (configurable source).
Leg 2 — long EMA of price (default 50-bar; configurable).
Spread = price − long EMA (or ln(price) − ln(EMA) when log-spread mode is on, removing scale).
The spread is then Z-scored over a configurable lookback (default 100 bars) to produce a stationary stationary signal that says: "how many standard deviations is the spread from its own mean right now?". This is the textbook stat-arb construction, single-leg version.
Half-life regression — the gate
This is what makes the script institutional rather than retail. Reversion is meaningless if the spread does not actually revert. The script fits an AR(1) regression over a configurable window (default 120 bars):
Δspread_t = α + β · spread_{t−1} + ε_t
The half-life of mean reversion is then:
HL = −ln(2) / ln(1 + β)
When β is negative and close to zero, HL is short — the spread reverts quickly. When β approaches −1, HL is huge — the spread barely reverts. When β is positive, the spread is anti-mean-reverting (trending) and the script will refuse to trade.
A configurable Max Half-Life (default 20 bars) gates signals — entries only fire when HL is below this threshold. A configurable Min Half-Life (default 0.5) floors the estimate to avoid degenerate near-zero values that would otherwise produce explosive signals.
This is the headline filter. Roughly 50–70% of bars on most instruments fail it — which is the point. You only trade when the spread has earned the right.
Entry / Exit logic
R-LONG — fires when Z < −entryZ (default −2.0) AND HL is below the max threshold AND the re-entry cooldown has elapsed. Spread is stretched too far below, will revert.
R-SHORT — fires when Z > +entryZ AND HL is below the max threshold AND cooldown elapsed.
R-EXIT — fires when |Z| drops below exitZ (default 0.25) OR when Max Hold Bars (default 40) has been reached, whichever comes first.
A configurable re-entry cooldown (default 3 bars) prevents immediate re-firing on the same side.
Visual system — minimal mono institutional
The aesthetic is intentionally austere — Renaissance's research-paper minimalism. Pure monochrome:
Z guides on right side of chart — small text labels showing current Z, HL, and tradeable status.
R-LONG / R-SHORT / R-EXIT labels — clean text tags on entry and exit bars.
Half-Life overlay label — current HL value displayed near the live close.
Shaded ribbon between price and slow EMA (configurable transparency).
Trade entry/exit shapes — small markers at signal bars.
Single-hue tradeable-regime tint (off by default) — subtle bgcolor when HL is fast AND Z is stretched.
A locked Minimal Mono palette: white bull / gray bear / pure-black background. No accent colours. The chart looks like a quant research paper. Intentional.
Dashboard
Monospaced table positionable to any of eight corners. Surfaces:
Current spread value and Z score.
Current half-life (in bars) with tradeable / non-tradeable flag.
AR(1) β coefficient (the regression's directional read).
Z thresholds in use.
Last signal direction with bars-ago.
Max-hold bars remaining (when in a position).
Rolling backtest tracker
The script tracks the last N closed reversion trades (configurable, default 200) and surfaces:
Total trades, wins, losses.
Win rate.
Average bars-to-exit.
Average Z magnitude at entry.
Hit-rate by side (R-LONG vs R-SHORT).
This is the script's own performance audit — you see whether the engine is finding genuine reversion or whether the current regime is breaking it.
Alerts
Three alert conditions, each independently controllable:
Reversion Entry (R-LONG or R-SHORT)
Reversion Exit (R-EXIT)
Half-Life crosses Max Half-Life (regime change — reversion is becoming unreliable)
How to read it
Three reads, in order of conviction:
R-LONG / R-SHORT with very fast HL (e.g. HL = 4 bars on a 1H chart) — the script's intended high-conviction setup. The spread is stretched, the math says it will revert quickly, the chart agrees. This is the institutional setup.
Half-life crossing above max (alert) — regime warning. The instrument is shifting from mean-reverting to trending. Any open R-positions should be re-evaluated; new R-entries should be paused until HL re-tightens.
Sustained R-EXIT triggers from time-stop (max-hold) rather than from Z returning to neutral — the script is exiting because the trade ran out of time, not because the thesis played out. Recurring time-stop exits mean the current parameters do not fit the instrument.
The rolling backtest win-rate is your auditor. When it climbs, the engine is finding edge. When it grinds flat or declines, the regime has changed and the parameters need adjustment.
Suggested settings
Defaults (long EMA 50, Z lookback 100, regression window 120, max HL 20 bars, entry Z 2.0, exit Z 0.25) are tuned for 1H–4H on liquid markets where mean reversion is statistically meaningful. For lower timeframes drop everything proportionally (long EMA 25, Z 50, regression 60). For HTF raise everything (long EMA 100, Z 200, regression 200). The max HL is the most sensitive parameter — narrow it (10–15) for high-conviction-only filtering; widen it (25–30) for more frequent signals.
Originality / what's reused
The synthetic-pair Z-score construction is textbook stat-arb. The AR(1) half-life regression is published quantitative finance — the Ornstein–Uhlenbeck-process speed-of-reversion estimator. The implementation here — the dual-leg synthetic spread with optional log construction, the rolling Z-normalisation pipeline, the AR(1) regression with HL formula and min/max-HL gating, the entry/exit state machine with cooldown and max-hold, the rolling N-trade backtest tracker, and the minimal-mono institutional aesthetic — is JOAT-original. No third-party code reused. The script is a tribute to the Medallion-style approach, not a direct replication of any proprietary Renaissance Technologies code.
Limitations
The single-leg "synthetic pair" (price vs its own EMA) is a degenerate stat-arb construction by design — true stat-arb uses two genuinely co-integrated instruments. Pine's per-script symbol limitation makes a two-instrument cointegration construction impractical for a standalone indicator; this script captures the methodology of stat-arb (spread + Z + HL gate) on the single-instrument case. The HL estimate is statistical and needs the regression window populated; early bars give a warm-up read.
—
-made with passion by jackofalltrades
지표

Smart Ichimoku | GainzAlgoOverview
Most Ichimoku indicators give you the same signal everyone else gets, a raw cloud cross with no filter, no context, and no target. This indicator rethinks the system from the ground up by combining a smoothed Ichimoku cloud with an inline logistic regression classifier that scores every cloud break in real time, then projects statistically-derived price targets the moment a confirmed signal fires.
The result is a cleaner, higher conviction version of one of the most respected trend frameworks in technical analysis.
The Foundation: Why Smooth the Ichimoku?
Traditional Ichimoku uses simple high-low midpoints (Donchian midlines) for its Tenkan, Kijun, and Senkou components. This makes the cloud visually choppy and prone to false crosses on noisy, volatile instruments like crypto or high-beta equities.
This indicator replaces all three components with Hull Moving Averages (HMA), which are designed to be simultaneously smooth and responsive, reducing lag without the whipsaw of standard smoothing. The cloud body itself becomes cleaner, the baseline is less noisy, and the cross events that trigger signals are more structurally meaningful.
All default periods match classic Ichimoku settings (9 / 26 / 52 / 26 displacement) so the logic stays true to the original system, it's just rendered with better math underneath.
The Signal: Logistic Regression Cloud Break Classifier
Here's where this indicator separates itself. A cloud cross alone is not a signal, it's a candidate. What actually matters is whether the market conditions at the moment of the cross are consistent with a real, sustained breakout or breakdown.
The classifier answers that question with a probability score.
How it works
At the exact bar where price exits the cloud body, four normalized features are computed and fed into a logistic regression model:
1. RSI (centered at 50, scaled by 25)
Measures momentum. On a bearish break, is RSI already extended to the downside? On a bullish break, is it pointing up? RSI near 50 adds little conviction; RSI at 30 on a bear break adds a lot.
2. Stochastic Oscillator (centered at 50, scaled by 25)
Short-term overbought/oversold confirmation. Works similarly to RSI but captures faster-cycle momentum, giving the model a second read on the same question.
3. Z-Score (price vs 20-bar mean, normalized by standard deviation)
Measures how statistically extended price is relative to recent history. A cloud break accompanied by a Z-Score of -2 is much more meaningful than one at Z = -0.2. This feature effectively asks: "Is this break happening from an already-stretched position?"
4. Cloud Break Depth (normalized by ATR)
How far did price close through the cloud boundary, relative to recent volatility? A close that barely clips the edge is very different from one that punches through by a full ATR. This is the most direct measure of breakout conviction.
The Math
Each feature is multiplied by a weight and summed into a single score (z). That score is passed through the sigmoid function:
P = 1 / (1 + e^(-z))
This compresses the output to a probability between 0 and 1. If the probability clears the threshold (default 0.60), the break is confirmed and a signal fires. Below threshold, the cross is rejected — instead of being ignored, it's labeled with a risk tier so you can see exactly how close (or far) it came to confirming.
The probability score is displayed as a small percentage label directly on the signal bar so you always know how strong the classifier rated that particular break.
Self-Calibrating Weights — No Manual Tuning
Unlike a typical multi-feature model, none of the four weights are set by hand. Each one is derived automatically from that feature's own rolling correlation with next-bar returns, recalculated continuously over a user-set lookback window (the "Self-Calibration Window," default 100 bars).
In practice this means: if RSI has been a genuinely useful predictor of direction on this instrument and timeframe recently, its weight rises on its own. If Z-Score has been mostly noise in the current regime, its weight shrinks toward zero — automatically, without anyone touching a slider.
This was a deliberate design choice. Letting people hand-tune regression weights invites a lot of well-intentioned guesswork that usually overfits to a handful of recent candles. By having the model score its own features based on demonstrated, rolling predictive power, the classifier adapts to changing market conditions instead of running on opinions baked in at setup time.
Rejected Crosses: Risk-Tiered Labels
Not every cloud cross clears the threshold, and that's the point. Rather than silently discarding rejected crosses, this indicator labels every one of them with a risk tier so you know exactly what the model saw and how close it came to confirming:
Low Risk: Probability fell just short of the threshold (within 10 points below). A near-miss — the break had real conviction behind it, it simply didn't clear the bar.
Moderate Risk: Probability landed meaningfully below threshold (10–25 points). A weaker break with mixed signals underneath it.
High Risk: Probability came in far below threshold (25+ points). A break with little to no underlying conviction — most consistent with chop or noise.
Each label shows its tier and the actual probability (e.g. "Low Risk ▼ 54%"), so nothing is a black box. A cluster of Low/Moderate Risk labels in one zone often signals a contested area that's likely to resolve into a real breakout once it's worked through — useful context even though no trade signal fired. These labels can be toggled off entirely in settings if you'd rather only see confirmed signals.
The Targets: Mean, Median, Mode
Once a confirmed break fires, three dashed horizontal target lines project from the signal bar. These are not arbitrary multiples, they are derived from the actual statistical distribution of bar-to-bar price moves over the lookback window.
Mean (Yellow): The average absolute bar move over the lookback period, scaled by the target multiplier. This is the "expected" target under normal conditions.
Median (Cyan): The 50th percentile of historical moves. Because move distributions are right-skewed (a few large moves pull the mean up), the median is typically more conservative than the mean and often a more realistic first target.
Mode (Hot Pink): The most frequently occurring move size, derived by bucketing historical moves into ATR-width bins and finding the most populated bin. This represents what the market most commonly does — not what it averages, not the middle value, but the single most likely outcome based on observed frequency.
Together, the three targets give you a realistic range rather than a single arbitrary level — grounded in what this instrument has actually done over the recent past. Bull and bear target sets are tracked independently, so a new bearish break won't erase an active bullish target set still in play, and vice versa.
The Target Multiplier (default 3×) scales all three targets proportionally. Lower it for tighter, shorter-term targets; raise it for swing trades or higher-volatility instruments.
Reading the Chart
Green triangle (▲) below bar: Confirmed bullish cloud break. Price has exited the top of the cloud with sufficient classifier probability. Three upward target lines appear.
Pink triangle (▼) above bar: Confirmed bearish cloud break. Price has exited the bottom of the cloud with sufficient classifier probability. Three downward target lines appear.
Percentage label: The LR probability score for that break (e.g. "73%"). Higher is stronger.
Risk-tiered label (amber/orange/red): A cloud cross that was rejected, with its tier and probability shown.
Yellow dashed line: Mean target
Cyan dashed line: Median target
Hot pink dashed line: Mode target (thicker, as it represents the highest-frequency outcome)
Settings Guide
Smooth Ichimoku
Tenkan / Kijun / Senkou Period: Standard Ichimoku periods. Default 9/26/52 follows the classic system. Shorter periods = more sensitive, more signals. Longer = slower, fewer but stronger signals.
Displacement: How far forward the cloud is projected. Default 26.
Break Classifier
Self-Calibration Window: How many past bars the model uses to learn each feature's weight from its recent correlation with price moves. Shorter windows adapt faster to regime changes but can be noisier; longer windows are more stable but slower to react. Default 100.
Break Probability Threshold: The minimum probability required to confirm a signal. Default 0.60. Raise toward 0.75+ for fewer, higher-conviction signals. Lower toward 0.50 to see more cloud breaks confirmed (effectively turns the filter off at 0.50).
Targets
Lookback (bars): How many bars of historical move data to use for the distribution calculation. Default 60. Longer lookback = more stable targets based on longer-term behavior. Shorter = more reactive to recent volatility.
Target Multiplier: Scales all three target lines proportionally from the signal close. Default 3×. Adjust based on your timeframe and typical holding period.
Risk Labels
Show Risk Labels on Rejected Crosses: Toggles the Low/Moderate/High Risk labels on rejected cloud crosses. Off by default for a cleaner chart; turn on to see every cross the model evaluated, not just the confirmed ones.
How to Use It
As a trend confirmation tool: Use the cloud direction (cyan dominant = bullish structure, pink dominant = bearish) as your bias filter, and only trade signals that align with the cloud color. Bull signals below a cyan cloud, bear signals above a pink cloud.
As a breakout entry trigger: Wait for price to consolidate inside or near the cloud, then take the confirmed break as an entry signal. The probability label tells you how much conviction the model has at that moment.
Using rejected crosses as context: A string of Low Risk labels in a zone suggests the cloud is being tested seriously without quite breaking — often a precursor to a real move once the level finally gives.
For target setting: Use the median as a conservative first target, the mean as a mid-range objective, and the mode as a guide to where the most "normal" move tends to land. The hot pink mode line is often the most useful for setting realistic profit expectations.
For alerts — Four alert conditions are built in: "Confirmed Bull Break," "Confirmed Bear Break," "Rejected Bull Cross," and "Rejected Bear Cross." Set them on your preferred timeframe and let the classifier notify you rather than watching the chart.
Timeframe Notes
This indicator works across all timeframes but behaves differently depending on context:
1H–4H: Good balance of signal frequency and reliability. Recommended starting point.
Daily: Fewer signals, higher structural significance. Best for swing traders.
15m and below: More signals, more noise. Consider raising the threshold to 0.65–0.70 and reducing the lookback to 30. Watch the risk-tiered labels here in particular — they're most useful for filtering chop on fast timeframes.
Example on the Daily with SPY ETF:
Example on the 4 Hour with BTCUSD;
Example on the 15 Minute with QQQ:
A Note on the Model
The logistic regression here is not trained on historical data in the machine learning sense, and it no longer relies on manually-set weights either. Each feature's weight is derived from its own rolling correlation with subsequent price action, recalculated continuously. Think of it less as a black-box ML model and more as a structured, self-adjusting way to combine four momentum and positioning indicators into a single probability score, similar to our Directional Logistic Oscillator.
The advantage over a traditional multi-condition filter (RSI < 40 AND stoch < 30 AND...) is that the sigmoid function produces a continuous probability rather than a binary pass/fail, which means the model degrades gracefully, a break with three strong features and one neutral one still scores well, rather than getting blocked by an arbitrary threshold on the weak feature. And because every rejected cross is shown with its tier and score rather than discarded silently, nothing the model does is hidden from you.
We hope you enjoy! 지표

All Session Levels (Futures) - Asia, London, Overnight, NY PriorA session-levels built for trading during the New York session on the Micro Dow (MYM), though it works on any index future or intraday symbol. The core idea: the Asia and London sessions are thin and choppy on the Dow because the underlying US cash market is closed; rather than trading those sessions directly, this indicator plots the key levels they leave behind and helps you trade them when real volume arrives at the 9:30 ET open.
What it plots
Asia session high/low (default 8:00 PM–2:00 AM ET) — overnight liquidity pools.
London session high/low (default 3:00 AM–8:00 AM ET) — the more recent, more relevant overnight range.
Overnight high/low (ONH/ONL) — the full overnight range.
Prior day NY high/low/close — the most-watched daily references, drawn per-day so they don't stretch across chart history.
9:30 NY open marker and a shaded 9:30–10:30 killzone highlighting the highest-probability window.
Auto-detected supply and demand zones — the script identifies base-then-impulse departures (a tight consolidation candle followed by a strong directional move) and draws the base as a zone. Zones remain on the chart only until mitigated: once price closes fully back through a zone, it's automatically removed, so you only ever see live, untested zones.
Info dashboard (top-right) listing every current level and its price.
Alerts
Eight built-in alert conditions: level breaks (London, Asia, and overnight highs/lows) and zone taps (when price enters the most recent unmitigated demand or supply zone). Create them via the alarm-clock icon after adding the indicator; "Once Per Bar Close" is recommended for the break alerts.
How to use it
Set your chart timezone to America/New York (or adjust the timezone input to match your data feed).
Run it on an intraday timeframe, 3m to 15m is the sweet spot; 5m is a good all-round default.
Before the open, review the plotted overnight and prior-day levels.
In the 9:30–10:30 window, watch for price interacting with those levels: a clean break-and-hold for continuation, or a failed break that snaps back inside the range for a reversal.
Use the confluence of a zone tap, price extended past VWAP, and volume for entry confirmation.
Notes and settings
All session windows are fully adjustable in the settings, as are colors, and the supply/demand sensitivity (impulse strength, base size, lookback, and max zones per side).
The overnight window contains the Asia and London windows by design, so ONH/ONL will often overlap those extremes — toggle it off if you prefer less overlap.
The zone-tap alerts track only the most recent unmitigated zone on each side to avoid alert spam.
Disclaimer
This is an analysis and charting tool, not a trading system or financial advice. It does not generate buy/sell signals or guarantee any outcome. Levels and zones are calculated from historical price and session times; past behavior does not predict future results. Always do your own analysis and manage your own risk. 지표

Liquidity Sweep Ledger [EmpArchitect]█ OVERVIEW
Liquidity Sweep Ledger maps buy-side and sell-side liquidity levels, then tracks what happened after those levels were swept.
Most liquidity tools mark the sweep and stop there.
This script keeps a simple ledger:
• Liquidity level active
• BSL / SSL swept
• Reclaimed or not reclaimed
• Displacement after sweep
• Structure shift after sweep
• No follow-through
• Dual sweep / ambiguous sweep
It is a structure-context tool. It does not provide entries, stop losses, targets, risk/reward, probability scores, or trade signals.
█ WHAT IT MAPS
Buy-side liquidity — BSL:
A level above price formed from confirmed swing highs, equal-high clusters, previous day high, or previous week high.
Sell-side liquidity — SSL:
A level below price formed from confirmed swing lows, equal-low clusters, previous day low, or previous week low.
When price sweeps one or more levels, the script records the sweep and tracks its lifecycle.
█ HOW IT WORKS
The script uses confirmed pivots only. A swing high or swing low becomes an active liquidity level only after the pivot is confirmed.
Sweep detection uses an ATR-scaled penetration buffer. Price must trade beyond the liquidity level by the selected minimum threshold before the level is marked as swept.
If several same-side levels are swept on one candle, the script aggregates them into one event, such as BSL swept x2 or SSL swept x3.
After a sweep, the script tracks whether price reclaims the level within the selected reclaim window.
For post-sweep response, the script checks for directional displacement using body size relative to ATR and body size relative to candle range.
For structure shift, the script freezes the latest confirmed opposite-side internal pivot at the time of the sweep and then checks whether price closes beyond that reference later.
Same-candle or sequential two-sided sweeps are marked as dual / ambiguous instead of being treated as directional events.
█ SWEEP LIFECYCLE
The script separates the sweep from the response.
A sweep can become:
• Pending reclaim
• Reclaimed
• Taken / no reclaim
• Displaced
• Structure shifted
• No follow-through
• Dual sweep / ambiguous
This matters because not every liquidity sweep produces the same response. Some levels are swept and reclaimed. Some are taken without reclaim. Some lead to displacement. Some produce no follow-through.
The script records the state instead of forcing a directional interpretation.
█ LIQUIDITY SOURCES
Included sources:
• Swing high / swing low liquidity
• Equal-high / equal-low clustering
• Previous day high / previous day low
• Previous week high / previous week low
Default source settings:
• Swing liquidity: ON
• Equal-high / equal-low clustering: ON
• Previous day high/low: ON
• Previous week high/low: OFF
Previous week high/low is included but disabled by default. Review it on your market/timeframe before enabling it.
█ DASHBOARD AND LEDGER
The dashboard shows the current liquidity-sweep ledger:
• Last sweep
• Source
• Reclaim state
• Response state
• Age
• Active BSL count
• Active SSL count
• Compact last-sweeps ledger
The ledger is the main feature. It helps review what happened after liquidity was taken.
Response detail is recorded in the ledger and dashboard. On-chart response labels are optional and are off by default to keep the chart clean.
█ ALERTS
Included context alerts:
• BSL swept
• SSL swept
• Dual sweep
• Reclaimed
• Displaced
• Structure shift
• Taken / no reclaim
• No follow-through
Alerts are structure-context alerts only. They are not trade signals.
█ TESTING NOTES
Tested during development on BTCUSDT 1H and XAUUSD 1H.
Other markets and timeframes may require adjustment of pivot length, ATR penetration, reclaim window, and response settings.
█ PAIRS WITH
Smart Liquidity Map — broader liquidity map: EQH/EQL zones, PDH/PDL, and PWH/PWL reference levels.
Liquidity Sweep Ledger focuses on the next step: once liquidity is swept, did price reclaim, displace, shift structure, or fail to follow through?
█ IMPORTANT LIMITATIONS
• A liquidity sweep is not a trade entry.
• A reclaim is not a trade signal.
• Displacement does not guarantee continuation.
• Structure shift is a mapped event, not a recommendation.
• Results depend on pivot length, ATR settings, market, and timeframe.
• The script is designed for chart review, not automated trading.
█ NOTES
• Pine Script v6
• Public and open-source
• Built by EmpArchitect
• Educational structure-context tool only
• Not financial advice
• Not a signal service
█ CORE IDEA
Liquidity Sweep Ledger maps liquidity sweeps and tracks whether price reclaimed, displaced, shifted structure, or produced no follow-through.
It gives the map.
The trader makes the decision. 지표

지표

srd786-MTF Day Trading IndicatorSrd786-MTF Day Trading Indicator
Complete User Guide
Full Documentation with Input Descriptions, Functionality, Best Practices & Recommended Parameters
Table of Contents
1. Overview
2. Core Concept: Timeframe Alignment
3. Input Parameters
4. Functionality Breakdown
5. Signal Generation Logic
6. Information Tables
7. Alert Conditions
8. Best Practices
9. Recommended Parameter Values
10. Common Mistakes to Avoid
11. Appendix A: Color Coding Guide
12. Appendix B: Glossary
13. Appendix C: Quick Reference Card
14. Version Information
15. Support & Feedback
1. Overview
The srd786-MTF Day Trading Indicator is a sophisticated Multi-Timeframe (MTF) Day Trading System specifically designed for trading precious metals futures.
Symbol Description
MGC! Micro Gold futures
SIL! Micro Silver futures
Key Features
• Three-timeframe analysis for comprehensive market understanding
• MTF alignment scoring system for trade confidence filtering
• Session-based trading levels (ComeX hours)
• Automatic commodity-specific adjustments
• Real-time information tables
• Multiple alert conditions for automation
2. Core Concept: Timeframe Alignment
The indicator uses three timeframes for comprehensive market analysis:
Timeframe Purpose Default Setting
High TF (HTF) Determines overall trend direction Daily (1D)
Intermediate TF (ITF) Identifies trade setups 4-Hour (240)
Lower TF (LTF) Provides precise entry timing 1-Hour (60)
The Alignment Principle
The core principle is “alignment” — only take trades when all three timeframes agree on direction, which significantly improves probability. This reduces false signals and increases win rate by ensuring the larger market context supports your trade.
3. Input Parameters
3.1 MTF Settings
Input Description Default Options
High TF (Trend) Higher timeframe for trend identification 1D 1D, 1W, 240
Intermediate TF (Setup) Intermediate timeframe for confirmation 240 240, 120, 60, 30
Lower TF (Entry) Lower timeframe for precise entries 60 60, 30, 15, 5
Use HTF Trend Filter Only trade in HTF trend direction true true/false
Use HTF Momentum Confirm Require HTF momentum confirmation true true/false
Use ITF for Signal Generation ITF must confirm signals true true/false
Use LTF for Entry Timing Use LTF for entry timing true true/false
HTF Trend Bars Required Consecutive bars HTF must show trend 2 1-5
ITF Confirm Bars Required Bars ITF must confirm 1 1-3
Parameter explanations:
High TF (Trend)
• 1D (Daily): Best for capturing daily patterns in Gold/Silver
• 1W (Weekly): Longer-term trend perspective
• 240 (4-Hour): Faster trend identification
Use HTF Trend Filter
• When enabled: Only takes trades in HTF trend direction (lower risk)
• When disabled: Allows counter-trend trades (higher risk, more signals)
Use HTF Momentum Confirm
• When enabled: Requires HTF momentum confirmation
• Helps avoid trading against strong momentum
Use ITF for Signal Generation
• When enabled: ITF must confirm signals (additional layer)
• May reduce signal frequency but improves quality
Use LTF for Entry Timing
• When enabled: Uses LTF for precise entry timing
• Improves entry precision but adds complexity
HTF Trend Bars Required
• Higher values = stricter trend requirement
• More reliable signals but fewer opportunities
• Range: 1-5, Default: 2
ITF Confirm Bars Required
• Higher values = more confirmation needed
• Fewer but higher quality signals
• Range: 1-3, Default: 1
3.2 Commodity Settings
Input Description Default Options
Commodity Select trading commodity GOLD GOLD, SILVER
⚠️ Silver is more volatile than Gold and automatically receives adjusted settings: ATR Multiplier 2.0 vs Gold's 1.5; Limit Order Distance 0.10 vs Gold's 0.05. These overrides only apply if the user hasn't changed from default values.
3.3 VWAP Settings
Input Description Default
VWAP Source Price source for VWAP calculation hlc3
• hlc3 (Default): (High + Low + Close) / 3 — Standard VWAP source
• Close: Uses closing price only
• Open: Uses opening price
• OHLC4: (Open + High + Low + Close) / 4
3.4 ATR Settings
Input Description Default Recommended Range
ATR Length Period for ATR calculation 14 14 (standard)
ATR Multiplier for SL ATR multiple for stop-loss distance 1.5 Gold: 1.5, Silver: 2.0
• ATR Length: Higher = smoother but slower ATR response; standard is 14.
• ATR Multiplier: Higher = wider stop; lower = tighter stop. Gold recommended: 1.5; Silver recommended: 2.0.
3.5 Trade Settings
Input Description Default Notes
Reward-to-Risk Ratio Target calculation ratio 3.0 3.0 = aggressive, 2.0 = conservative
Limit Order Distance Distance from price for limit orders (ATR units) 0.05 Gold: 0.05, Silver: 0.10
Target (Long) = Entry + (ATR × ATR_Multiplier × RR_Ratio)
Target (Short) = Entry - (ATR × ATR_Multiplier × RR_Ratio)
Ratio Trading Style Risk Level
2.0 Conservative Lower reward, more fills
2.5 Balanced Moderate approach
3.0 Aggressive Higher reward, fewer fills
3.6 Swing Detection
Input Description Default Range
Swing Lookback Length Period for pivot detection 5 2+
Show Swing Highs/Lows Toggle swing visualization true true/false
• Higher values: More significant swings but fewer signals
• Lower values: More swings but more noise
• Default (5): Good balance for intraday trading
3.7 Support & Resistance
Input Description Default Range
S/R Lookback Bars Bars to look back for S/R detection 20 5+
Breakout Tolerance % Minimum % move to confirm breakout 0.02 0.01+
• Higher values: Fewer false breakouts but may miss valid ones
• Lower values: More breakouts detected but more false signals
• Default (0.02 = 2%): Good balance for precious metals
3.8 Trend & Momentum
Input Description Default Range
Trend EMA Length EMA period for trend determination 9 5+
Momentum Length RSI calculation period 14 5+
EMA Length Response Best For
5-9 Fast, more signals Scalping
9-21 Balanced Day Trading
21+ Slow, fewer signals Swing Trading
RSI Period Sensitivity Best For
7 High Short-term trading
14 Standard General use
21 Low Long-term analysis
3.9 Volume Settings
Input Description Default Range
Volume Average Length SMA period for average volume 20 5+
Used to determine if current volume is above or below normal. Volume confirmation strengthens breakout signals.
3.10 Info Settings
Input Description Default
Show Info Table Toggle main info tables true
Show MTF Table Toggle multi-timeframe analysis table true
3.11 Session Settings (Eastern Time)
Input Description Default
Session Start Hour (ET) Session start hour (0-23) 8
Session Start Minute Session start minute (0-59) 30
Session End Hour (ET) Session end hour (0-23) 15
Session End Minute Session end minute (0-59) 30
⚠️ ComeX Session: The primary precious metals exchange operates 8:30 AM - 3:30 PM ET
4. Functionality Breakdown
4.1 Multi-Timeframe Data Request System
The indicator uses request.security() to fetch data from three different timeframes simultaneously. The offset ensures non-repainting confirmed values only; lookahead=barmerge.lookahead_on prevents future leak; tuples allow efficient single requests for multiple values.
4.2 MTF Trend Detection
Each timeframe is analyzed using EMA trend comparison, RSI momentum, and MACD direction.
4.3 MTF Alignment Scoring System
The alignment score quantifies how well all timeframes agree.
4.4 Breakout Detection
Breakouts are detected on current timeframe, session levels, and MTF combinations; MTF breakouts require both HTF and ITF confirmation.
4.5 Session Tracking
Tracks ComeX session open, high, low, and range.
4.6 Trade Level Calculations
When signals are confirmed, the indicator calculates limit order, stop-loss, target, and risk:reward levels.
4.7 Volume Analysis
Volume is classified against the configured average volume.
4.8 Volatility Context (ATR)
ATR is categorized as high, normal, or low volatility based on commodity type.
Indicator Calculation Bullish Signal Bearish Signal
Trend MA EMA comparison Close > EMA Close < EMA
Momentum RSI 14-period RSI RSI > 50 RSI < 50
MACD 12,26,9 MACD Line > Signal Line < Signal
Score Range Classification Trading Confidence
≥ 5 STRONG ALIGNMENT High confidence
2 to 4 MODERATE Good probability
-1 to 1 WEAK Low confidence (AVOID)
-2 to -4 MODERATE Good probability (short)
≤ -5 STRONG ALIGNMENT High confidence (short)
Session Time (ET)
Pre-Market 6:00 AM - 8:30 AM
ComeX Session 8:30 AM - 3:30 PM
Post-Market 3:30 PM - 5:00 PM
For GOLD ATR Classification
> 3 HIGH VOL
1.5 - 3 NORMAL VOL
< 1.5 LOW VOL
For SILVER ATR Classification
> 0.05 HIGH VOL
0.03 - 0.05 NORMAL VOL
< 0.03 LOW VOL
5. Signal Generation Logic
5.1 MTF Long Signal Requirements
# Condition Requirement User Setting
1 HTF Trend Bullish (or neutral if filter disabled) useHTFTrendFilter
2 HTF Momentum Bullish momentum confirmation useHTFMomentumConfirm
3 ITF Setup Bullish ITF trend and momentum useITFForSignals
4 LTF Timing Bullish LTF with RSI > 50 useLTFForEntry
5 MTF Alignment Score ≥ 2 Always
5.2 MTF Short Signal Requirements
# Condition Requirement User Setting
1 HTF Trend Bearish (or neutral if filter disabled) useHTFTrendFilter
2 HTF Momentum Bearish momentum confirmation useHTFMomentumConfirm
3 ITF Setup Bearish ITF trend and momentum useITFForSignals
4 LTF Timing Bearish LTF with RSI < 50 useLTFForEntry
5 MTF Alignment Score ≤ -2 Always
5.3 Signal Path Options
• Path 1: Full Confirmation — highest confidence; requires agreement across all analysis layers.
• Path 2: MTF-Only Signal — available when ITF/LTF confirmations are disabled.
6. Information Tables
6.1 Session Info Table (Top Left)
Row Content Description
1 Commodity GOLD or SILVER
2 Session ACTIVE / PRE-MKT / POST-MKT / CLOSED
3 ComeX Open Session open price
4 Session High Highest price this session
5 Session Low Lowest price this session
6 Session Range Total movement potential
7 vs Open Position vs session open (%)
6.2 Indicators Table (Top Right)
Row Content Description
1 Current Price Live price
2 VWAP Volume Weighted Average Price
3 VWAP Status ABOVE/BELOW/EXTENDED status
4 Support Recent swing low level
5 Resistance Recent swing high level
6 Level Status Proximity to key levels
7 Current Vol Current bar volume
8 Avg Vol 20-bar average volume
9 Vol Status HIGH/LOW/AVG classification
10 ATR Average True Range value
11 Vol Regime HIGH/NORMAL/LOW volatility
12 Trend Current trend classification
13 Momentum Momentum with RSI value
14 MACD BULLISH/BEARISH status
6.3 Trade Levels Table (Bottom Left)
Row Content Description
1 MTF Signal MTF LONG / MTF SHORT / WAIT
2 Alignment STRONG/MODERATE/WEAK classification
3 Limit Order Dist Distance in ATR units
4 Limit Order Price Pending entry price
5 Stop-Loss Risk exit level
6 Target Reward target price
7 Risk:Reward Achieved R:R ratio
6.4 MTF Analysis Table (Middle Right)
Row HTF ITF LTF
Timeframe 1D 4H 1H
Trend BULLISH/BEARISH/NEUTRAL BULLISH/BEARISH/NEUTRAL BULLISH/BEARISH/NEUTRAL
Momentum STRONG BULL/etc STRONG BULL/etc STRONG BULL/etc
RSI 55.0 52.0 58.0
MACD BULL/BEAR BULL/BEAR BULL/BEAR
VWAP ABOVE/BELOW ABOVE/BELOW ABOVE/BELOW
Breakout UP/DOWN/NONE UP/DOWN/NONE UP/DOWN/NONE
Alignment Score: X — —
7. Alert Conditions
The indicator creates 10 alert conditions for automated trading:
Alert Name Trigger Message/Use Case
MTF LONG Signal All TFs aligned for long Ticker, Price
MTF SHORT Signal All TFs aligned for short Ticker, Price
MTF Long Developing HTF/ITF align, LTF pending Early warning
MTF Short Developing HTF/ITF align, LTF pending Early warning
MTF Bullish Breakout Breakout on Daily AND 4H Highest confidence
MTF Bearish Breakout Breakdown on Daily AND 4H Highest confidence
VWAP Cross Up Price crosses above VWAP —
VWAP Cross Down Price crosses below VWAP —
Session Breakout Up Break above session high —
Session Breakout Down Break below session low —
8. Best Practices
8.1 Before Trading
16. Confirm Alignment Score: Wait for score ≥ 2 (bullish) or ≤ -2 (bearish)
17. Check Session Status: Ensure ComeX session is ACTIVE
18. Verify Volume: Confirm volume is ABOVE AVG or HIGH during signals
19. Review VWAP: Price should be above VWAP for longs, below for shorts
8.2 During Trading
20. Monitor Volatility: Adjust expectations in HIGH VOL conditions
21. Watch for Signal Changes: Alignment can shift quickly
22. Track Session Levels: Session High/Low act as dynamic S/R
8.3 Risk Management
23. Use Proper Position Size: Based on ATR-based stop loss
24. Never Risk More Than 1-2% Per Trade
25. Accept that 3:1 RR means ~33% win rate is breakeven
9. Recommended Parameter Values
For Gold (MGC!) Value Reason
Commodity GOLD Default setting
ATR Multiplier 1.5 Gold's moderate volatility
Limit Order Distance 0.05 Tight entries for gold
RR Ratio 3.0 Aggressive targeting
ATR Length 14 Standard setting
For Silver (SIL!) Value Reason
Commodity SILVER Required setting
ATR Multiplier 2.0 Silver's higher volatility
Limit Order Distance 0.10 Wider entries for silver
RR Ratio 2.5-3.0 Adjusted for volatility
ATR Length 14 Standard setting
Trading Style HTF ITF LTF
Scalping 240 60 5/15
Day Trading 1D 240 60
Swing Trading 1W 1D 240
Experience HTF Filter Momentum Confirm ITF Signals LTF Entry
Beginner ON ON ON ON
Intermediate ON ON ON OFF
Advanced OFF OFF OFF OFF
10. Common Mistakes to Avoid
Mistake Consequence Solution
Trading during alignment score = 0 Fighting conflicting timeframes Wait for alignment ≥ 2 or ≤ -2
Using tight stops in HIGH VOL Getting stopped out by noise Use higher ATR multiplier
Ignoring HTF trend direction Lower win rate Enable HTF Trend Filter
Trading outside ComeX session Poor liquidity, wider spreads Enable session filter
Taking trades with WEAK alignment Low probability trades Wait for MODERATE or STRONG
Ignoring volume confirmation False breakouts Wait for volume confirmation
Appendix A: Color Coding Guide
Color Meaning
🟢 Green Bullish / Above average
🔴 Red Bearish / Below average
🔵 Blue Neutral / VWAP related
🟣 Purple Session levels
🟠 Orange ComeX open reference
⚪ Gray Neutral / Waiting
Marker Meaning
Lime Triangle ↓ Confirmed MTF Long
Red Triangle ↑ Confirmed MTF Short
Faded Triangle Standard signal (not MTF confirmed)
Appendix B: Glossary
Term Definition
ATR Average True Range - measures volatility
ComeX Commodity Exchange - primary metals exchange
EMA Exponential Moving Average
HTF High Timeframe
ITF Intermediate Timeframe
LTF Lower Timeframe
MACD Moving Average Convergence Divergence
MTF Multi-Timeframe
RSI Relative Strength Index
RR Risk:Reward ratio
S/R Support and Resistance
VWAP Volume Weighted Average Price
Appendix C: Quick Reference Card
Daily Setup Checklist
☐ Commodity selected correctly (GOLD/SILVER)
☐ Timeframes configured for trading style
☐ Session times verified
☐ Info tables enabled
☐ Alerts configured
Before Entry Checklist
☐ Alignment score ≥ 2 (long) or ≤ -2 (short)
☐ ComeX session is ACTIVE
☐ Price above VWAP (longs) / below VWAP (shorts)
☐ Volume confirming the move
☐ All three TFs aligned
Trade Management
☐ Entry: Limit order at calculated level
☐ Stop: ATR-based stop loss
☐ Target: R:R based on settings
☐ Monitor: VWAP crossovers
☐ Exit: At target or stop, never early
Version Information
Item Details
Script Version v6
Author © Pineify
License Mozilla Public License 2.0
Compatibility TradingView Pine Script v6
Support & Feedback
• Submit through TradingView's indicator page
• Include your parameter settings when reporting issues
• Provide chart screenshots when possible
Formatted user guide generated from supplied content.
지표

Supply and Demand Zones with Market Structure [Jayadev Rana]Overview
This open-source overlay draws two closely related price-action concepts on a single chart: swing-based supply and demand zones, and market-structure mapping (swing labels, a zig-zag of confirmed swings, and Break of Structure markers). It is a visual analysis aid. It does not generate buy or sell signals, it does not place orders, and it makes no performance claim.
How swings are detected
Every element in the script is anchored to a confirmed swing pivot. Swings are found with symmetric pivots: a swing high requires its high to be the highest of the N bars on its left and the N bars on its right (and the mirror condition for a swing low), where N is the Swing High/Low Length input. Because a pivot needs N bars on both sides to exist, it is only confirmed N bars after the pivot bar. Once a swing is confirmed, its label, zone and zig-zag segment are fixed to that historical bar and do not move or repaint afterwards. The trade-off of this method is a fixed N-bar delay before a swing becomes visible. This is inherent to symmetric pivots and is disclosed here so the behavior is clear.
Supply and demand zones
When a swing high is confirmed, a supply zone is drawn from that swing high down to the top of the swing candle's body. When a swing low is confirmed, a demand zone is drawn from that swing low up to the bottom of the swing candle's body. This anchors each zone on the candle that produced the turning point. Because wick-only zones can be very thin, an optional ATR floor (on by default) gives each zone a minimum thickness equal to a configurable multiple of the 14-period ATR, so zones stay readable across different instruments and timeframes.
Each zone extends to the right until it is mitigated. A supply zone is treated as mitigated when price closes above it; a demand zone when price closes below it. On mitigation the zone is either removed or greyed out, depending on the When a zone is broken input. To respect the platform limit of 500 drawing objects and to keep the chart readable, only the newest N zones per side are retained (the Zones to keep per side input).
Market structure
Swing labels: each confirmed swing is labelled relative to the previous same-side swing. Highs are marked HH (higher high) or LH (lower high); lows are marked HL (higher low) or LL (lower low). Bullish structure (HH, HL) uses the bullish colour and bearish structure (LH, LL) uses the bearish colour.
Zig-zag: consecutive confirmed swings are joined by a line, giving a de-cluttered skeleton of price movement.
Break of Structure (BOS): the most recent confirmed swing high and swing low are tracked as reference levels. The first time price closes above the reference swing high a BOS is marked, and the mirror for a close below the reference swing low. Each level is marked only once.
Dashboard
An optional table in the top-right corner shows the current swing length, the number of active supply and demand zones, and the direction of the last Break of Structure.
Inputs
Structure and Swings: swing length, and toggles for the zig-zag, the swing labels and the BOS markers.
Supply and Demand Zones: master toggle, zones to keep per side, the ATR minimum-thickness option and multiplier, broken-zone handling (remove or grey out), and the right-extension toggle.
Colors: independent fill and border colours for supply, demand and broken zones, the zig-zag colour, and the bullish and bearish structure colours.
Dashboard: show or hide the summary table.
Alerts
Alert conditions are provided for a bullish BOS, a bearish BOS, a new supply zone, and a new demand zone.
How to use it
Supply and demand zones are commonly read as areas where price may react, while market structure (the sequence of HH, HL, LH, LL and BOS events) describes the prevailing trend and its changes. Reading the two layers together, for example a demand zone that coincides with bullish structure or a supply zone that coincides with bearish structure, is one way traders use this kind of tool. This script only draws the levels and the structure. It does not tell you when to enter or exit, and any decision you make is your own.
Originality and scope
This is an original implementation written from scratch. The underlying ideas, namely pivot-based swing detection, supply and demand zones, higher-high and lower-low structure labelling, and break of structure, are long-established public-domain price-action concepts rather than the property of any single author. The purpose of this publication is to combine them into one coherent, fully configurable, non-repainting overlay with readable code and a compact summary dashboard.
Limitations and disclaimer
Swings, and everything derived from them, appear with a fixed N-bar confirmation delay. This is by design and is not an error.
Zone mitigation is evaluated on bar close. On the developing (last) bar, states can still change until the bar closes.
Past behaviour of price around a zone or a structure point does not predict future results. This tool is for education and analysis only and is not financial advice. Test any approach yourself before relying on it. 지표

Adaptive Predictability Engine Entropy Gate, Regime RouterAdaptive Predictability Engine — Entropy Gate, Regime Router & Expert Committee
What it is
The Adaptive Predictability Engine is a governed decision framework, not another confluence average. It refuses to treat all market conditions as tradable. It applies a strict hierarchy: first it asks whether price is forecastable at all right now; if it is, it decides whether trend-style or reversion-style logic is appropriate; and only then does a small committee of transparent experts vote — with the committee continuously re-weighting itself toward whichever experts have been correct recently. When the market is unpredictable, the whole engine stands aside and shows nothing to trade.
It plots directly on price: long/short signals, the live entry/target/stop of the active trade, a plain-language dashboard, and an optional self-calibration panel that scores past signals in R-multiple expectancy (not just win rate).
Why these components are combined (mashup justification)
This is a deliberate, dependent stack — each layer conditions the next, so removing any one changes the layer below it. That is the difference between a governed engine and a bag of averaged indicators.
Predictability gate (permutation entropy + structure). Permutation entropy (Bandt–Pompe) measures the ordinal randomness of recent price across three time scales; this is blended with |Hurst − 0.5|, the distance of the market from a random walk, which is high for strong trends and strong mean-reversion. The blended predictability is percentile-ranked so the gate self-tunes per symbol and timeframe. If the tape is unpredictable, nothing downstream may fire. This is the master switch, and it is why the engine spends much of its time deliberately doing nothing.
Regime router (Hurst exponent). When structure exists, the Hurst exponent (generalized, via a structure-function slope) decides whether it is persistent (trend) or anti-persistent (mean-revert), and routes weight toward the appropriate family of experts rather than averaging trend and reversion logic together.
Expert committee (Hedge / multiplicative weights). Six deliberately diverse experts — price trend, volume-weighted price, order-flow delta, momentum exhaustion, volatility extreme, and range extreme — each cast a directional vote. Their weights update every bar by exponential regret (right experts gain influence, wrong ones lose it), with fixed-share regularization so no single expert can dominate and make the vote fragile.
Distribution-shift guard. If the recent return distribution moves materially versus a reference window, the engine freezes learning and cuts conviction until conditions settle, so stale weights don't drive trades through a regime change.
The output is a single decision = the regret-weighted vote of only the currently-appropriate experts, gated to zero whenever the tape is unpredictable.
How to use it
Add it to any liquid symbol and timeframe. Defaults are tuned for index futures (e.g. NIFTY) but every input is adjustable, and the Data source group lets you repoint price and volume for any market.
Watch the dashboard headline: LONG / SHORT / WAIT / STAND ASIDE. When a signal fires, the engine draws the entry, ATR target, and ATR stop so the action is concrete.
Treat the shaded background as a hard "do not trade" — the engine has judged the tape unpredictable.
Open the Edge calibration (advanced) panel to see, per market memory, the past R-expectancy of the engine's own signals versus a direction-matched baseline. Positive expectancy means the sample was profitable before costs; this is descriptive of the past, not a forward guarantee.
Use the Ablation (research) toggles to switch each layer off and see, on your own data, whether it earns its place.
What makes it original
Most published tools average indicators and hope. This one inverts the approach by asking whether to act at all before what to do, using information-theoretic predictability (permutation entropy) as a master gate, a memory estimate (Hurst) as a router, and online regret-minimization (Hedge) to arbitrate a diverse expert set — with built-in R-expectancy self-calibration so users can judge it honestly rather than on a cherry-picked screenshot. The order-flow expert reads finest-available lower-timeframe signed volume with automatic fallback. The coupling and governance order are the contribution; the individual estimators are classical and credited below.
Concept credits
Permutation entropy — Bandt & Pompe. Hurst exponent / long-range dependence — H. E. Hurst; Mandelbrot. Hedge / multiplicative-weights online learning — Freund & Schapire; Littlestone & Warmuth; Vovk. Efficiency/structure framing — Kaufman. Triple-barrier labelling and R-multiple expectancy — M. López de Prado. Wilson score interval — E. B. Wilson. Synthesis, governance design, and implementation are the author's own.
Important disclaimer
Research and education only. Not financial advice, not a signal service, not a guarantee of future results. No indicator has an inherent edge. The calibration panel is a descriptive summary of past behaviour on the current chart — not a backtest and not a forward prediction. Always validate independently, apply realistic costs and slippage, and manage risk. You are solely responsible for your trading decisions. 지표

FVG + Order Block Toolkit [ForexCracked]🔷 OVERVIEW
Two of the most-watched smart money footprints on one clean chart. This toolkit auto-draws Fair Value Gaps and Order Blocks as zones, keeps only the ones that still matter, and shows a live count in a compact dashboard. Fair value gaps are drawn as soft fills and order blocks as bordered blocks, so you can tell the two apart at a glance. It is free and open-source.
🔷 HOW IT DETECTS THE ZONES
Fair Value Gaps: a three-candle imbalance. A bullish FVG is marked when the low of the current candle sits above the high of the candle two bars back, leaving an untraded gap. A bearish FVG is the mirror. Gaps smaller than your Min FVG size (measured in ATR) are filtered out so the chart stays clean.
Order Blocks: displacement based. When a candle closes with a body larger than your Displacement setting (in ATR), the toolkit marks the last opposing candle before that move as the order block. A strong bullish move leaves a bullish order block on the last down candle, and the reverse for bearish.
🔷 ZONE MANAGEMENT
Every zone extends to the right until price closes through it (mitigated) or it passes the Max zone age. That means the boxes on your chart are the ones that are still unmitigated, not old clutter.
🔷 THE DASHBOARD
A compact, positionable panel shows the live count of unmitigated bullish and bearish Fair Value Gaps and Order Blocks, plus a total. Drop it in any corner.
🔷 HOW TO USE
Treat the zones as areas of interest, not automatic trades. Watch for price to return to an unmitigated order block or fair value gap in the direction of your higher-timeframe bias, then confirm with your own analysis and use a stop. Higher timeframes produce fewer and stronger zones.
🔷 SETTINGS
Fair Value Gaps: show on/off, Min FVG size (x ATR), colours. Order Blocks: show on/off, Displacement (x ATR), OB lookback, colours. General: Max zone age, Extend right, Info panel + position.
🔷 ALERTS
New Fair Value Gap, and New Order Block.
Free and open-source. Educational tool, not financial advice. 지표

지표

Structural Divergence [Proozac]Structural Divergence — Pine Script v6 — Overlay Indicator
What It Does
Structural Divergence merges two of the most reliable concepts in technical analysis into a single confluence-based signal: Market Structure (HH/HL/LH/LL, BOS/CHoCH) and RSI/MACD divergence detected precisely at structural swing points — not anywhere on the chart, but exactly where it matters.
Most divergence indicators flag every RSI/price disagreement, drowning traders in low-quality signals. Structural Divergence only calculates divergence at confirmed swing highs and lows, then cross-references it against real structural breaks. A signal only fires when both align.
## How It Works
Swing Detection: identifies significant highs and lows using a configurable pivot length, then labels each one HH, HL, LH, or LL relative to the prior swing of the same type.
BOS / CHoCH: automatically draws Break of Structure and Change of Character lines whenever price closes beyond the last confirmed swing level, tracking trend direction in real time.
Divergence Engine: at every swing high/low, RSI (and optionally MACD histogram, for stricter confirmation) is compared against the prior swing of the same type to detect classic bearish/bullish divergence.
Confluence Signal: when a divergence and a BOS/CHoCH occur within a configurable bar window in the same direction, a triangle signal fires with a built-in alert — filtering out the noise of standalone divergence or structure signals used alone.
Why It's Different
Instead of stacking indicators and hoping for visual confluence, this script computes it algorithmically. The result is fewer, higher-conviction signals: you're not just seeing "RSI diverged" or "structure broke" — you're seeing both happen together, which historically marks higher-probability reversal and continuation zones.
## Settings
Swing Detection Length (pivot sensitivity)
RSI Length
Optional MACD confirmation (stricter mode)
Confluence window (max bars between divergence and structural break)
Full color customization for bullish/bearish elements
Alerts
Two ready-to-use alert conditions: Confluence Buy Signal and Confluence Sell Signal — plug straight into TradingView's alert system or your own webhook automation. 지표

Elaris Trend LifecycleElaris Trend Lifecycle
Overview
Elaris Trend Lifecycle is a trend analysis indicator designed to help traders identify different phases of a market trend using a combination of trend structure, momentum, volatility, and price behavior.
Instead of treating every trend equally, the indicator classifies the current market into distinct lifecycle stages, allowing traders to better understand whether a trend is just beginning, gaining strength, becoming extended, or showing signs of weakening.
The goal is to provide additional context that can assist with trade planning, trend-following strategies, and risk management across different markets and timeframes.
---
Lifecycle Phases
• Neutral
No clear directional trend is currently detected.
• Birth
A new bullish or bearish trend is beginning to develop based on moving average alignment and improving momentum.
• Expansion
The trend is strengthening with increasing directional momentum and supportive volatility conditions.
• Maturity
The trend remains intact but has progressed for an extended period or has moved significantly away from its average price.
• Exhaustion
Price begins showing characteristics that may indicate slowing momentum, including extended movement and rejection wicks.
• Reversal Risk
Trend conditions have weakened and structural changes suggest that the probability of continuation has decreased.
---
Features
• Multi-stage trend classification
• EMA-based trend engine
• Trend duration tracking
• Momentum evaluation using ADX
• ATR-based volatility expansion analysis
• RSI-assisted exhaustion detection
• Optional confirmed swing structure validation
• Trend lifecycle dashboard
• Dynamic bar coloring
• Background phase visualization
• Bullish and bearish lifecycle signals
• Configurable alerts
• Fully customizable inputs
---
Dashboard
The integrated dashboard displays:
• Current lifecycle phase
• Trend direction
• Lifecycle score
• Bars spent in the current trend
• ADX strength
• ATR expansion status
The dashboard supports both dark and light themes.
---
Alerts
Alert conditions are available for:
• Trend Birth
• Expansion Phase
• Exhaustion Phase
• Reversal Risk
These alerts can be used for notifications or automated workflows.
---
How It Can Be Used
Some examples include:
• Identifying developing trends
• Monitoring trend strength
• Recognizing extended market conditions
• Adding confirmation to trend-following strategies
• Supporting discretionary market analysis
As with any technical indicator, it is intended to be used alongside a broader trading plan and appropriate risk management.
---
Notes
• Signals are generated using confirmed bar data.
• Swing structure confirmation uses confirmed pivots, which naturally require additional bars before confirmation.
• The indicator is designed as an analytical tool and does not predict future market behavior or guarantee trading outcomes.
지표

지표

지표

지표

FCPO Kental (SMC)Title: FCPO Kental (SMC)
Description:
An all-in-one price overlay for intraday traders, tuned with FCPO (Bursa Malaysia crude palm oil futures) in mind but usable on any symbol or timeframe. It combines market-structure detection (CHoCH/BOS), Fair Value Gaps, auto-Fibonacci from the active swing, and key reference levels (previous day/week high & low, plus daily/weekly/monthly opens) into one clean layout so you can read confluence at a glance.
Suggested workflow
Establish the trend first. Use your own trendlines, channels, or higher-timeframe read to decide if price is trending up, down, or ranging. This tool supports your read — it doesn't replace it.
Trade structure with the trend. Watch CHoCH (change of character) and BOS (break of structure). Favour signals that agree with the trend you identified; treat counter-trend shifts with caution.
Use FVG as the entry zone. Fair Value Gaps mark imbalance left by aggressive moves, and price often revisits them. A FVG that lines up with your trend and a fresh structure shift is a candidate entry area.
Read the auto-Fibonacci for premium/discount. Drawn automatically from the live swing: the 0.5 and 0.618 levels mark a healthy discount zone (favourable entries), while the -0.618 extension acts as a take-profit reference.
Best confluence: trend + structure shift + a FVG sitting inside the 0.5–0.618 discount, targeting the -0.618 extension.
Features
Auto CHoCH & BOS with body/wick break option and adjustable history
Bullish/bearish FVG with mitigation tracking, auto-cleanup, and alerts
Auto-Fibonacci from the active swing (five configurable levels, incl. 0.5/0.618 discount and -0.618 target)
Reference levels: PDH/PDL, PWH/PWL, daily/weekly/monthly opens — each toggleable
Modular master switches per block, with full colour/style control
Alerts: BOS, CHoCH, FVG mitigation
Scope
This is a discretionary analysis tool — not a strategy. It does not place orders or produce backtest statistics. Order-flow elements (footprint, delta, absorption) are intentionally not included, as they can't be computed reliably in Pine.
Credits & license
Market-structure & FVG logic is based on the open-source "SMC Structures and FVG" by LudoGH68 (Mozilla Public License 2.0). The PDH/PDL and opens levels are adapted from an open-source community script. Published under MPL-2.0 in keeping with the original license.
Disclaimer: For education and analysis only. Not financial advice. Trading futures carries significant risk of loss. Past behaviour of any level or signal does not guarantee future results — do your own analysis and manage risk. 지표

지표

지표

전략

Monotonic Trend Consensus [QuantAlgo]🟢 Overview
Monotonic Trend Consensus is a trend-following oscillator built on rank correlation between price and time rather than moving averages or crossovers. It scores how consistently price is ordered across multiple lookback windows and combines them into a single bounded reading on a -1 to +1 scale, holding the same meaning on any symbol or timeframe so traders can separate a broadly aligned trend from directionless noise and read when a move has stretched to saturation.
🟢 How It Works
The foundation is Spearman rank correlation between price and time, computed over each active window. Closes inside the window are ranked against one another, time forms its own rising sequence of ranks, and the difference between the two collapses to a single coefficient (rho):
float price_rank = less + (eq + 1.0) / 2.0
float time_rank = float(len - i)
float rho = 1.0 - 6.0 * sumd2 / denom
The coefficient reads +1 when each bar closes above the last in unbroken order, 0 when there is no consistent order, and -1 when each bar steps lower. Because it scores ordering rather than smoothing price into a line, it reflects the current window directly rather than trailing behind it, though it still needs a full window of bars to form. Ranking also limits the pull of any single outlier bar, and the bounded output is what lets one threshold hold across markets without rescaling.
A single window describes direction; the tool runs several and averages them into a consensus spanning fast, medium, and slow horizons:
consensus := array.avg(rhos)
Agreement is then measured as the share of windows leaning the same way as the consensus, and this conviction figure must clear a floor before a direction prints, working alongside the strength threshold:
conviction := 100.0 * agree / active
raw_bull = consensus > threshold and conviction >= min_conviction
raw_bear = consensus < -threshold and conviction >= min_conviction
A reading registers only when both clear at once: consensus past the threshold and windows aligned enough to meet the conviction floor. Fail either and the line stays flat. With Show Neutral on, those flat stretches reset to neutral; with it off, the line holds its last direction until the next qualifying move.
🟢 Signal Interpretation
▶ Bullish Consensus (Green): Consensus sits above the upper threshold with enough windows aligned, meaning recent bars are ordered upward across horizons. Trend traders read the turn into green as a possible long or continuation as the score presses toward +1. Mean-reversion traders treat a reading pinned near +1 as a stretched, broadly-agreed advance rather than a buy, and look to fade only once the line rolls back off the extreme, since the score can hold high through a sustained trend.
▶ Bearish Consensus (Red): Consensus sits below the lower threshold with conviction met, with bars ordered downward across horizons. Trend traders read the turn into red as a possible short or continuation as the score presses toward -1. Mean-reversion traders treat a reading pinned near -1 as a saturated decline where a bounce becomes more plausible, and look to fade on the turn back up rather than at the low itself.
▶ Neutral (Gray): With Show Neutral on, the line goes gray whenever no direction qualifies, either because consensus sits inside the threshold or conviction falls short. The zero line acts as the balance point and behaves like support or resistance for the reading itself: a score rejected at zero from above points to bullish order reasserting, a score capped at zero from below points to bearish order holding, and a clean break through leans toward a regime change. Reading this midline behavior against price is where market structure tools pair well, separating a base building above a structural level from a coil forming under overhead supply. Trend traders stand aside until the line commits; mean-reversion traders find less to work with here than at the edges.
▶ Reading the Extremes: The axis caps at +1 and -1, marking maximum agreement across every active window. Trend traders take an extreme as a sign a move is still in force; mean-reversion traders take it as a stretched zone and watch for the score to turn back toward zero as agreement breaks. An extreme that aligns with a known structural level gives a fade a cleaner reference than one in open space, and neither read holds on the extreme alone, since a strong trend can stay saturated before it cools.
🟢 Features
▶ Preconfigured Presets: Three setups map to different holding styles. "Default" suits swing work on 4-hour and daily charts, pairing a mid-range window spread of 8, 13, 21, and 34 with a 0.35 threshold and a 60% conviction floor, so a direction needs both strength and agreement before it flags. "Fast Response" pulls the windows in to 5, 8, 13, and 21 and eases the threshold and conviction floor so the reading keeps pace with quicker intraday swings. "Smooth Trend" stretches the windows out to 21, 34, 55, and 89 and raises both gates for daily and weekly position trading, where a premature flip costs more than a late one. Choosing a preset takes over the manual window, threshold, and conviction fields.
▶ Built-in Alerts: Four conditions track every change in state. "Bullish Trend Signal" triggers when the consensus confirms to the upside. "Bearish Trend Signal" triggers when it confirms to the downside. "Trend Lost / Neutral" triggers when an active direction fades back to flat, which is also the event a mean-reversion trader watches for after an extreme. "Any Trend Change" rolls the two directional events into a single notification for anyone who wants one alert covering both ways.
▶ Visual Customization: Six color schemes (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) carry a matched pair of bullish and bearish colors through the consensus line, its tiered gradient fill down to the zero baseline, and the optional bar and background tints. Marker lines sit at the positive and negative trigger levels to show the zone the consensus has to cross, and each window's own score can be switched on as a faint backing line so you can see which horizons are driving or dragging the combined figure. Bar coloring paints the price candles in the active trend color at an adjustable transparency, while background coloring spreads that tint across the pane.
지표

Adaptive Consensus Trail Structure, Regime & SelfAdaptive Consensus Trail — Structure, Regime & Self-Test
A trailing stop that sits on the agreement of several structural references, adapts to the market regime, and forward-tests its own signals so the numbers it shows are measured, not asserted.
What it is
Most trailing stops follow one idea — an ATR band, a SuperTrend, a moving average. This one places the stop where a small committee of independent structural references agree, reads how confident that agreement is, widens or tightens itself according to the market regime, and then continuously audits its own flips and reports the edge it actually produced on your data.
The committee has five members, each locating support/resistance from a different lens:
Anchored VWAP band — fair value for the session/week/month
Session / naked volume Point-of-Control — the price the most volume traded at, carried forward until revisited
Fair-Value-Gap midpoint — unfilled imbalance
Swing pivot — structural memory
Order-flow absorption — where aggressive buying/selling was absorbed (via Bulk Volume Classification)
Why these parts belong in one script (mashup justification)
Each reference alone whipsaws on an index, and each is right in different conditions. They are combined because they correct one another, and the entire value of the script is in that interaction — not in any single line:
A reliability layer scores every reference's historical respect rate with a Wilson lower bound, so a reference that keeps getting ignored loses its vote instead of dragging the stop around.
A consensus layer keeps only the densest agreeing cluster of references, so the stop sits on genuine agreement rather than on an average nobody respects, and far-apart references never force a permanent "no signal."
A regime layer (efficiency ratio + ADX + band-width + a volatility-cluster read + a Hurst persistence estimate) widens the band and tightens the flip confirmation in chop — this is what removes the whipsaw.
A self-test layer forward-scores every flip and recalibrates the confidence number so it means what it says.
Split apart, these are five overlays that each mislead in a range. Wired together, they are one self-correcting, self-auditing trail. That is the reason for combining them.
How it works (six layers)
References are computed on the bar close.
Reliability — rolling-capped respect counts per reference give a Wilson lower-bound "trust." POC is a magnet, so it is judged by forward reaction (did price reject away before breaking through?), not a same-bar close, which keeps its trust honest.
Consensus — the densest agreeing cluster within an ATR band becomes the trail's target; the envelope and confidence are measured on that cluster only.
Adaptive backbone — an efficiency-ratio / regime-adaptive band (Adaptive, Chandelier, or Blend) that widens in chop.
The trail — high confidence pulls the stop toward structure (floored a minimum ATR off price); low confidence rides the wide band, so it flips less in noise.
Self-test — every flip is forward-resolved by triple-barrier first-touch against an unconditional base rate, split by strength tier and by regime, with a walk-forward in-sample→out-of-sample check, a runs test of independence, a Brier score, and a confidence recalibration.
How to use it
Read the top banner for the one-line bias — BULLISH / BEARISH / WAIT — and the READ legend for what to do. The coloured line is your stop: support in an uptrend, resistance in a downtrend. BUY / SELL labels print only on confirmed, sufficiently-confident, higher-timeframe-aligned flips.
The dashboard gives detail top-down: each reference's level and trust, the consensus, raw → calibrated confidence, regime (with Hurst and ADX), the higher-timeframe invalidation stop, and a FULL / HALF / STAND-ASIDE suggestion.
Before sizing, open the Self-Test panel and read the Edge column (hit% − base%), not the raw hit-rate. A ★ means the edge's confidence interval clears the base rate. Prefer signals where the walk-forward change isn't badly negative and the runs test isn't "streaky." Being honest about it: on many indices this tool shows real edge in range and volatile regimes on higher timeframes and little-to-none on very low timeframes or once a trend is already confirmed — the panel makes that transparent so you can pick your spots.
Works on any market
Set the Price source, and for symbols with no native volume set a Borrow-volume proxy (e.g. a futures contract). The panel theme adapts to your chart background automatically. Backbone: Adaptive / Chandelier / Blend. Absorption: order-flow (BVC) or simple. An optional intrabar resolution builds a finer volume profile where available.
Originality
The committee-of-references design, the cluster-not-average consensus, the reliability weighting that lets references lose their vote, the forward-reaction POC respect test, and the confidence self-calibration are the author's own work. The underlying techniques are standard and fully credited below.
Non-repaint
References, regime, consensus and the trail all evaluate on the close of the bar; the live bar is provisional and settles on close. Self-test events are logged and resolved only on confirmed bars and resolve on bars after their trigger at fixed barriers, so hit / base / edge use no look-ahead. The higher-timeframe stop uses a lookahead-off request.
Concept credits
Wilson score interval (E. B. Wilson); efficiency ratio (P. Kaufman); ADX / DMI / ATR / volatility-stop lineage (J. W. Wilder); anchored VWAP (industry standard); volume profile / value area / point-of-control — Market Profile (J. P. Steidlmayer, developed by J. F. Dalton); triple-barrier first-touch labelling (M. López de Prado); runs test of randomness (A. Wald & J. Wolfowitz); rescaled-range / Hurst exponent (H. E. Hurst); Brier score (G. W. Brier); Bulk Volume Classification / VPIN (D. Easley, M. López de Prado & M. O'Hara); reliability-bin (isotonic-style) calibration is standard forecasting practice.
Limitations & disclaimer
"Absorption" is a volume proxy — base data has no true tick order flow, so the buy/sell split is estimated from bar moves, not measured. Confidence is context, not a promise of profit. The self-test is descriptive of past behaviour on the loaded symbol (fixed barriers, no costs or slippage) — a study aid, not a backtest and not a guarantee. A measured edge is what flips did historically here, not a forecast.
This script is for research and education only. It is not financial advice, not a recommendation to buy or sell, and not a guarantee of any outcome. Trading carries risk of loss; your decisions are your own. Test on your own data and use independent risk management before relying on it. 지표
