Wskaźnik

Session Value Ribbon [EXCAVO]Anchored volume-weighted mean with a harmonic value ribbon and HTF confluence
The Session Value Ribbon plots a volume-weighted mean of price and a volatility-scaled sigma envelope, then partitions the space between them into a harmonic value ribbon (0.236, 0.382, 0.5, 0.618, 0.786). Three anchor modes let the wave adapt to any chart: Rolling (a sliding N-bar window, default), Timeframe (classical anchored VWAP that resets each session), and Date (fixed anchor). A second accumulator on a slower reference timeframe runs the same math and plots as an HTF confluence line for multi-scale reads.
This is not a basic VWAP indicator. The ribbon layers, the volatility-regime scaling of the sigma bands, the HTF confluence overlay, and the auto-resolver that picks the anchor from the chart timeframe turn a single-line mean into a full value map of the current session.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator. The anchored mean, sigma envelope
and value ribbon draw immediately on whatever anchor
mode is selected (Rolling by default).
Step 2 → Read the mean as fair value for the active anchor.
Price above the mean = participants are bidding higher
than the anchor-window average; price below = lower.
Step 3 → Watch the outer sigma bands. A close beyond them
means price is stretched from fair value; the ribbon
layers below act as pullback shelves.
Step 4 → Use ribbon layers as intraday shelves. The 0.5 layer
is the midpoint between mean and outer band; the 0.236
layer sits close to the mean; the 0.786 layer sits
close to the outer band. Look for stalls and false
breaks at each layer.
Step 5 → Cross-check with the HTF confluence line. When the
primary mean and the HTF mean converge, price is in a
multi-scale value zone; when they diverge, one session
is running ahead of the other.
Step 6 → Read the dashboard for anchor mode, current mean,
distance from mean in sigmas, slope regime and bar
count since the anchor.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ Volume-Weighted Mean
The mean is a running weighted average of the selected price source. Weights come from volume with three modes: Full uses raw volume (classical MIDAS weighting), Root uses the square root of volume (dampens single-bar spikes so one huge candle cannot drag the mean), and None uses equal weight (the mean degenerates to a plain arithmetic average of the source).
◆ Anchor Modes
Rolling accumulates over a sliding N-bar window (default 200 bars), so the wave is always N bars long regardless of chart timeframe. Timeframe resets the accumulator on each boundary of the chosen anchor timeframe (Daily by default), matching the behaviour of a classical anchored VWAP. Date locks the anchor to a specific timestamp and keeps accumulating forever after.
◆ Sigma Envelope
Sigma is computed from the anchor-window weighted variance, E − (E )². The outer bands are drawn at ±sigmaMultiplier × sigma around the mean. Optional Volatility Regime Adjust multiplies sigma by an ATR-relative factor, bounded between 0.7x and 1.4x, so the bands breathe with the current activity state, giving tighter bands in quiet regimes and wider bands in wild ones.
◆ Harmonic Value Ribbon
The space between the mean and each outer band is split into harmonic layers at 0.236, 0.382, 0.5, 0.618 and 0.786 of the sigma distance. The ribbon is rendered as a progressive-opacity fill, not as separate labelled lines, so the eye reads a continuous value gradient instead of a stack of horizontal ledger lines.
◆ HTF Confluence Layer
A second accumulator runs the exact same math on the next slower anchor timeframe (Rolling with a longer window when the primary is Rolling; the next-slower TF step when the primary is Timeframe). The HTF mean plots as a thin coloured line. When the primary mean and the HTF mean align, price is in a multi-scale value zone.
◆ Slope-Based Regime Classifier
The classifier measures the slope of the primary mean over the slope-lookback window and normalises it by ATR. If |slope|/ATR exceeds the slope threshold (default 0.05 xATR), the ribbon and mean tint bull or bear. Below the threshold the regime is flat and the palette stays neutral.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Chart-Timeframe Auto-Resolver
The anchor timeframe is resolved automatically from the chart timeframe, so the wave shape stays consistent across intraday, swing and position TFs without manual tuning.
◆ Volatility-Regime Scaling
The sigma envelope adapts to activity state instead of being fixed at a static multiplier. Tight regimes contract the bands, wild regimes widen them, with a bounded 0.7x to 1.4x multiplier so the visual stays stable.
◆ Harmonic Ribbon as Progressive Fill
The intra-band space is drawn as a smooth value gradient rather than a stack of horizontal lines. Layer count is user-selectable (Harmonic 3, 5 or 7).
◆ HTF Confluence Overlay
A second anchored mean on the next slower timeframe plots as a companion line so multi-scale value alignment is visible without a second indicator on the chart.
◆ Distance-In-Sigma Readout
A right-edge readout reports the current mean and the current distance from mean in sigmas, so the extreme readings are legible without measuring.
◆ EXCAVO Overlay Visual
Chart-anchored overlay only, with no pane oscillator and no floating badges. The wave, ribbon and HTF line share a single tonal palette that stays out of the way of price action.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel (top right by default) with all key metrics:
Anchor - active anchor mode with its parameter (Rolling N, Timeframe TF, or Date)
Mean - current value of the anchored mean
Distance - price distance from mean in sigmas, signed
Regime - Up / Down / Flat classification from the slope-based regime engine
Bars in Anchor - bar count since the anchor started accumulating
Legend table (bottom left) explains every glyph and colour used on the chart. Toggle in Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
Anchor
Anchor Mode - Rolling (default), Timeframe, or Date
Rolling Length (bars) - 200 (window used in Rolling mode)
Anchor Timeframe - D (used in Timeframe mode)
Anchor Date - 01 Jan 2025 (used in Date mode)
Source
Price Source - (H+L+C)/3 (typical price)
Volume Weight - Full (raw volume) - Root (square root of volume) - None (equal weight)
Sigma Bands
Sigma Multiplier - 2.0 (band distance in sigmas)
Volatility Regime Adjust - OFF (ATR-scaled sigma with 0.7x-1.4x bounds)
Value Ribbon
Show Value Ribbon - ON
Ribbon Set - Harmonic 5 (0.236 / 0.382 / 0.5 / 0.618 / 0.786)
Ribbon Opacity Base - 80
Show Zone Fill - ON
Zone Fill Opacity - 88
HTF Confluence
Enable HTF Confluence - ON (draws a second mean from the next slower anchor)
Regime Coloring
Slope Regime Coloring - ON
Slope Lookback - 20 bars
Slope Threshold (xATR) - 0.05
Visualization
Bull Color - deep blue
Bear Color - red
Flat Color - neutral grey
HTF Confluence Color - amber
Show Right-Edge Readout - ON
Dashboard
Show Dashboard - ON
Dashboard Position - Top Right
Show Legend - ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ ALERTS
Directional alerts only.
Price Crossed Above Anchored Mean - close crosses over the primary anchored mean
Price Crossed Below Anchored Mean - close crosses under the primary anchored mean
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built on MIDAS anchored VWAP (Paul Levine, 1990s), extended with three anchor modes (Rolling / Timeframe / Date), selectable volume weighting, volatility-regime scaling of the sigma bands, a harmonic ribbon rendered as a progressive-opacity fill, an HTF confluence layer, a slope-based regime classifier, and a right-edge distance-in-sigma readout.
Best regards,
EXCAVO
Disclaimer
Trading involves significant risk. This indicator is a technical analysis tool
and does not constitute financial advice, investment recommendations, or a
guarantee of future results. Past indicator behavior does not guarantee future
performance. Always use proper risk management and your own judgment.
Wskaźnik

Wskaźnik

Triple Confluence Navigator [MarkitTick]💡 A highly sophisticated analytical framework designed to identify high-probability market setups by demanding alignment across three distinct dimensions of market data: momentum crossovers, adaptive volatility momentum tracking, and structural price action. Instead of relying on a single lagging variable, this system synthesizes traditional oscillators, advanced digital signal processing (such as Kalman filtering), and structural swing analysis. By integrating automated risk management, multi-take-profit targeting, and a real-time tracking dashboard, it operates as a comprehensive suite for systematic market analysis.
✨ Originality and Utility
● A Multi-Dimensional Consensus Model
Most standard technical tools assess the market through a single lens, such as pure price action or pure momentum. The originality of this system lies in its stringent confluence requirements. It isolates three independent mathematical models and requires all of them to agree within a user-defined chronological window. This significantly filters out market noise and reduces the frequency of false positive signals commonly associated with sideways or choppy conditions.
● Oscillatory Supertrend Application
While a Supertrend is traditionally overlaid on raw price action, this script innovates by calculating an Average True Range (ATR) directly on the Adaptive RSI (ARSI) oscillator. By establishing a Supertrend over momentum rather than price, the tool identifies the structural trend of the underlying momentum itself, offering a preemptive view of market shifts before they fully materialize in physical price movement.
● Dynamic Risk-Bounding
The utility is heavily elevated by its integrated risk management architecture. Rather than relying on static pip/tick stops, the system calculates dynamic risk parameters comparing structural pivot ranges against ATR-capped maximums. This ensures that the generated stop-loss levels are mathematically sound, adapting to prevailing market volatility while adhering to strict structural invalidation points.
🔬 Methodology and Concepts
• Pillar One: The Cardwell Momentum Averages
The first confluence pillar focuses on moving average crossovers applied to the Relative Strength Index (RSI). Instead of standard Simple Moving Averages, the system utilizes advanced smoothing algorithms—specifically Kalman Filters or Low Latency Adaptive Moving Averages (LLAMA). This separates the underlying momentum signal from high-frequency market noise, establishing a primary directional bias.
• Pillar Two: Adaptive RSI and Oscillator Supertrend
The second pillar generates an Adaptive RSI (ARSI), normalizing the absolute differences of price movement against historical highest highs and lowest lows. This adaptive data stream is then heavily filtered and paired with a momentum-based Supertrend. A crossover between the ARSI and its own moving/volatility band dictates the secondary momentum confirmation.
• Pillar Three: Market Structure and Swing Pivots
The third pillar grounds the mathematical momentum in tangible price action. The engine calculates precise pivot highs and pivot lows over a specified lookback period. A confirmed signal requires price to physically breach these structural swing levels, registering a Break of Structure (BoS) or a Change of Character (ChoCh).
• The Confluence Window and HTF Bias
Signals from these three pillars rarely occur on the exact same bar. The system tracks the bars elapsed since each respective signal. If all three pillars trigger in the same direction within the defined confluence window, a master setup is generated. Furthermore, an overarching Higher Timeframe (HTF) security check ensures that these local confluences do not contradict the macro directional trend.
🎨 Visual Guide
• On-Chart Trade Mapping
Entry Line: A dashed line indicating the exact closing price of the signal bar.
Stop Loss (SL) Line: A dashed line representing the structural or volatility-based invalidation point, labeled with an X.
Take Profit (TP) Lines: Three distinct dashed lines projecting the target levels based on the calculated risk multiplier.
• Signal Markers and Fills
Labels: Distinct textual markers reading BUY or SELL highlight the precise candle where the triple confluence is met.
Risk Zone: A translucent shaded area bridging the Entry line and the Stop Loss line, visualizing the total capital exposure.
Reward Zone: A differently colored translucent shading extending from the Entry to the final Take Profit (TP3) level.
• Real-Time Dashboard
The Heads-Up Display (HUD) is a table anchored to the chart corner. It outputs the live status of the Cardwell MA, Adaptive ARSI, and Structure modules. It includes dynamic visual bars indicating current RSI and ADX levels, displays the state of the HTF bias, and calculates the live floating risk-to-reward ratio of an active setup.
📖 How to Use
• Identifying Setups
Monitor the chart for the appearance of the signal labels. When a setup is validated, the system will immediately draft the Entry, SL, and TP lines on the chart. Assess the Risk Zone and Reward Zone visuals to ensure the potential setup aligns with your personal risk tolerance.
• Dashboard Monitoring
Use the dashboard to evaluate the health of the confluence. If the ADX visual bar is extremely low, it indicates market chop, suggesting that even a confluence signal might suffer from lack of follow-through. Monitor the structural trend state in the dashboard to understand the broader context of the immediate signal.
• Trade Management
The predefined TP1, TP2, and TP3 lines serve as partial profit-taking areas. As price achieves TP1, consider shifting risk to breakeven, utilizing the subsequent lines as trailing markers. The HUD's Live R metric tracks the real-time fractional gain or loss based on the initial risk unit.
⚙️ Inputs and Settings
• Momentum & Averages
RSI Len: Defines the lookback period for the base oscillator.
Fast/Slow Len: Defines the lookback for the moving averages applied to the oscillator.
Filter Type: Dropdown to select between standard RMA, recursive Kalman Filtering, or adaptive LLAMA.
• Adaptive Volatility
Kalman Process & Measurement Noise: Granular inputs adjusting the responsiveness and smoothness of the Kalman state estimation.
LLAMA Min/Max Alpha: Bounds for the dynamic efficiency ratio used in the adaptive moving average.
ST Factor: The volatility multiplier that determines the width of the ARSI Supertrend band.
• Structure & Trade Configuration
Swing Len: The number of bars required to confirm a structural high or low.
SL ATR Mult: The maximum allowable distance for a stop loss, based on True Range.
SL Struct Buffer: The fractional ATR distance placed beyond a swing pivot to prevent premature stop outs.
TP1/TP2/TP3 R:R: The dynamic risk multiples used to project the take profit levels.
Confluence Window: The maximum number of bars allowed to pass between the three distinct pillar signals for them to remain valid together.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Recursive State Estimation (Kalman Filter)
The inclusion of a Kalman-inspired filter applies concepts from control theory and digital signal processing. Unlike simple averaging which inherently introduces phase lag, this algorithm estimates the true state of the momentum by predicting the next value and updating its estimation based on the actual measured value. By weighing the process noise against the measurement noise, the script aggressively smooths erratic momentum spikes while instantly snapping to genuine directional shifts.
• Adaptive Linear Regression (LLAMA)
The Low Latency Adaptive Moving Average applies statistical regression to determine the current market phase. It calculates the slope of the data over a set period and compares it to the absolute range of that period to derive an Efficiency Ratio. This ratio acts as a dynamic alpha coefficient. In highly efficient, directional markets, the alpha increases, forcing the average to tightly track the data. In inefficient, mean-reverting markets, the alpha decreases, flattening the average to ignore statistical noise.
• Statistical Variance and Orthogonal Agreement
By mandating a Triple Confluence, the system relies on the reduction of statistical variance. The three pillars—price structure, base momentum, and adaptive momentum bands—are mathematically orthogonal; they calculate market state using distinctly different algorithms. The probability of all three aligning purely by chance (random walk) is exceptionally low. Therefore, when confluence is achieved, it represents a statistically significant deviation from market equilibrium, highlighting a high-probability directional vector.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Wskaźnik

Demand Supply Zone MatrixDemand Supply Zone Matrix by DayTradeSetup
Demand Supply Zone Matrix is an automatic Demand & Supply Zone indicator designed to help traders identify important price areas more clearly without manually drawing every zone.
The system detects potential Supply and Demand zones based on market momentum, volume activity, and the strength of price movement. It also includes zone grading, touch tracking, mitigation reference levels, alerts, and a dashboard summary to help traders filter key zones more efficiently.
Key Features
• Automatic Demand & Supply Zones
Automatically detects potential Supply and Demand zones based on strong directional price movement.
• Strength Grade / Score
Each zone is graded with an A / B / C score to help traders evaluate the quality and strength of each zone more easily.
• 50% Mitigation Line
Displays the midpoint of each zone, which can be used as a reference area for mitigation, retest, or reaction analysis.
• Touch Counter
Tracks how many times price has returned to test a zone, helping traders identify whether a zone is still fresh or has already been tested.
• Zone Retest Alert
Sends an alert when price comes back to test an active Supply or Demand zone.
• Zone Break Alert
Sends an alert when a zone is invalidated or broken by price action.
• Dashboard Summary
Includes a dashboard showing Supply/Demand zone count, best grade, total volume, and overall market bias.
How to Use
This indicator is designed to be used as a technical analysis tool for identifying areas where buying or selling pressure may appear.
Suggested workflow:
1. Check whether Supply or Demand is currently dominant.
2. Focus on higher-grade zones such as A or B.
3. Wait for price to return and test the zone.
4. Use additional confirmation such as Price Action, Market Structure, Trend Direction, or Risk Management before entering a trade.
Suitable For
This indicator is suitable for traders who use concepts such as:
Demand & Supply
Smart Money Concepts
Price Action
Retest Zones
Momentum Trading
Intraday Trading
It can be applied to multiple markets, including XAUUSD, Forex, Crypto, Indices, and different timeframes depending on the trader’s strategy.
Disclaimer
This indicator is a technical analysis tool only. It is not a direct Buy/Sell signal and does not guarantee trading results. Traders should always combine it with their own trading plan, risk management, and additional confirmation before making any trading decisions.
Risk Warning: Trading involves risk. Please study and understand the risks carefully before making any investment or trading decision. Wskaźnik

Order Flow OBV MACDOverview
Order Flow OBV MACD is an open-source oscillator that extends the classic OBV-style MACD idea with Pine Script v6 order-flow tools. It can run from a traditional OBV-style cumulative volume source or from CVD built with TradingView footprint delta. The script then transforms that cumulative flow into a MACD-style oscillator, applies a T-channel style direction line, and adds an adaptive confidence score that weighs recent signal components by how well they have aligned with price direction.
This is not a strategy and it does not place trades. It is intended as a market structure and confirmation tool for studying momentum, volume flow, and order-flow agreement.
What Makes It Different
The indicator combines four layers:
A selectable cumulative volume engine: OBV-style signed volume or CVD from footprint delta.
Optional footprint-adjusted CVD using Point of Control, Value Area, and POC row imbalance context.
A MACD-style oscillator derived from the transformed cumulative flow.
An adaptive confidence score that estimates bullish/bearish agreement from MACD direction, channel direction, delta direction, and footprint bias.
The goal is not to predict the future or claim a fixed win rate. The goal is to show when several volume and order-flow components are aligned, conflicting, or neutral.
How It Works
1. Cumulative Volume Source
The script starts by building a cumulative flow series.
OBV mode uses close direction multiplied by volume, then cumulates it.
CVD mode uses footprint delta, which is buy volume minus sell volume for the bar, then cumulates it.
OBV mode is broadly compatible. CVD mode uses TradingView's `request.footprint()` data, so footprint availability and account plan support matter.
2. Footprint-Adjusted CVD
When CVD Mode is set to Footprint-adjusted, the raw delta can be boosted or softened by row-level footprint context:
Price relative to the footprint Point of Control row.
Price relative to Value Area High and Value Area Low.
Buy or sell imbalance on the POC row.
If delta and footprint context agree, delta can be strengthened. If they conflict, delta can be reduced. The Footprint Row Influence setting controls how strong this adjustment is.
3. MACD Layer
The selected cumulative flow source is normalized through the original OBV-MACD style transformation and smoothed. The script then compares the transformed fast order-flow line against a slow EMA-based MACD leg.
The slow MACD leg can optionally adapt based on the previous bar's adaptive confidence. Strong confidence makes it more responsive. Weak confidence makes it smoother. This uses the prior bar's score to avoid circular logic.
4. T-Channel Direction Line
The main plotted blue/red line is a channel-style directional line based on the slope of the MACD output. Blue indicates positive channel direction and red indicates negative channel direction. Optional cross markers can show direction changes.
5. Adaptive Confidence
The Adaptive Confidence plot is a centered score:
Above 0 favors bullish agreement.
Below 0 favors bearish agreement.
+25 and -25 are guide levels for stronger directional confidence.
The score weighs four components:
MACD direction.
T-channel direction.
Delta/CVD direction.
Footprint bias.
Each component receives an adaptive reliability weight based on how well its previous signal aligned with the current bar's price direction over the selected lookback.
Key Inputs
Cumulative Volume Source
Choose OBV for classic compatibility or CVD for footprint delta-based flow.
CVD Mode
Raw delta uses footprint delta directly. Footprint-adjusted adds row-level POC, Value Area, and imbalance context.
Footprint Ticks Per Row
Controls the price height of each footprint row. Lower values create finer detail. Higher values smooth noisy row behavior.
Footprint Value Area %
Controls the amount of volume used to define the footprint Value Area. 70 is a common default.
Footprint Imbalance %
Controls how strong a row imbalance must be before it is considered meaningful. Higher values are stricter.
Footprint Row Influence %
Controls how much row-level footprint context can adjust bar delta in Footprint-adjusted mode.
Adaptive Weight Lookback
Controls how quickly component weights adapt. Shorter values react faster but can be noisy. Longer values are smoother.
Adapt MACD With Confidence
When enabled, the slow MACD leg adjusts using the previous bar's adaptive confidence. Disable it to keep the MACD closer to classic fixed-length behavior.
Suggested Use
Look for stronger bullish conditions when the channel is blue, the confidence score is above zero, and CVD/footprint settings support the move.
Look for stronger bearish conditions when the channel is red, the confidence score is below zero, and delta/footprint context agrees.
Treat low or mixed confidence as a warning that the components are not aligned.
Use the indicator with price structure, support/resistance, market context, and risk management. Do not use it as a standalone trading system.
Limitations
This is an indicator, not a strategy.
It does not guarantee accuracy, profitability, or future performance.
CVD and footprint-adjusted features depend on TradingView footprint data availability.
TradingView states that scripts using `request.footprint()` require Premium or Ultimate access.
The adaptive confidence score is a heuristic based on recent alignment, not machine learning training.
Like any oscillator, it can lag, whipsaw, or conflict with price during chop, news events, thin liquidity, or unusual volume conditions.
Credits
This script builds on an OBV MACD concept and includes a T-channel style directional component inspired by Alex Grover's T-Channels work. The v6 version extends the idea with footprint delta, CVD, row-level footprint context, adaptive confidence scoring, and optional confidence-adjusted MACD smoothing.
Disclaimer
This script is for educational and analytical use only. It is not financial advice, investment advice, or a recommendation to buy or sell any asset. Always test settings on your own symbol and timeframe, and use independent risk management. Wskaźnik

Market Structure + CHoCH/MSS/BOS | Xcelerate TradeMarket Structure + CHoCH / MSS / BOS | Xcelerate Trade
A precise market-structure mapper from the Xcelerate Trade team. It auto-detects swing highs / lows, classifies every break of structure as CHoCH (Change of Character), MSS (Market Structure Shift) or BOS (Break of Structure), and labels each pivot as HH / HL / LH / LL. Designed for SMC and price-action traders who want a clean, repaint-aware structural read of the chart.
What you get on the chart
Swing labels: HH (Higher High), HL (Higher Low), LH (Lower High), LL (Lower Low) — auto-placed on every detected pivot.
Break lines: every confirmed break is drawn as a horizontal segment from the swing bar to the breaking bar.
Break tags: each break line gets a label — CHoCH, MSS or BOS — so you can read structure at a glance.
Info table (top-right): current settings (Auto / Manual, TF, L/R, detection method, MSS definition, break validation) and an optional debug panel with trend state, flags, pre-CHoCH levels, last-break details.
Pattern alerts: ready-to-use alertcondition for HH-HL-HH and LL-LH-LL sequences.
Pivot detection — two modes
Williams Fractals (default): classic ta.pivothigh / ta.pivotlow with separate left and right lengths. Configurable in Manual Settings (defaults L = 6, R = 4) or selected automatically per timeframe via Auto Timeframe Settings:
Timeframe L / R
1m
4 / 4
5m
4 / 3
15m
5 / 4
30m+, daily, weekly, monthly
6 / 4
Simple Fractals: SMC-style, symmetric — current bar is a pivot if it's the highest / lowest within simpleFractalPeriod bars on each side. Faster but more frequent than Williams.
You can also force Wait for bar close (default ON) to confirm pivots only on closed bars.
Break validation — 4 modes
Choose how a level is considered "broken":
Close — close beyond the swing level (cleanest, default).
High/Low (wick) — wick beyond the level (most aggressive).
Close beyond buffer (ticks) — close beyond level ± N × mintick.
Close beyond buffer (%) — close beyond level ± X%.
Buffer fields appear conditionally so you can tune the strictness of structure breaks per instrument (forex, indices, crypto, etc.).
Structure classification — CHoCH / MSS / BOS
Trend state is tracked internally (Bullish, Bearish, Neutral). Every confirmed break is then classified:
CHoCH — first break that reverses the trend (bullish CHoCH on a close above the last swing high while bearish; bearish CHoCH on a close below the last swing low while bullish), or the very first break when the trend is still neutral. CHoCH flips the trend and starts a fresh leg.
MSS — first qualifying break in the direction of the new trend after CHoCH, per the MSS definition setting:
First break after CHoCH — any first break in trend direction = MSS, then BOS.
First break >= pre-CHoCH level — MSS only when the broken swing is at or beyond the swing level that existed before the CHoCH. Stricter — protects against premature MSS calls.
HL + >= pre-CHoCH (legacy) — same as above, plus a confirming HL (bull) / LH (bear) is required after CHoCH before MSS can fire.
BOS — every subsequent break in the trend direction after MSS — until the opposite CHoCH occurs and the cycle restarts.
This rule set keeps only one MSS per trend leg, with everything before it being CHoCH and everything after being BOS — exactly how SMC traders read it.
Pre-CHoCH levels (transparent reasoning)
When CHoCH fires, the script captures the swing-high / swing-low that existed before the trend flip (pre_choch_swing_high / pre_choch_swing_low). These are used by the stricter MSS modes and shown in the debug rows of the info table, so you can verify exactly why a break was classified as MSS or BOS.
Last broken swing tracking
For every confirmed break the indicator stores:
lastBreakSwingBarIndex — the bar where the broken swing originally formed (its ID).
lastBreakSwingPrice — the level that was broken.
lastBreakClassification — CHoCH / MSS / BOS.
lastBreakDirection — above swing high / below swing low.
lastBreakDetectBarIndex — the bar where the break passed your validation filter.
These are visible in the debug rows when Show debug rows (table) is on — useful for forensic / journal-style review.
Drawing budget (FIFO)
The indicator caps the number of CHoCH / MSS / BOS line + label pairs at Max CHoCH/MSS/BOS lines + labels (default 400, max ~80% of TradingView's 500 limit). Older drawings are removed first (FIFO), so you never hit the line cap on long histories.
Alerts
Two ready-to-use alert conditions:
HH-HL-HH Alert — fires when an HH-HL-HH pattern completes.
LL-LH-LL Alert — fires when an LL-LH-LL pattern completes.
Use TradingView's alert dialog → choose the alert condition by name. Messages include {{ticker}} and {{interval}} placeholders.
Suggested settings (from the Xcelerate Trade team)
Default for most traders: Auto settings ON, Williams Fractals, Wait for bar close ON, Break validation = Close, MSS definition = First break after CHoCH.
Strict structural read (low noise): Break validation = Close beyond buffer (%) with 0.05–0.10%, MSS definition = First break >= pre-CHoCH level.
Aggressive / fast feedback: Simple Fractals with period 2, Break validation = High/Low (wick), Wait for bar close = OFF.
Forensic review: turn ON Show debug rows (table) to see trend state, CHoCH / MSS flags, pre-CHoCH levels and the last-break summary.
Notes & disclaimers
Williams Fractals confirm with a delay equal to the right-length (R bars). This is intentional — pivots are not repainted after confirmation.
Simple Fractals confirm with a delay equal to simpleFractalPeriod bars.
This is an analytical tool — no automated buy / sell labels. Pair with your own execution rules.
Pine Script v6.
Built and maintained by the Xcelerate Trade team. A complete CHoCH / MSS / BOS market-structure read with HH / HL / LH / LL labels, four break-validation modes, three MSS definition modes, an info / debug table and ready alert conditions. Wskaźnik

Wskaźnik

Adaptive Market Suite [Jayadev Rana]Overview
Adaptive Market Suite is a four-module analysis toolkit that draws on the price chart. Each module is independent: turn any of them on or off, and each has its own settings group. It shows context, not buy or sell arrows. The four modules are an adaptive trend, volatility bands, market structure with order blocks and fair-value gaps, and an order-flow oscillator. You read the confluence and make your own decisions.
Module 1 - Adaptive Trend and Regime
A moving average whose smoothing adapts to Kaufman's efficiency ratio: the net distance price travelled divided by the total path it took to get there. In clean trends the ratio is high and the average speeds up to hug price; in chop it is low and the average slows and flattens. The line is coloured by its slope, and the info panel reports whether the market is trending or ranging from the same ratio.
Module 2 - Expected-Move Bands
Volatility bands around the adaptive basis. Instead of a fixed multiple of range, the band width scales with where the current Average True Range sits in its own recent history (its percentile), so the bands contract in quiet conditions and expand when volatility rises. A nearer pair and a wider pair mark two envelopes.
Module 3 - Liquidity and Structure
Market structure from confirmed swing pivots, labelled as Break of Structure and Change of Character. Because the pivots are symmetric (confirmed on both sides), they are fixed before they are drawn and do not repaint afterward. On a structure break the tool marks the order block behind the move (the last opposite-direction candle before the push) and it tracks fair-value gaps, which are three-bar imbalances. Each zone follows a mitigation lifecycle: it is extended while it is live and greyed once price trades through it, and only the most recent zones per type are kept so the chart stays readable.
Module 4 - Order-Flow Oscillator
A normalised buy and sell pressure read in the indicator pane. For each bar it combines where price closed within the bar's range with how large that bar's volume was relative to its recent average. Sustained closes near the highs on strong volume push the oscillator positive; the mirror pushes it negative. An absorption marker highlights bars with heavy volume but a small range, where effort is not producing movement.
Info panel
An optional compact table summarises the current trend direction, the regime read, the volatility percentile, and the current order-flow side. It is context only.
Inputs
Inputs are grouped per module: General (ATR length); Module 1 (efficiency length, fast and slow smoothing, regime threshold, colours); Module 2 (volatility lookback, base and extra width, colour); Module 3 (swing length, order-block lookback, max zones per type, toggles for structure, order blocks and fair-value gaps, colours); Module 4 (pressure smoothing, absorption threshold, colours); plus an info-panel toggle. Every module has a single enable switch.
Alerts
Bullish and bearish structure break, and the order-flow oscillator crossing above or below zero.
How to use it
Treat it as a confluence map rather than a signal. For example, price reaching an order block near the lower band, with the order-flow oscillator turning up while the adaptive trend is still rising, is a stronger context than any one of those alone. Turn off the modules you do not need: if you only trade structure, disable the other three groups for a clean map. It is intended for liquid instruments and works across timeframes; the demonstration chart is Gold on the 1-hour timeframe.
Limitations
The structure module confirms swings with bars on both sides, so its labels and order blocks appear a fixed number of bars after the pivot forms. That delay is the trade-off that keeps them from repainting. The bands, the oscillator and the info panel read the current bar and update as it forms, like any live calculation. This is an analysis tool, not a strategy: it places no orders, makes no performance claim, and there is no win rate because it does not promise trades.
Disclaimer
For education and research only. This is not financial advice, and past chart behaviour does not predict future results. Test any approach yourself and manage your own risk. Wskaźnik

xKen-t COT Index & Extremes (Native)Overview
COT Index & Extremes (Native) turns Commitments of Traders positioning into a single, decision-ready sentiment reading. It fetches CFTC COT data directly, converts a chosen trader group's net position into a 0–100 index that shows where current positioning sits within its own historical range, and flags when that positioning reaches a bullish or bearish extreme. The goal is to replace "eyeballing" raw COT lines with a defined, repeatable number.
The concept behind it
Raw COT net positions are hard to act on because "a lot" or "a little" only means something relative to an asset's own history. This script applies a position-in-range normalization (in the spirit of a Williams %R calculation, but applied to positioning rather than price): it takes the selected group's net position (long minus short) and measures where today's value falls between its lowest and highest readings over a lookback window, scaled 0–100. A reading near 100 means positioning is at the top of its historical range; near 0, the bottom. Two windows are used together — a short (26-week) read for the current swing in sentiment and a long (~3-year, 156-week) read for the structural picture.
Extremes are then defined mechanically: at or above 80 = an extreme in that group's positioning (bullish bias for commercials), at or below 20 = the opposite extreme (bearish bias). This makes "extreme" a number you can journal and alert on, not a subjective judgment.
What it does
- Fetches CFTC COT data natively and auto-resolves the correct futures contract from the chart's symbol — no need to wire in another indicator as a data source.
- Builds the net position for the selected trader group and normalizes it to the 0–100 index (short and long lookbacks).
- Marks the bullish/bearish extreme threshold zones and states a plain bias: BULLISH, BEARISH, or NO EDGE.
- Lets you switch between Commercial, Non-Commercial, and Retail (non-reportable) groups. Note these read differently — commercial hedgers are commonly used as a contrarian ("smart money") read at extremes, while non-commercials and retail are the crowd typically faded at extremes.
- Fires alerts when the index crosses into a bullish or bearish extreme.
When a symbol has no CFTC data (cash indices, most single stocks, crypto, exotic crosses), it clearly states "NO COT — use the futures symbol" and prompts you, instead of silently plotting a misleading line off price.
- Displays a panel confirming the resolved CFTC code, the active trader group, and whether the chart is on the correct (weekly) timeframe.
What's original here
Most COT tools plot raw net positions or require you to wire in another indicator's data. This one is self-contained and reframes the data for decision-making through three things: (1) it fetches CFTC Commitment of Traders data natively via TradingView's COT library and auto-resolves the correct contract from the chart's futures symbol, so no source-wiring is needed; (2) it converts a chosen trader group's net position (long − short) into a 0–100 "position-in-range" index — a Williams-style normalization showing where current positioning sits within its own historical range over a short (26w) and long (~3y) lookback — so an "extreme" becomes a defined number (≥80 / ≤20) instead of a visual guess; and (3) it switches cleanly between Commercial, Non-Commercial, and Retail groups and states a plain bullish/bearish/neutral bias from the index. When a symbol has no CFTC data (cash indices, most stocks, exotic crosses) it says so and prompts for the futures symbol, rather than silently plotting noise. A panel confirms the resolved CFTC code, the group, and whether you're on the correct weekly timeframe.
How to use it
1. Open a weekly chart of the futures symbol (e.g. 6E1!, GC1!, DX1!, ES1!, 6N1!) — not the cash index or spot pair. COT is weekly data, and the lookbacks are counted in weekly bars.
2. Read the index and bias. ≥80 = bullish extreme, ≤20 = bearish extreme, mid-range = no positioning edge.
3. Use it as directional context, confirmed by your own entry method, levels, and risk management.
4. If the panel shows no code, enter the 6-digit CFTC code manually in settings, or switch to the contract's futures symbol.
Inputs
Trader group (Commercial / Non-Commercial / Retail) · optional CFTC code override · include-options toggle · short and long lookbacks · bullish/bearish thresholds · display and shading options.
Attribution
COT data access uses TradingView's official LibraryCOT. This script's original contribution is the index construction, bias logic, no-data handling, and presentation built on top of that data.
Limitations and disclaimer
COT is weekly, reported with a lag, and only exists for CFTC-reported futures — so this is context, not a timing signal, and it will not read non-CFTC instruments. Positioning extremes indicate potential, not certainty, and can persist for extended periods. This is an analysis tool, not financial advice. Always confirm with your own analysis and manage risk. Wskaźnik

Institutional Swing Setup ScoreInstitutional Swing Setup Score — User Manual
1. What This Indicator Does
The Institutional Swing Setup Score (ISS Score) evaluates the quality of a potential long swing trading setup on US equities — the way an experienced institutional trader reads a chart: trend health, relative strength, price structure, volatility contraction, volume/accumulation behavior, and breakout readiness.
It does NOT:
Generate automated buy/sell signals
Recommend stop-loss or profit targets
Manage positions or calculate position sizing
Replace your own judgment
It's a screening and analysis tool — it tells you how good a setup looks, not what to do about it.
2. Adding It to Your Chart
Open the Pine Editor, paste the script, click Add to Chart
It creates two things:
A sub-pane below the price chart showing the Composite Score line (0–100) with reference bands
A dashboard table overlaid directly on the price chart (top-right by default)
3. Reading the Composite Score (0–100)
ScoreMeaningColor80–100Exceptional setupGreen60–79Good setupLime40–59Average / developingYellow20–39WeakOrange0–19Very weakRed
Watch the trajectory of this line as much as the absolute number — a rising score often matters more than a single day's reading.
4. Reading the Dashboard (on the price chart)
RowWhat It Tells YouInstitutional Setup ScoreThe overall composite scoreTrend QualityLong-term trend health (MA alignment, slope, position in 52-week range)Relative StrengthLeadership vs. the benchmark (default SPY)Price StructureBase tightness, compression near highs, higher lowsVolatility ContractionIs volatility squeezing (a pre-breakout signature)?Volume QualityVolume dry-up, demand/supply, accumulation, breakout thrustInstitutional AccumulationYes/No — is the Accumulation/Distribution line trending up?Breakout ReadinessComposite estimate of proximity to a high-quality breakoutHigher-Low CountConfirmed rising pivot lows in the current baseBreakout ConfirmedYes/No — fresh high + volume thrust + trend + RS all aligned
5. Setting Up Alerts
Click the clock/alarm icon → Condition → select "Institutional Swing Setup Score" → choose one:
Setup Score Above Threshold — composite crosses your chosen level
Significant Setup Improvement — score jumped meaningfully in 5 bars
New Institutional Accumulation Phase — A/D line turns up
Exceptional Volume Behaviour — volume score crosses a high threshold
Breakout Readiness High Confidence — breakout score crosses a high threshold
Breakout Confirmed With Volume — fresh high + real volume + trend + RS align
All alerts are informational ("worth a look") — none instruct you to trade.
6. Optional Testing/Calibration Markers
Under Testing / Calibration (NOT trade advice) in Settings:
Show Score-Based Test Markers (on by default) — plots triangles/labels directly on price:
🔺 Lime triangle = score crossed above your "entry" threshold
🔻 Red triangle = score crossed below your "exit" threshold
B = breakout confirmed
These exist purely to help you visually backtest the scoring engine against price history. They are not recommendations.
7. Key Settings You'll Likely Adjust
SettingWherePurposeBenchmark SymbolGeneral & BenchmarkChange from SPY to a sector ETF if preferredComposite Scoring WeightsComposite Scoring WeightsRebalance how much each engine counts (Volume is highest by default)Dashboard Position/SizeDashboardMove/resize the on-chart tableAlert thresholdsAlertsTune sensitivityTest marker thresholdsTesting/CalibrationLoosen/tighten for backtesting visibility
8. How to Use It in Practice
Scan watchlists for stocks with a rising composite score, not just a high one
Check Trend Quality and Relative Strength first — these often move early
Use Breakout Confirmed = Yes as a "this deserves a closer look" flag
Treat the score as one input into your own discretionary analysis — always combine with your own risk management, entries, and exits
9. Important Limitations
Built for clean, orderly bases (tight ranges, contracting volatility). Choppier or news-driven moves may score lower even when the eventual move is large — this is intentional selectivity ("quality over quantity"), not a bug.
Volatility/Structure scores will naturally dip during an active breakout, since range and volatility expand as price moves — that's expected behavior, not malfunction.
10. Symbols & Markers Reference
Add this section to the manual (fits after Section 6):
On the Price Chart (Main Pane)
Symbol Appearance Location Meaning Triggered By
🔺 Triangle UpLime/green, smallBelow the bar"Test Entry" — score crossed above your entry thresholdComposite Score crosses above Test Entry Score (default 60)
🔻 Triangle DownRed, smallAbove the bar"Test Exit" — score crossed below your exit thresholdComposite Score crosses below Test Exit Score (default 40)
B Orange letter, smallBelow the barBreakout Confirmed — fresh high + volume thrust + trend + RS all aligned same day
Disclaimer: This indicator is for educational and analytical purposes only. It is not financial advice, and Claude/Anthropic is not a licensed financial advisor. Always do your own research and risk management.Add the details on the symbols generated by the indicator.Architected comprehensive reference guide documenting visual indicators and symbolsArchitected comprehensive reference guide documenting visual indicators and symbolsSymbols & Markers Referen Wskaźnik

xKen-t Williams %R + EMA w/COT Bias GateWhat's original here
This isn't a Williams %R repaint. Standard %R gives a level; this script converts it into a filtered, context-aware timing engine through four combined mechanisms: (1) exit-from-extreme triggers that fire when %R crosses back out of −80/−20 rather than when it reaches them, so signals mark the reversal instead of the ongoing move; (2) EMA-side confirmation that validates the exit against the 13-EMA; (3) a −50 regime filter that blocks counter-regime signals; and (4) a directional-bias gate that normalizes any external series you feed it (e.g. a COT commercial-net line) to a 0–100 position-in-range index and suppresses every signal that disagrees with that bias. The gate is the core idea — it makes the oscillator time entries only in a separately chosen direction, turning a reversal oscillator into a with-context pullback tool. A status table surfaces %R, its EMA, the regime, the active bias, the higher-timeframe read, and the last signal in one place.
Overview
A Williams %R momentum tool rebuilt around three ideas: it signals on the exit from an extreme rather than the touch, confirms that exit with the %R/EMA relationship, and can gate every signal by an external directional bias (such as Commitments of Traders positioning) so only signals agreeing with that bias are shown. This targets the two classic Williams %R weaknesses — catching falling knives at the band, and firing endless counter-trend reversals during strong trends.
What it calculates
- Williams %R (default 21): the standard oscillator (0 to −100) measuring where the close sits within the lookback's high-low range.
- 13-EMA of %R: a smoothing/confirmation line.
- Triggers: in "Band exit" mode a long fires when %R crosses back up through −80 (leaving oversold) and a short when it crosses back down through −20 (leaving overbought). In "EMA cross in zone" mode the trigger is %R crossing its EMA while in the lower/upper half. Either way, it marks the turn, not the extreme reading itself.
- EMA confirmation (optional): requires %R on the trigger side of its EMA at signal time.
Regime filter (optional): longs only when the %R EMA is above the −50 midline, shorts only when below.
- COT Bias Gate: point the "COT source" input at any external series on the chart — e.g. a Commitments of Traders commercial-net or COT-index line. The script converts it to a 0–100 position-in-range index over a lookback; ≥80 is treated as bullish bias, ≤20 as bearish. With the gate on, longs show only in a bullish bias and shorts only in a bearish one; opposite-bias signals are suppressed. You can also set the bias manually or turn the gate off for standalone %R.
- Divergence (optional): regular bull/bear divergence between price pivots and %R pivots.
Higher-timeframe read (optional): shows a higher-timeframe %R value in the table for top-down context.
How to use it
1. Add it on your entry timeframe (defaults: %R 21, EMA 13, band-exit, EMA confirmation on).
2. Set the bias — manually (Bullish/Bearish), or "Auto" pointed at a COT/context line, or Off.
3. Trade the markers: green up-triangle = confirmed long trigger, red down-triangle = confirmed short. Combine with your own levels and risk management.
Notes and limitations
- Divergence markers are drawn back at the confirmed pivot using an offset — they plot in the past and can repaint until the pivot forms. Treat them as context, not a standalone trigger.
- The gate reads whatever series feeds the source input; on the default (Close) the "bias" is computed from price, not COT — point it at a real COT/context line for it to be meaningful.
- The higher-timeframe read uses non-lookahead requests (no future data).
- Analysis tool for timing within a chosen bias. It does not predict outcomes and is not financial advice. Wskaźnik

Wskaźnik

Kurdistani Macro Regime# Kurdistani Macro Regime
## Overview
Kurdistani Macro Regime is a comprehensive macroeconomic dashboard designed to help traders evaluate the current global macro environment using publicly available economic data.
Rather than predicting future prices, the script converts multiple macroeconomic indicators into a rule-based market regime model that helps identify whether current conditions favor:
• Expansion
• Recovery
• Slowdown
• Stagflation
• Recession
The indicator combines inflation, monetary policy, liquidity, labor market conditions, yield curve dynamics, credit spreads and volatility into a single analytical framework.
This script is intended for macro analysis and portfolio positioning rather than short-term price forecasting.
---
# Data Sources
The indicator retrieves macroeconomic information directly from the FRED (Federal Reserve Economic Data) database whenever available.
Main datasets include:
• CPI Inflation
• Federal Funds Rate
• ECB Policy Rate
• GDP
• Unemployment Rate
• M2 Money Supply
• Treasury Yields
• Credit Spreads
• VIX
• Inflation Breakevens
• Oil Prices
Because macroeconomic releases occur weekly, monthly or quarterly, values update only when new official data become available.
---
# Macro Regime Engine
The script evaluates three major components of the economy.
## 1. Growth
Growth is estimated using:
• GDP Growth
• PMI Trend
• Labor Market
• Growth Momentum
Higher scores indicate stronger economic expansion.
---
## 2. Inflation
Inflation analysis includes:
• CPI Level
• CPI Trend
Higher inflation increases the probability of restrictive monetary policy.
---
## 3. Liquidity
Liquidity considers:
• M2 Growth
• Federal Funds Rate
• Yield Curve
• Market Volatility
Higher liquidity generally supports risk assets.
---
These components are combined into five macro regimes.
Expansion
Strong growth with controlled inflation.
Recovery
Improving growth following economic weakness.
Slowdown
Moderating economic activity.
Stagflation
High inflation combined with weak growth.
Recession
Broad deterioration across multiple macro indicators.
---
# Advanced Macro Indicators
The dashboard includes several composite indicators.
## Macro Health Score
A composite score between 0 and 100 summarizing overall macro conditions.
Higher values indicate healthier macro environments.
---
## Recession Risk Score
A rule-based composite using:
• Yield Curve
• GDP
• PMI
• Labor Market
• Credit Spreads
• Real Interest Rates
This score is **not** a statistical recession probability.
---
## Fed Pivot Score
Measures whether macro conditions are becoming more favorable for future monetary easing.
Inputs include:
• Inflation
• GDP
• Unemployment
• Yield Curve
• Interest Rates
This is an analytical score rather than a forecast.
---
## Dollar Milkshake Score
Estimates relative USD strength using:
• Interest Rate Differential
• Credit Stress
• Emerging Market Stress
• Volatility
• Real Rates
Higher values suggest stronger demand for USD liquidity.
---
# Asset Outlook
The indicator estimates macro conditions for several asset classes.
## Gold
Gold generally benefits from:
• Negative Real Rates
• Higher Inflation
• Recession Risk
• Easier Liquidity
---
## Bitcoin
Bitcoin is evaluated primarily through:
• Global Liquidity
• Risk Appetite
• Real Rates
• Monetary Conditions
---
## US Dollar
The Dollar score reflects:
• Rate Differentials
• Risk-Off Conditions
• Real Rates
• Credit Stress
---
## US Equities
The equity model incorporates:
• Growth
• Liquidity
• Yield Curve
• Credit Conditions
---
## Long-Term Treasury Bonds
Bond scoring focuses on:
• Recession Risk
• Fed Pivot
• Yield Curve
• Real Rates
---
# Dashboard
The dashboard summarizes:
Current Macro Regime
Risk-On / Risk-Off Environment
Macro Health
Recession Risk
Fed Pivot Score
Dollar Milkshake Score
Yield Curve
Interest Rates
Inflation
GDP
PMI
Employment
Oil Trend
Asset Scores
Signal History
Upcoming Economic Calendar
---
# Trading Signals
The script generates several informational signals.
Gold Macro Bullish
Appears when macro conditions become favorable for gold.
Bitcoin Risk-On
Appears when liquidity and risk conditions support Bitcoin.
Yield Curve Inversion
Highlights significant inversion events.
Fed Pivot
Indicates improving conditions for potential future monetary easing.
Oil Shock
Flags unusually large oil price movements.
These signals are informational and should be confirmed with market structure and price action.
---
# Risk Management
This indicator is designed to complement—not replace—technical analysis.
Possible workflow:
1. Determine the current macro regime.
2. Evaluate risk appetite.
3. Compare asset scores.
4. Wait for technical confirmation.
5. Execute trades according to your own trading plan.
---
# Inputs
Users can customize:
• Macro thresholds
• Dashboard visibility
• Signal visibility
• Calendar dates
• Watermark
• Risk profile
• Alert system
• Bullish thresholds
---
# Limitations
This script uses macroeconomic data that update less frequently than market prices.
Economic releases may be revised after publication.
Some FRED series may be unavailable depending on TradingView data availability.
The model is deterministic and rule-based.
It does not employ machine learning or statistical forecasting.
---
# Disclaimer
This indicator is intended solely as an educational and analytical tool.
All scores, regimes, probabilities and signals are generated using predefined rule-based logic and should not be interpreted as predictions or guarantees of future market performance.
Always combine macro analysis with technical analysis, sound risk management and your own independent research before making trading decisions. Wskaźnik

Auction Regime Router Entropy Gate & Hurst MemoryAuction Regime Router — Entropy Gate & Hurst Memory
What it is
Every structure playbook fails in the wrong regime. Fading the value-area edge works when price is anti-persistent (stretches snap back); riding a breakout works when price is persistent (moves feed on themselves); and nothing structural works when the tape is noise. This tool measures two things — how much structure exists, and what kind it is — and routes to a plain-language answer: FADES VIABLE / BREAKOUTS VIABLE / STAND ASIDE. It decides which of your tools to trust, never buy or sell.
The two measurements (and how they work together)
Permutation entropy (Bandt–Pompe 2002) — the gate. It measures how disordered the recent price sequence is from the frequencies of ordinal patterns (which of the 6 orderings each price triplet takes). High entropy = all patterns equally likely = noise = no structural edge. The gate is self-calibrated: entropy is ranked against its own recent history, so "noisy" means noisy for this symbol and timeframe.
Hurst exponent (Hurst 1951; Mandelbrot) — the router. Memory via diffusion scaling: how the dispersion of K-bar returns grows with K. H > 0.5 = persistent → continuation regime; H < 0.5 = anti-persistent → reversion regime. Research supports the routing: mean reversion is empirically more probable and faster during anti-persistent periods.
The mashup logic is a hierarchy, not a mixture: the entropy gate overrides the Hurst read. If the tape is noise, the router says STAND ASIDE regardless of what H says — because a memory estimate on noise is meaningless.
The honesty steps
A dead zone around H = 0.5 (default 0.45–0.55): near a random walk the memory read is unreliable, so the router says MIXED rather than pretending. Practitioners commonly require a margin before activating a playbook; both thresholds are inputs.
A minimum-dwell filter (the standard anti-chattering design from switched-systems control): a new regime is announced only after it survives a set number of confirmed bars, so the read doesn't flip-flop bar to bar. The cost is that many bars of lag — stated, and adjustable.
Estimates are proxies from bar data with overlapping windows — descriptive of the recent past, not a prediction. The dashboard shows the state, how long it has persisted (regime age), how dominant it has been recently (stability %), and any pending regime with a countdown — nothing more.
How to use it
Add to any liquid symbol/timeframe; defaults suit intraday index futures. The script requests no external data of any kind, so it runs on every plan and every symbol.
Glance at the regime lane — the thin colored strip at the bottom of the pane: blue = continuation, violet = reversion, amber = noise, gray = mixed. The palette is deliberately direction-neutral — no green or red anywhere in regime coding, so nothing can be misread as a buy or sell.
The HTF STACK row shows the raw regime on three higher timeframes derived as multiples of the chart (defaults 3×, 5×, 15× — so a 5m chart reads 15m/25m/75m automatically, adapting to any chart). A ✓ in green = every timeframe agrees on the same actionable regime (strongest context). A ⚠ in amber = a higher timeframe reads NOISE or the opposite regime while the chart claims a playbook (weakest — reduce or wait).
Read the dashboard for detail: REVERSION → your value-area fade / band-reversion tools are in their element; CONTINUATION → your breakout / drive tools are; NOISE → the gate is closed, stand aside; MIXED → no clear routing, reduce. STABILITY shows how settled the read is; PENDING shows a forming regime with a countdown.
Regime-change tags print only on announced (dwell-confirmed) changes; alerts fire on entering each state.
Best used as the selector above your structure toolkit rather than as a standalone display.
What makes it original
Hurst and entropy oscillators exist. What this adds: (1) the hierarchy — a self-calibrated entropy gate that can veto the memory read, instead of two numbers side by side; (2) routing to auction playbooks in plain language (fade vs breakout viability), not a raw statistic; (3) honest dead zones, a minimum-dwell announcement filter, and stability/pending context instead of a binary flip at H = 0.500. It is a decision-hygiene tool for structure traders.
Concept credits
Ordinal-pattern (permutation) entropy — C. Bandt & B. Pompe (2002). Long-memory / rescaled-range analysis — H. E. Hurst (1951); fractal market framing — B. Mandelbrot. Regime-gated strategy selection — standard quantitative practice. Implementation and charting design are the author's own.
Important disclaimer
Research and education only. Not financial advice, not a signal service, not a guarantee of future results. Regime labels are descriptive statistics of recent bars; regimes change without warning and estimates are proxies. Validate independently and manage your own risk. Wskaźnik

Supertrend Transition FrameworkSupertrend Transition Framework is not a basic Supertrend clone.
The Supertrend line is the visible base layer. The main contribution is a neutral transition layer that describes profile agreement, boundary distance, transition pressure, flip age, boundary touches, flip cascade context, and trail behavior.
This script is designed for traders who want a trend-direction reference from ATR-based trailing boundaries while also seeing context around boundary proximity, profile agreement, recent transitions, and trail behavior.
It is a context and visualization tool only. It does not provide trade-action instructions and it is not a trading system.
What it shows
- A manually calculated ATR-based Supertrend boundary.
- Optional fast, base, and slow Supertrend profiles.
- Profile agreement across enabled Supertrend profiles.
- Boundary distance measured in ATR units.
- Transition pressure based on proximity to the active boundary.
- Flip age for the base profile.
- Boundary touch context.
- Flip cascade context across profiles.
- Trail slope context.
- ATR input drift.
- A compact state fingerprint.
- A context table with Compact, Standard, and Detailed layouts.
- Optional capped event labels.
- Factual alert conditions.
Manual Supertrend profiles
The script calculates Supertrend profiles directly from current chart bars.
Each profile uses:
- ATR length
- ATR multiplier
- band source
- flip source
- enable switch
- optional line display
- visual settings
The default profiles are:
- Fast profile: ATR length 7, multiplier 2.0
- Base profile: ATR length 10, multiplier 3.0
- Slow profile: ATR length 21, multiplier 4.0
The base profile is the primary visible boundary by default. Fast and slow profile lines are available but are not shown by default to keep the chart clean.
The default inputs are common starting points. They are not optimized settings.
Profile Agreement
The script compares the valid Supertrend profile directions.
Agreement Score ranges from about -100 to +100:
- +100 means all valid profiles are upward.
- -100 means all valid profiles are downward.
- near 0 means profiles are mixed.
Agreement requires the base profile to be valid and at least two valid profiles to be available. A single valid profile is not treated as profile agreement.
Possible agreement states include:
- Need profiles
- Need base profile
- Warming up
- Need 2+ valid profiles
- Agreement upward
- Agreement downward
- Mixed profiles
Boundary Distance
The base Supertrend boundary is used as the active boundary.
The script calculates the distance from the selected price to the active boundary in ATR units.
This is shown as Boundary distance.
This field describes current distance only. It is not a risk model, projected level, or instruction.
Transition Pressure
Transition Pressure describes proximity to the active Supertrend boundary.
It is calculated from the distance to the boundary and the selected pressure ATR window.
A higher value means price is closer to the active boundary.
This does not tell users what will happen next. It only describes proximity to the active boundary.
Flip Age
Flip Age counts how many bars have passed since the base profile last changed direction.
This helps users see how long the current base structure has persisted.
Boundary Touch Context
A boundary touch is observed when price touches or approaches the active Supertrend boundary within the selected ATR tolerance.
The script tracks Boundary touch age.
The touch event is rising-edge based, so it does not repeatedly fire every bar while price stays near the boundary.
Flip Cascade Context
The script tracks whether fast, base, and slow profiles have recently changed into the same current base direction within the selected cascade lookback.
Cascade context can read as:
- No cascade
- Partial cascade
- Full cascade
- n/a
This is descriptive only.
Trail Slope Context
The script measures how the base Supertrend trail has changed over the selected trail slope lookback.
Trail slope context can read as:
- Rising trail
- Falling trail
- Flat trail
- n/a
ATR Input Drift
Because Supertrend uses ATR, the script includes a simple ATR input drift readout.
ATR input drift compares the current base ATR to a prior base ATR value over the selected lookback.
It can read as:
- ATR input rising
- ATR input falling
- ATR input steady
- n/a
This is not a volatility-regime classifier. It only describes how the ATR input used by the base profile has changed.
Transition State and Transition Context
The main State is direction and agreement focused.
Possible states include:
- Need profiles
- Need base profile
- Warming up
- Need 2+ valid profiles
- Upward agreement
- Downward agreement
- Upward base / mixed profiles
- Downward base / mixed profiles
- Mixed profiles
Transition Context is shown separately so that boundary proximity does not hide the direction/agreement state.
Transition Context can show:
- Boundary touched
- Cascade active
- Full cascade
- High boundary pressure
- Moderate boundary pressure
- Low boundary pressure
- n/a
State Fingerprint
The Fingerprint is a compact summary row for quick reading.
Example:
B+ A+ P34 C2 F18
Meaning:
- B+ means the base profile is upward.
- B- means the base profile is downward.
- B0 means the base profile is unavailable.
- A+ means upward profile agreement.
- A- means downward profile agreement.
- A0 means mixed or unavailable agreement.
- P shows boundary pressure.
- C shows cascade count.
- F shows base flip age.
The fingerprint is a compact context summary. It is not an instruction.
Context table
The context table is on by default.
Compact layout shows:
- State
- Fingerprint
- Transition context
- Base direction
- Agreement
- Boundary distance
- Flip age
Standard layout adds:
- Agreement score
- Boundary pressure
- Boundary distance ATR
- Cascade
- Trail slope
- Last boundary touch
- Alert mode
- Label mode
- Bar status
Detailed layout adds research fields, including:
- Fast direction
- Base direction
- Slow direction
- Enabled profiles
- Valid profiles
- Up / Down profile count
- Agreement ready
- Fast / Base / Slow readiness
- Fast / Base / Slow ATR
- Base trail
- Trail slope %
- ATR drift %
- Cascade count
- Pressure window
- Touch tolerance
- Cooldown state
- Last event age
- Label cap
- State ID
- Active settings
The context table is the primary research surface. The script does not add extra chart plots for these research fields.
Labels and alerts
Labels are optional and off by default.
Label modes:
- Off
- Base flips
- All events
Labels are capped by a user-defined maximum. Older labels are deleted after the cap is reached.
Labels are confirmed-bar visual records by default.
Alert mode and label mode are disclosed separately in the context table. Alerts are confirmed on close by default, and intrabar alert behavior can be enabled from the settings.
The final event engine is shared by alerts and labels. Event cooldown and one-event-per-bar behavior apply to final events.
Factual alert conditions include:
- Base Supertrend flipped upward
- Base Supertrend flipped downward
- Profiles reached upward agreement
- Profiles reached downward agreement
- Profiles became mixed
- Boundary pressure reached threshold
- Boundary touch observed
- Cascade context changed
Customization
Users can adjust:
- band source
- flip source
- confirmed-bar event mode
- automatic warm-up behavior
- fast/base/slow profile enable settings
- fast/base/slow ATR lengths
- fast/base/slow multipliers
- fast/base/slow line visibility
- fast/base/slow colors, widths, and transparency
- agreement threshold
- pressure ATR window
- high pressure threshold
- boundary touch tolerance
- cascade lookback
- trail slope lookback
- trail slope flat threshold
- ATR drift lookback
- ATR drift threshold
- minimum state bars for events
- event cooldown
- context table layout
- context table position
- table text size
- event label mode
- background tint
- label cap
- table colors
- label colors
- tint transparency
Visual settings do not affect calculations.
Plot-budget design
The script keeps chart plots minimal.
Only the fast, base, and slow Supertrend trails are plotted as lines.
Labels are used for optional event records instead of shape plots, and they are capped. No extra chart plots are used for research fields.
Different from other tools
This script does not use Keltner channels, session shading, volatility-regime classification, VWAP, volume weighting, RSI divergence, or moving-average structure analysis.
It focuses only on ATR-based Supertrend boundaries and their transition context.
Limitations
Supertrend is ATR-based and changes when ATR length, multiplier, or source settings change.
ATR-based boundaries lag price by design.
A profile agreement state can persist, unwind, or flip.
Boundary pressure does not tell users that a boundary change will occur.
A mixed profile state does not tell users that direction will change.
Defaults are starting points, not optimized settings.
The script describes current and recently observed structure. It is not financial advice and not a trading system.
Japanese notes
このスクリプトは通常のSupertrendライン表示だけではなく、Fast / Base / Slow の一致、境界までの距離、境界圧力、Flip age、Boundary touch、Cascade、Trail slope、ATR drift、Fingerprint、Context tableでSupertrendの転換文脈を可視化する補助ツールです。売買判断や将来の値動きを示すものではなく、現在のATRベース境界とその周辺状況を整理するためのツールです。 Wskaźnik

Bullish Candle RatioIntroduction
Bullish Candle Ratio is a market statistics indicator that measures the percentage of bullish candles within a selected lookback period.
Instead of focusing on price levels or moving averages, the indicator evaluates the balance between bullish and bearish candles. This provides a simple overview of market participation and directional dominance over recent bars.
The result is displayed as a percentage between 0% and 100%, making it easy to assess whether buyers or sellers have been more active during the selected period.
How It Works
The indicator counts how many candles closed above their opening price during the selected lookback period.
The Bullish Candle Ratio is calculated as:
Bullish Candle Ratio = (Number of Bullish Candles ÷ Lookback Period) × 100
For example, if 15 out of the last 20 candles are bullish, the Bullish Candle Ratio equals 75%.
Key Features
Market Participation
Quickly measures whether buyers or sellers have dominated recent price action.
Easy to Read
Values range from 0% to 100%, making interpretation straightforward.
Trend Confirmation
High readings often support bullish market conditions, while low readings indicate bearish dominance.
Lightweight
Requires only basic candle calculations, making it suitable for all markets and timeframes.
Interpretation
Above 80%
Strong bullish dominance.
Most recent candles have closed higher than they opened.
Between 60% and 80%
Moderately bullish conditions.
Buyers are controlling the majority of recent price action.
Around 50%
Balanced market.
Neither buyers nor sellers have established clear dominance.
Between 20% and 40%
Moderately bearish conditions.
Selling pressure has become more noticeable.
Below 20%
Strong bearish dominance.
Most recent candles have closed lower than they opened.
Alert Conditions
The indicator includes two alert conditions.
Bullish Ratio Increasing
Triggered when the Bullish Candle Ratio crosses above 60%.
Bearish Ratio Increasing
Triggered when the Bullish Candle Ratio crosses below 40%.
Example Applications
- Measuring short-term market sentiment.
- Confirming trend strength.
- Monitoring shifts in buying and selling pressure.
- Comparing bullish participation across different markets.
- Supporting price action analysis.
Notes
Bullish Candle Ratio is intended to measure market participation rather than generate trading signals.
A high bullish ratio does not guarantee that prices will continue rising, just as a low ratio does not guarantee further declines.
The indicator is most effective when combined with trend analysis, support and resistance, and overall market structure.
Bullish Candle Ratio provides a simple statistical view of recent market sentiment by measuring the balance between bullish and bearish candles within a selected period. Wskaźnik

GreenStar ATR% Extension MonitorGreenStar ATR% Extension Monitor
The GreenStar ATR% Extension Monitor answers two questions in one window:
1) How volatile is the name? (14-period ATR as a percent of price)
2) How far has price stretched from a moving average, in relation to historical data?
Some names routinely stretch to 10-12x before mean-reverting. Others rarely clear 5x.
Scroll back on a daily chart to see extension habits for that symbol.
Why extension matters
Dollar distance from a 50-day MA does not compare a $15 name to a $400 name.
Dividing percent gain from the MA by ATR% provides a multiple of normal daily range.
That is the blue xFromMA line.
The green ATR% stepline shows the denominator: typical range relative to price.
These are separate formulas on the same pane and timeline to show correlation.
(It does not draw on the price chart.)
Two plots with independent calculations
ATR% (green stepline): 14-period ATR as a percent of price. Typical daily range relative to price level.
xFromMA (blue line): how many ATR% units price sits above or below the MA.
ATR% = ATR(14) / close x 100
xFromMA = ((close - MA) / MA x 100) / ATR%
Zero on xFromMA means price is at the MA.
A negative value indicates price is currently below the MA level.
Reading the pane
Both lines declining together often means the name is compressing toward the MA. Volatility and stretch easing at the same time.
Both rising means it's expanding.
Diverging slopes happen too.
xFromMA climbing while ATR% falls can mean price drifting from the MA while day-to-day volatility cools.
Read each line first, then note whether they agree.
Note: The lines share a pane for context, not because they combine into a signal.
A green/blue touch or cross is not a buy or sell event.
Visible-range markers (optional)
High, low, and mean for xFromMA are calculated from the visible bars on the chart.
There is no fixed lookback period.
They update on scroll or zoom, comparing current stretch to recent visible history.
The mean is the average xFromMA over those visible bars, not the midpoint between high and low.
Visible-range mean requires high/low lines enabled in the same settings group.
Optional zero line (dotted): xFromMA = 0, full width of the pane.
ATR% high/low bands exist too, off by default.
Settings
MA period (default 50)
MA type (default SMA)
ATR period (default 14)
Line colors and widths (default: dark green ATR%, blue xFromMA)
Zero line (default on)
High/low bands, xFromMA (default on)
Visible-range mean (default on)
ATR% high/low bands (default off)
Disclaimer
Context tool only. Not a signal, not financial advice. No entry or exit triggers. Past extension habits do not predict future price action.
Wskaźnik

SMC FVG Pro - Liquidity + ConfluenceSMC FVG Pro - Liquidity + Confluence is a Smart Money Concepts indicator designed to identify active market imbalances, structure breaks, liquidity levels, and high-probability Fair Value Gap zones.
It automatically detects bullish and bearish FVGs, ranks them by strength, shows mitigation percentage, tracks how old each FVG is, and removes zones once they are fully filled. The indicator also marks swing highs and swing lows as liquidity points and removes them once price mitigates those levels.
For market structure, it identifies BOS and CHoCH events using swing-based breaks. Instead of cluttering the chart with repeated labels, it draws a clean horizontal line from the broken swing level to the candle that caused the break, with the BOS or CHoCH label centered above the line.
Main functions:
Detects bullish and bearish Fair Value Gaps.
Removes fully filled FVGs automatically.
Displays FVG strength: Weak, Medium, or Strong.
Shows confidence score from 0/10 to 10/10.
Shows FVG mitigation percentage and age.
Marks swing highs and swing lows.
Removes mitigated swing liquidity levels.
Detects BOS and CHoCH.
Draws structure-break lines instead of repeated labels.
Includes optional higher-timeframe FVG overlay.
The purpose of the indicator is to help filter trades by showing where price may react, where liquidity is resting, and whether structure supports continuation or reversal. Wskaźnik

Two Sigma Factor Composite [JOAT]TWO SIGMA FACTOR COMPOSITE
A tribute to the multi-factor approach pioneered by Two Sigma — long-only, long/short, and risk-premia funds that decompose returns into orthogonal factor exposures, normalise each factor onto the same statistical scale, and combine them into a single signed score. Two Sigma Factor Composite builds five canonical factors (Momentum, Quality, Value, Volatility, Mean-Reversion), Z-normalises each against a rolling baseline, sum-normalises the user-controllable weights, and outputs a composite score with signal labels, factor sparklines on the chart, and a rolling hit-rate backtest.
The five factors
Each factor is computed independently and Z-normalised over a configurable window (default 100 bars) with optional outlier clipping (default ±4σ):
Momentum — return / volatility over the configurable momentum window (default 50 bars). The classic "trend" factor.
Quality — inverse of recent realised volatility (default 50-bar window). Lower volatility = higher quality; an asset that has been calmer is treated as higher quality, consistent with academic factor research.
Value — deviation from a long mean (default 200-bar SMA). Negative deviation = "cheap" (positive value factor exposure); positive deviation = "expensive". The classical cross-sectional value definition, adapted to time series.
Volatility — percentile rank of recent realised volatility (default 20-bar stdev percentile-ranked over 252 bars). High vol = negative factor; low vol = positive factor.
Mean-Reversion — signed deviation from a 20-bar mean (default). Captures short-term reversion bias.
Each factor's window is independently configurable. All five outputs are Z-scores capped at ±4σ to prevent any single outlier from dominating the composite.
Sum-normalised weights
Five weight sliders (default 1.0 each) are normalised internally so any positive combination is valid. Default equal weight is the most defensible baseline; tune individual weights to bias the composite. Want a pure momentum + quality read? Set the others to 0.1 and Momentum/Quality to 2.0. The composite reshapes itself live.
Signal engine — bounded composite with three tiers
The composite is bounded by the clipping cap. The signal engine layers three thresholds:
Buy — composite crosses above the buy threshold (default +1.0σ).
Sell — composite crosses below the sell threshold (default −1.0σ).
Extreme Bull / Extreme Bear — |composite| crosses ±2.0σ. The script's strongest read.
A configurable signal cooldown (default 10 bars) prevents clustering.
Factor sparklines (the signature visual)
The script renders inline sparklines on the chart for all five factors — small line plots that visually show each factor's recent Z trajectory. Configurable base offset (vertical position below zero), row spacing, amplitude, and per-row transparency mapping. At a glance you see which factors are driving the composite and which are flat.
When all five sparklines lean the same way, the composite is high-confidence. When they disagree, the composite is a weighted compromise — the sparklines tell you the truth that a single number cannot.
Visual system
Composite line (configurable width, default 3px) with sign-coloured fill toward zero (configurable transparency).
Threshold lines at ±buyTH and ±extremeTH (configurable transparency).
Buy / Sell labels on chart on threshold crosses.
Factor sparklines — five inline Z-trajectory plots in the pane.
Optional chart-background override to follow chart.bg_color.
A locked Emerald Night palette: vivid green bull / vivid red bear / sage mid on a deep emerald background — strict 2-hue discipline with bg. No third colour invented anywhere; all variations are transparency-only.
Dashboard
Monospaced table positionable to any of eight corners. Surfaces:
Composite Z value and sign.
Per-factor Z rows (Momentum / Quality / Value / Volatility / Mean-Reversion).
Factor agreement percentage (how many factors agree with composite sign).
Last signal direction with bars-ago.
Weight configuration in use.
Backtest stats row — rolling forward-N-bar hit rate (configurable lookahead, default 10 bars). The script's own performance audit.
Alerts
Five alert conditions, each independently controllable:
BUY Cross (composite crosses above buy threshold)
SELL Cross
Extreme Bull (composite > +2.0σ)
Extreme Bear (composite < −2.0σ)
Low Factor Agreement (% of factors agreeing falls below the configurable threshold, default 40%) — the script's "no edge" warning.
How to read it
Three reads, in order of conviction:
Extreme score with high factor agreement (e.g. composite > +2.0σ AND agreement > 80%) — the highest-conviction read the script produces. Four or five factors are pointing decisively one way, and the composite is at a statistical extreme.
Buy / Sell with sparkline confirmation — visual confirmation that the directional read is being driven by multiple factors, not just one. If the composite is bullish but only the Momentum sparkline is leaning, the read is fragile; if Momentum + Quality + Value + Mean-Reversion all lean, the read is robust.
Low Agreement alert — stand-aside signal. The factors disagree internally; the composite is a wash. Wait for re-alignment.
Suggested settings
Defaults (momentum 50 / quality vol 50 / value 200 / vol 20/252 / MR 20, Z window 100, ±4σ clip, ±1.0 buy/sell, ±2.0 extreme, 10-bar cooldown) are tuned for daily charts on broad indices — the timeframes where factor approaches are statistically meaningful. For lower timeframes drop all windows proportionally. For weekly+ keep defaults; factor reads on weekly are the canonical institutional horizons.
Originality / what's reused
The factor-investing framework is published academic finance — Fama-French 1992, Carhart 1997, AQR 2013, and many others. The five factors used here (Momentum, Quality, Value, Volatility, Mean-Reversion) are the canonical institutional factor set. The implementation here — the five-factor pipeline with each factor's window independently configurable, the rolling Z-normalisation with outlier clipping, the sum-normalised five-weight composition, the bounded-composite signal engine with three-tier thresholds, the inline factor sparklines render in the same pane, the rolling forward-bar hit-rate backtest, and the strict 2-hue alpha-only palette — is JOAT-original. No third-party code reused. The script is a tribute to Two Sigma-style factor-composite portfolio construction, not a direct replication of any proprietary Two Sigma model.
Limitations
The five factors are computed from chart data only — they are time-series proxies of the cross-sectional factors used in true multi-asset portfolios. The Z-normalisation needs the window populated; early bars give a warm-up read. The forward-N-bar hit-rate backtest is descriptive of recent signal behaviour under the current settings; it is not a predictive metric. Factor exposures historically underperform for extended periods — the dashboard's agreement row and the low-agreement alert exist specifically to warn you when the model is breaking down.
—
-made with passion by jackofalltrades
Wskaźnik

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.
Wskaźnik

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. Wskaźnik

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
Wskaźnik
