Custom Theme Breadth & Leadership DashboardCustom Theme Breadth & Leadership Dashboard
This script is a customizable theme-breadth dashboard designed to help traders monitor whether a selected group of stocks or ETFs is showing broad participation, narrow leadership, mixed behaviour, or short-term weakness.
The main purpose of the script is to help traders avoid looking at one symbol in isolation. Many strong market moves happen through themes, sectors, or related groups of stocks. For example, AI infrastructure may include semiconductors, memory, networking, data-centre hardware, power infrastructure and cooling. This dashboard allows users to place related symbols into one basket and quickly see whether strength is broad-based or limited to only a few names.
The script is not a buy or sell signal. It is a decision-support tool for theme monitoring, sector rotation, watchlist review and relative leadership analysis.
What the dashboard shows
At the top of the table, the dashboard shows the overall condition of the selected basket:
Overall Theme Read
Constructive Symbols
Breadth %
Leaders
Average Score
Below the summary section, the table displays each selected symbol with the following columns:
1D: one-day rate of change
1W: five-trading-day rate of change
1M: twenty-one-trading-day rate of change
3M: sixty-three-trading-day rate of change
YTD: year-to-date rate of change
Score: a 0 to 10 participation score based on positive returns across multiple timeframes
Status: a short-term participation label based on recent performance behaviour
The score is designed to reward symbols that are positive across multiple timeframes. A symbol receives points for positive 1D, 1W, 1M, 3M and YTD performance, with additional bonus points for stronger 1W and 1M momentum.
Status definitions
Leading: 1W, 1M and 3M performance are all positive.
Improving: 1D and 1W are positive, but 1M is still negative.
Weakening: 1D and 1W are negative, but 3M is still positive.
Lagging: 1W and 1M are both negative.
Mixed: the symbol does not clearly fit into the other categories.
Important note on “Weakening”
A symbol can still be a strong longer-term leader and appear as “Weakening” if it has recently pulled back.
For example, a stock may have very strong 3M or YTD performance but still be classified as Weakening if its 1D and 1W performance are negative. This is intentional. The dashboard is designed to show current participation and short-term behaviour, not only long-term leadership quality.
Constructive Symbols
Constructive Symbols means the number of enabled symbols currently classified as either Leading or Improving.
This is a short-term participation measure. It does not mean that all other symbols are bad companies or poor long-term investments. It simply means they are not currently showing the short-term participation pattern required to be counted as constructive by this dashboard.
Breadth %
Breadth % shows the percentage of enabled symbols that are currently constructive.
For example, if the dashboard shows 2 / 10 and 20%, it means that 2 out of the 10 enabled symbols are currently classified as either Leading or Improving.
Leaders
Leaders shows how many enabled symbols are classified as Leading.
Average Score
Average Score shows the average score across all enabled symbols in the selected basket.
Overall Theme Read
The script converts the breadth and average score into an overall theme interpretation:
Broad Strength: many symbols in the basket are constructive and the average score is strong.
Narrow Leadership: the average score is strong, but breadth is not broad enough. This can mean only a few leaders are carrying the theme.
Mixed Theme: some symbols are working, but participation is uneven.
Weak Theme: few symbols are constructive and the group is not showing broad strength.
How to use
1. Choose Core Themes, Full Themes or Custom List mode.
2. In Custom List mode, enter the stocks or ETFs that represent the market theme you want to monitor.
3. Enable or disable symbols depending on your watchlist.
4. Use the Overall Theme Read to understand the condition of the basket.
5. Use Constructive Symbols and Breadth % to understand whether participation is broad or narrow.
6. Use the individual symbol rows to identify which names are leading, improving, weakening, lagging or mixed.
7. Use the dashboard together with your own chart analysis, support/resistance levels, volume, earnings dates and risk management.
Example use cases
A trader studying AI infrastructure could create a custom basket containing semiconductor, memory, networking, server, data-centre power and cooling names. If only one or two names are strong while the rest are weakening, the dashboard may show narrow leadership or a weak theme. If many names are leading or improving together, the dashboard may show broad strength.
A trader studying sector rotation could use the Core Themes or Full Themes modes to compare ETFs and identify where participation is improving or deteriorating.
Limitations
This script does not predict price movement.
It does not provide automatic buy or sell signals.
It does not replace individual chart analysis.
It does not account for earnings dates, company fundamentals, valuation or news.
A strong dashboard reading should still be confirmed with price structure, volume, market condition and risk management.
The script is designed to help traders quickly evaluate theme participation and leadership across a custom basket of symbols.
Sample snapshots
Индикатор

Market Balance Shift (MBS)Here's a **professional TradingView description** for your original indicator.
# Market Balance Shift (MBS)
**Market Balance Shift (MBS)** is an original trend-following indicator designed to identify moments when market momentum shifts from balance into expansion. Instead of relying on traditional oscillators such as RSI or MACD, MBS evaluates the relationship between **candle efficiency, price expansion, and trend direction** to highlight high-conviction trading opportunities.
The indicator measures how effectively price moves within each candle and compares the current trading range with recent market activity. When efficient price movement aligns with an established trend and expanding volatility, MBS generates Buy or Sell signals, helping traders focus on stronger directional moves while filtering out lower-quality setups.
### Features
* Original Market Balance algorithm
* Trend confirmation using EMA
* Candle Efficiency analysis
* Relative Range Expansion detection
* Buy & Sell signals
* Built-in alert conditions
* Lightweight and fast execution
* Suitable for Forex, Crypto, Indices, and Stocks
* Compatible with all timeframes
### How It Works
* **Buy Signal:** Triggered when bullish trend conditions align with increasing market balance and expanding price movement.
* **Sell Signal:** Triggered when bearish trend conditions align with increasing downside pressure and expanding price movement.
### Best Markets
* BTCUSD
* XAUUSD (Gold)
* Forex Major Pairs
* US Indices
* High-volume Stocks
### Recommended Timeframes
* Scalping: 5m–15m
* Intraday: 30m–1H
* Swing Trading: 4H–Daily
### Disclaimer
This indicator is intended as a decision-support tool and should be used alongside sound risk management, market structure analysis, and your own trading plan. No indicator can guarantee profitable trades under all market conditions.
Индикатор

Индикатор

Индикатор

Индикатор

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.
Индикатор

Индикатор

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. Индикатор

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. Индикатор

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. Индикатор

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. Индикатор

Индикатор

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. Индикатор

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. Индикатор

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 Индикатор

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. Индикатор

Индикатор

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. Индикатор

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. Индикатор

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ベース境界とその周辺状況を整理するためのツールです。 Индикатор

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. Индикатор

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.
Индикатор

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. Индикатор
