USA Sector Rotation Momentum - Integrity Edition [Invite Ready]USA MASTER PRO — Invite-Only (Sector Rotation Momentum)
What this is
USA Master Pro is a sector-rotation and alignment dashboard. It converts price action into a normalized “Heat” score (-100 to +100), adds higher-timeframe confirmation, and helps you see which sectors are leading/lagging and whether your chart symbol is aligned with the broader environment.
How to use (quick)
1) Start with REG / BIAS (market context).
2) Scan the table ranks (leaders vs laggards).
3) Confirm with Trend (Higher TF) + Confluence.
4) Use Rel% and dRel to judge rotation strength and speed.
5) Use alerts as attention cues (not auto-entries).
Documentation (PDF)
Quick Start:
raw.githubusercontent.com
User Guide:
raw.githubusercontent.com
Support
If something looks off, send a screenshot and include the BUILD ID shown on the dashboard.
Disclaimer
This tool is provided for informational and educational purposes only and does not constitute financial, investment, legal, or tax advice. Trading and investing involve risk, and you are solely responsible for your decisions, risk management, and outcomes. Past performance is not indicative of future results. No guarantees are made regarding accuracy, completeness, or profitability. Use at your own risk.
Sentiment
Market State and Macro ContextDescription
This indicator provides a structured, multi-layer view of market context using strictly defined daily and higher-timeframe logic. It is designed to separate market regime, higher-timeframe control, daily momentum, and intraday execution bias into independent layers, allowing traders to understand where the market is before deciding when to act.
The script does not generate buy or sell signals. It defines context only.
1. Market State (Daily Regime)
This layer defines the current market regime using daily data and a 100-day lookback range.
Three regimes are identified, with strict priority:
Expansion
The daily close breaks above the highest high or below the lowest low of the previous 100 trading days.
Indicates volatility expansion and price discovery.
Expansion does not imply trend. It only confirms that price has entered new territory.
Trend
Detected only when price is not in expansion and all of the following are true:
Daily close is above or below the daily 50 EMA.
The daily 50 EMA is sloping in the same direction.
Daily swing structure confirms directional control (higher highs and higher lows for bullish, lower highs and lower lows for bearish).
Price is holding away from the midpoint of the 100-day range.
This defines sustained directional control, not just position.
Lateralized
Applied when neither Expansion nor Trend conditions are met.
Represents rotational or range-bound behavior with overlapping structure.
This layer answers the question:
“Is the market expanding, trending, or rotating?”
2. Higher-Time Macro (Territory Control)
This layer identifies higher-timeframe dominance using confirmed daily closes.
BULL when yesterday’s close is above the high of the day before.
BEAR when yesterday’s close is below the low of the day before.
NEUTRAL when neither condition is met.
This captures true daily range expansion and territory control.
It does not update intraday and does not measure momentum.
3. Macro (Daily Momentum)
This layer measures short-term daily pressure using close-to-close comparison.
BULL when yesterday’s close is higher than the previous close.
BEAR when yesterday’s close is lower than the previous close.
NEUTRAL otherwise.
This reflects daily momentum independent from range expansion or market regime.
4. Daily Bias (Intraday Filter)
This layer provides an intraday directional filter using a higher-timeframe EMA, EMA slope, and the daily open.
A simple scoring system is applied:
Price relative to the HTF EMA
Direction of the HTF EMA slope
Price relative to the daily open
The result classifies the intraday environment as BULL, BEAR, or NEUTRAL.
This layer is intended for execution alignment only.
Visualization
All four context layers are displayed in a fixed on-chart table with:
Clear section separation
Color-coded states
Stable, non-repainting values
All daily and macro logic uses confirmed closes only and does not change during intraday sessions.
Intended Use
This indicator is designed to be used as a context framework for discretionary or systematic trading. It helps answer:
What regime is the market in?
Which side controls higher-timeframe territory?
What is the current daily pressure?
Is intraday execution aligned with higher-timeframe context?
It does not predict price and does not replace execution logic.
TASC 2026.01 The Reversion Index (RI)This script implements the Reversion Index (RI), an indicator originally presented in Technical Analysis of Stocks & Commodities (TASC) magazine, January 2026 issue.
The Reversion Index is designed to measure directional balance versus total movement, helping identify overextended conditions and potential mean-reversion scenarios. It compares the net directional price change to the sum of absolute price changes over a given period, producing a normalized oscillator.
To improve signal quality, this implementation applies John Ehlers’ Super Smoother filter, reducing noise while preserving responsiveness. A slower smoothed line and a faster trigger line are included to assist with timing and momentum shifts.
Key Features
Based on the original TASC Reversion Index
Uses Ehlers Super Smoother filtering
Highlights overextension and reversion potential
Non-repainting, calculation-based indicator
Designed for discretionary and contextual analysis
Credits
Original concept: Published in Technical Analysis of Stocks & Commodities
Filtering methodology: John F. Ehlers
Implementation: Custom TradingView script
License
This script is provided free of charge for educational and analytical purposes.
MM MAGICAL LINETitle: MM MAGICAL LINE
The MM MAGICAL LINE is a precision-based intraday tool designed to identify critical price levels established during specific institutional windows.
this indicator isolates key trend-confirmation zones that act as psychological support and resistance for the remainder of the session.
Key Features:
Institutional Anchoring: Captures price action from high-volume time brackets.
Clean UI: Minimalist design with customizable color schemes to fit any chart background.
Volatility Filter: Uses smoothed price data to eliminate market noise.
Best used on intraday timeframes (1m, 5m, 15m) for trend identification and breakout confirmation.
Sector Rotation Dashboard (Beta)🎯 OVERVIEW
The Sector Rotation Indicator is a comprehensive real-time dashboard that tracks money flow across all 11 S&P 500 sector ETFs and 6 major macro assets. It automatically detects market regimes (Risk-On, Risk-Off, Tech-Led), flags anomalies, and shows you where institutional money is flowing.
Whether you're trading individual stocks, sector ETFs, or managing a portfolio, this indicator tells you:
• Which sectors are leading/lagging (ranked by relative strength)
• What market regime we're in (Risk-On, Risk-Off, Tech-Led, Mixed)
• Where the anomalies are (sectors behaving unexpectedly)
• How confident the signals are (based on cross-sector confirmation)
• What sector ETF the current chart ticker belongs to, if any (with rank and RS%)
🚧 BETA NOTICE
⚠️ This indicator is currently in BETA.
IMPORTANT - ETF Holdings Database:
• The 500+ stock-to-sector mappings are based on actual ETF holdings
• SPDR sector ETFs rebalance quarterly (3rd Friday of Mar/Jun/Sep/Dec)
• Holdings data requires MANUAL updating by the creator after each rebalance
• Users may experience DELAYS in data updates following rebalance dates
• Some newly added or removed stocks may be temporarily misclassified
📊 WHAT IT TRACKS
11 SPDR Sector ETFs:
• XLE (Energy) - Cyclical
• XLF (Financials) - Cyclical
• XLI (Industrials) - Cyclical
• XLY (Consumer Discretionary) - Cyclical
• XLB (Materials) - Cyclical
• XLK (Technology) - Growth
• XLC (Communication Services) - Growth
• XLV (Healthcare) - Defensive
• XLP (Consumer Staples) - Defensive
• XLU (Utilities) - Defensive
• XLRE (Real Estate) - Defensive
6 Macro Assets:
• GLD (Gold) - Safe Haven
• TLT (20+ Year Treasuries) - Safe Haven
• UUP (US Dollar Index) - Currency
• DBC (Commodities) - Risk/Inflation
• EEM (Emerging Markets) - Risk Appetite
• IBIT (Bitcoin) - Speculative
🔥 KEY FEATURES
1️⃣ Real-Time Sector Rankings
• All 11 sectors ranked by Relative Strength (RS) vs SPX
• Dual color coding: Background = RS, Text = Absolute performance
• Trend arrows showing momentum (↑↑, ↑, →, ↓, ↓↓)
• Rank change tracking with configurable alert threshold
2️⃣ Intelligent Regime Detection
• Risk-On: Cyclicals leading (XLE, XLF, XLI, XLY, XLB)
• Risk-Off: Defensives leading (XLV, XLP, XLU, XLRE)
• Tech-Led: Growth dominating (XLK, XLC)
• Mixed: No clear leadership
• High Volatility: Signals unreliable
3️⃣ Anomaly Detection System
• Flags sectors that jump/drop 3+ ranks
• Detects behavioral anomalies (e.g., Energy #1 in Risk-Off)
• High volatility warnings when multiple sectors show extreme moves
• Dynamic tooltips explain WHY each anomaly is flagged
4️⃣ Confidence Scoring
• Counts how many sectors confirm the current regime
• High (7+), Medium (5-6), Low (<5) confidence levels
• Shows exactly which sectors are confirming vs diverging
5️⃣ Current Ticker Classification
• Built-in database of 500+ stock tickers mapped to sector ETFs
• Shows your current chart's sector, rank, and RS
• Dual classification: ETF Holdings + TradingView (mismatch detection)
6️⃣ Macro Cross-Asset Flow
• Tracks 6 macro assets for broader market context
• Interprets flows: Risk-Off Flow, Risk-On Flow, Flight to Safety
• Equity outflow warnings when safe havens beat SPX significantly
7️⃣ Educational Tooltips
• Hover over ANY cell for detailed explanations
• Dynamic tooltips show live data + educational context
• Learn what drives each signal while you trade
📖 HOW TO READ THE DASHBOARD
Sector Panel:
• Green background = Outperforming SPX (positive RS)
• Red background = Underperforming SPX (negative RS)
• Green text = Positive absolute return
• Red text = Negative absolute return
• Δ column shows rank changes (⚠️ = significant move)
Interpretation Panel:
• ROTATION → Describes current sector movement pattern
• REGIME → Current market environment classification
• ALERT → Anomalies detected or "All Clear" status
• CONFIDENCE → Signal reliability score with breakdown
Macro Panel:
• Signal column: Strong > Bid > Neutral > Offered > Weak
• FLOW row: Summary of cross-asset money movement
⚙️ SETTINGS & RECOMMENDATIONS
PRIMARY TIMEFRAME (days) - Default: 20
Lookback period for RS calculation.
• 5-10 days: Day/swing traders - responsive but noisier
• 20 days: Most traders - good balance of signal vs noise ⭐
• 50 days: Position traders - smooth, confirms established trends
• 100+ days: Investors - major regime shifts only
Tip: Match to your typical holding period.
TREND TIMEFRAME (days) - Default: 5
Shorter lookback for momentum arrows (↑↑ ↑ → ↓ ↓↓).
• 3 days: Aggressive - more sensitive, more arrow changes
• 5 days: Most traders - catches momentum shifts without whipsaws ⭐
• 10 days: Conservative - smoother, fewer false reversals
Tip: Keep at 1/4 to 1/5 of Primary Timeframe.
ALERT THRESHOLD (ranks) - Default: 3
Minimum rank change to trigger ⚠️ anomaly alert.
• 2 ranks: Active traders - more alerts, catches smaller rotations
• 3 ranks: Most traders - significant moves only (e.g., #8→#5) ⭐
• 4-5 ranks: Swing/position - major disruptions only, high conviction
Tip: Lower = more alerts, Higher = fewer but stronger signals.
RECOMMENDED COMBINATIONS BY TRADING STYLE:
• Day Trading: Primary 10, Trend 3, Alert 2
• Swing Trading: Primary 20, Trend 5, Alert 3
• Position Trading: Primary 50, Trend 10, Alert 4
• Long-term Investing: Primary 100, Trend 20, Alert 5
OTHER SETTINGS:
• 44+ color and opacity controls for full customization
• Dark/Light theme support
• Compact view (Top 3 + Bottom 3) or Full view (all 11)
• Show/hide interpretation panel
🚨 BUILT-IN ALERTS
• Sector rotation changes (Cyclical ↔ Defensive)
• Regime changes (Risk-On ↔ Risk-Off ↔ Tech-Led)
• Large rank movements (configurable threshold)
• Equity outflow detection
• Safe haven bid alerts
• Global risk-on signals
💡 TRADING APPLICATIONS
For Stock Traders:
• See if your stock's sector is leading or lagging
• Avoid fighting the sector trend
• Find stocks in leading sectors for momentum plays
For Sector Rotators:
• Identify rotation early with rank change alerts
• Confirm regime with confidence scoring
• Spot anomalies that may signal turning points
For Portfolio Managers:
• Monitor risk-on/risk-off positioning
• Track cross-asset correlations
• Get early warning of defensive rotations
For Macro Traders:
• Cross-reference sector rotation with macro flows
• Identify flight-to-safety episodes
• Track inflation hedge positioning
📝 TECHNICAL NOTES
• Data Source: TradingView sector data + custom ETF holdings database
• ETF Holdings: 500+ tickers mapped to sector ETFs (manually maintained)
• Rebalancing: SPDR ETFs rebalance on 3rd Friday of Mar/Jun/Sep/Dec
• Best Timeframe: Daily recommended, works on all timeframes
• Performance: Optimized for minimal lag despite tracking 17 assets
• Pine Script: Version 6
⚠️ DATA UPDATE SCHEDULE:
The ETF holdings database is manually updated by the creator following each quarterly rebalance. Updates are typically completed within 1-2 weeks after the official rebalance date. During this period, some ticker classifications may be outdated. The indicator will fall back to TradingView's sector classification for any tickers not found in the database.
⚠️ DISCLAIMER
This indicator is currently in BETA. Features may change, and bugs may exist.
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and consider your risk tolerance before making trading decisions. Past performance does not guarantee future results.
5% D/ID or 15%W DropCan be used to trigger alerts for 5% daily drops or intra-day drops or 15% drops during the past 5 days. Useful for selling puts.
Kashon Follower - FUSION v2.1 [On Chart]My share to trading community :)
It allows to manage positions in trend.
US Stock Market Performance by Sector[Dots3Red]This indicator displays the annual performance of the U.S. stock market by sector.
Selected major sectors
IND – Industrials
TECH – Technology
HTH – Healthcare
FIN – Financials
COMM – Communication Services
CONSCYC – Consumer Cyclical
CONSSTAP – Consumer Staples
ENERGY – Energy
REAL ESTATE – Real Estate
BASMAT – Basic Materials
The data is presented in a table below the main chart.
Green cell — the sector was bullish during that year
Red cell — the sector was bearish during that year
The table automatically sorts sectors by performance, placing the best-performing sector at the top for each year.
NOTE:
Annual performance is calculated starting from 2020 by default (arbitrarily chosen) and can be adjusted by the user.
Market Regime Detector (Free) - OptionsHUB🟦🟥🟩 OPTIONSHUB · REGIME PLAYBOOK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⭐ TradingView: OptionsHUB (follow our profile and add the script to favorites)
🌐 Website: optionshub.pro (research, updates, ecosystem)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚦 What This Indicator Is
Market Regime Detector (Free) is a market state classifier that assigns every bar to one of three regimes:
🟩 TREND — directional market with structural momentum
🟦 RANGE — sideways / mean-reverting market
🟥 VOLATILE — elevated volatility, higher risk environment
✨ The indicator is based on price and internal volatility .
____________________________________________________________________________
🧠 How It Works
The detector combines two core market dimensions:
1. 📏 Efficiency Ratio (ER) — how efficient price movement is
o high ER → price moves with direction and intent (trend)
o low ER → price oscillates without efficiency (range)
2. 🌪️ Normalized ATR (% of price) — how intense volatility is
o high nATR → unstable / explosive conditions → VOLATILE
o normal nATR → regime decided by ER
🧩 Decision priority :
🟥 Volatile (volatility first) → otherwise 🟩 Trend or 🟦 Range.
____________________________________________________________________________
🎛️ Visualization: How to Read It on the Chart
Choose Display Mode depending on your workflow:
🎨 1) Background Mode
✅ The chart background is colored by regime :
• 🟩 Trend — green background
• 🟦 Range — blue/neutral background
• 🟥 Volatile — red/orange background
📌 Always Show Background Hint
• enabled ✅ → a persistent label shows the current regime
• disabled ⛔ → labels appear only when the regime changes
🧾 2) Status Mode
A compact status panel appears in the top-right corner:
• TREND / RANGE / VOLATILE
• a short contextual description
💡 The chart itself remains visually clean and uncluttered.
____________________________________________________________________________
🧭 Regime Interpretation
🟩 TREND — “Directional Edge Regime”
Best suited for:
• trend-following strategies
• breakouts, pullbacks, trailing logic
Trading logic:
✅ trade in the dominant direction
✅ use continuation setups
⛔ avoid aggressive mean-reversion
____________________________________________________________________________
🟦 RANGE — “Mean Reversion Regime”
Best suited for:
• range trading
• support/resistance reactions
• fade-the-move strategies
Trading logic:
✅ trade boundaries and equilibrium
✅ faster exits, tighter expectations
⛔ breakout systems tend to underperform
____________________________________________________________________________
🟥 VOLATILE — “Risk Expansion Regime”
Not “bad” — just different rules.
Trading logic:
✅ reduce position size
✅ widen risk assumptions
✅ trade only high-quality setups
⛔ avoid tight stops and over-trading
____________________________________________________________________________
⚙️ Settings Explained
🧩 Calculation Mode
• On close ✅ (recommended) — regime confirmed on bar close
• Intrabar ⚡ — faster updates, more noise
📏 ER Length
• higher → smoother, more stable regimes
• lower → faster detection, more flips
🌪️ ATR Length
• higher → calmer volatility assessment
• lower → faster volatility spike detection
🧽 Smoothing Length
• smooths ER and nATR
• 1 → no smoothing (very sensitive)
• 3–5 → balanced and practical
🟩 ER Enter / Exit Trend
• Enter → threshold to classify TREND
• Exit → lower threshold to leave TREND
➡️ creates hysteresis and reduces regime flipping
🟥 nATR Enter / Exit Volatile
• Enter → volatility expansion
• Exit → volatility normalization
✅ Confirmation Bars
• number of closed bars required to confirm a regime change
• 1–2 → faster but noisier
• 3–5 → more reliable (default = 3)
🎚️ Background Transparency
• controls how subtle or strong the background coloring is
____________________________________________________________________________
🧰 Quick Recommended Setups
🟦 Default / Universal (recommended):
✅ On close · ER 20 · ATR 14 · Smooth 3 · Confirm 3 · Trend 0.35 · Vol 2.0
⚡ Scalping / Fast Markets:
• ER 14–18
• Smooth 1–2
• Confirm 1–2
• Lower Volatile threshold (≈1.6–1.8)
🧱 Swing / Position Trading:
• ER 30–40
• Smooth 4–6
• Confirm 4–5
• Higher Volatile threshold (≈2.3–2.8)
____________________________________________________________________________
🧬 About Pro Versions (What Comes Next)
In OptionsHUB Pro editions , this detector becomes a full regime engine:
🧩 Multi-Timeframe Regime Matrix
🔁 Regime Shift Detection with strength scoring
📊 Probability of Continuation (regime persistence)
🛠️ Auto-Adaptation for strategies and overlays
🔔 Regime-Based Alerts
📌 The Free version gives you clarity and structure .
📌 Pro versions give you context, probability, and execution depth .
____________________________________________________________________________
⚠️ Important Note
🧾 This indicator is a market context tool , not a signal generator.
It helps you choose the right type of strategy for the current market .
🚫 It is not financial advice .
🟦🟥🟩 OPTIONSHUB · REGIME PLAYBOOK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⭐ TradingView: OptionsHUB — following the profile helps us ship updates faster
🌐 Website: optionshub.pro — ecosystem, options, research, and advanced versions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OptionsHUB · Market Signal Engineering Lab
PEGY RatioThe basic metrics that all indicators descend from are for each bar the Open, High, Low, Close and Volume where the Close is often noted as Price. Then the Price/Earnings ratio entered trading. Price/Earnings is often noted as P/E ratio or PE.
The first major formalisation and widespread use of the P/E ratio came in 1934, when Benjamin Graham and David Dodd introduced it in their landmark book "Security Analysis". Their work established the P/E ratio as a core tool in fundamental analysis and value investing.
Graham’s influence was profound: he used the P/E ratio to help investors judge whether a stock was overpriced or underpriced, and his teachings shaped generations of value investors, including Warren Buffett.
The P/E ratio evolved into modern variants like forward P/E and Shiller CAPE.
There’s no single P/E cutoff that definitively marks a “growth” or “income” stock, but investors commonly treat P/E below about 10–15 as value/income oriented and P/E above about 20–25 as growth oriented. It is important to watch the P/E trend. If the P/E is a low value and reducing in value, then the company may be failing, and it is not good to invest in.
P/E is a relative signal, not an absolute rule. A high P/E usually means the market expects above average future earnings growth; a low P/E often signals lower growth expectations, higher current yield, or elevated risk. Benchmarks vary by sector and cycle: what’s “high” for utilities is low for software. Historical market averages (e.g., S&P 500) help frame whether a multiple is elevated or depressed.
The next step was the PEG ratio which was first introduced in 1969 by Mario Farina, who described it in his book "A Beginner’s Guide to Successful Investing in the Stock Market".
The concept later gained widespread popularity thanks to Peter Lynch, who championed it in his 1989 bestseller "One Up on Wall Street", arguing that a “fairly priced” company tends to have a PEG of about 1. Over 1 is overpriced and below is a bargain.
Later the PEGY ratio, a variation of the PEG ratio that added dividend yield into the valuation came into prominence so that mature, dividend paying companies are treated “fairly” . The PEGY ratio emerged in the 1990s as analysts and portfolio managers began adapting the PEG ratio for dividend paying companies. The concept is a natural extension of Peter Lynch’s PEG logic: If growth matters, and dividends matter, combine them into one valuation metric.
PEGY (Price/Earnings Growth% and Dividend Yield) is a straightforward modification of the PEG ratio that adds dividend yield to the growth term so that mature, dividend paying companies aren’t penalized by low growth rates alone. The formula is typically written as:
PEGY=(Price/Earnings)/(Earnings growth %+Dividend yield%)
Peter Lynch (One Up on Wall Street, 1989) is the most cited printed source that describes a dividend adjusted PEG concept and applies it as a practical screening rule for investors. PEGY is in Chapter “Some Fabulous Numbers”.
If earnings are negative, then the PEGY ratio will be negative, and it is best to invest in companies that make money. That is, positive PEGY ratio.
The PEGY ratio can have different ratios depending upon whether historical data is used (Mario Farina preference) or whether forward looking earnings (Peter Lynch preference) is used in the calculations.
Enough for the history lesson. You can quickly go through your watchlist and determine which stocks have a PEGY Ratio from 0 to 1 and eliminate the others. Then whittle down that list to find stocks travelling from bottom left to upper right on the page. Use any other indicators on that reduced list that your tradng plan uses and there you have your list of stocks in which to invest.
OIL (WTI) Pro: 1H Trend + Prob + Sessions + Candle TimerIndicator Features
📈 Multi-Timeframe Trend Detection (1H)
Identifies the main market trend from the 1-Hour timeframe
Displays the trend clearly as Bullish / Bearish / Sideways
Avoids trading against the higher-timeframe direction
🎯 Smart BUY & SELL Signals (On Candles)
Clear BUY and SELL signals directly on the candles
Signals are placed below lows (BUY) and above highs (SELL)
Uses ATR offset so signals are always visible and never hidden inside candles
📊 Separate Buy & Sell Probability
Calculates BUY Probability and SELL Probability independently
Probabilities are shown as percentages
Helps traders decide when to enter and when to wait
🧠 Pullback-Based Logic (No Chasing Price)
Signals are generated only after healthy pullbacks
Prevents entering trades when price is overextended
Displays a “Wait for Pullback” warning during strong trend extensions
Cumulative Buy/Sell Volume Ratio[MIT]Cumulative Volume Ratio
Description:
This dedicated indicator calculates and displays the ratio of cumulative buy volume to cumulative sell volume over the past n bars (Ratio = Cumulative Buy Volume / Cumulative Sell Volume).
Volume is split based on price movement:
Up bars (close > open) → All volume assigned to Buy
Down bars (close < open) → All volume assigned to Sell
Flat bars (close == open) → Configurable handling (Split 50/50, Ignore, All to Buy, or All to Sell)
Key Features:
Supports two display modes: Bars (柱状图) or Line (折线图)
Ratio > 1 shown in orange (strong buy pressure), Ratio < 1 shown in teal (strong sell pressure)
Built-in reference lines: 1:1 Equilibrium, Strong Buy (>1.5), Strong Sell (<0.67)
Optional debug label on the last bar showing current ratio value + raw buy/sell cumulative volumes
Inputs:
Lookback Period n: Number of bars for rolling cumulative calculation (default: 20)
Flat Bar Volume Handling: How to treat doji/flat bars (default: Split 50/50)
Display Ratio as Bars: true = Bars style, false = Line style
Show Current Ratio Value Label: Toggle debug label on last bar
Usage Tips:
Ratio > 1 indicates dominant buy pressure in recent volume → potential bullish momentum
Ratio < 1 indicates dominant sell pressure → potential bearish pressure
Best used in conjunction with price chart to spot divergences or confirmations
Performs best on stocks/instruments with active volume
累计成交量比率(Cumulative Volume Ratio)
本指标专门计算并显示过去 n 根 K 线的累计买入成交量与卖出成交量的比率(Ratio = 累计买入量 / 累计卖出量)。
根据 K 线价格走势对成交量进行拆分:
阳线(收盘 > 开盘)→ 全部成交量计入买入
阴线(收盘 < 开盘)→ 全部成交量计入卖出
平盘(收盘 = 开盘)→ 支持多种处理方式(50/50 平分、忽略、全部计买入、全部计卖出)
核心功能:
支持柱状图(Bars)或折线图(Line)两种显示方式
比率 > 1 时显示橙色(买方强势),比率 < 1 时显示青色(卖方强势)
内置关键参考线:1:1 均衡线、买方强势 (>1.5)、卖方强势 (<0.67)
可选在最后一根 K 线上显示调试标签,实时显示当前比率值及累计买/卖量数值
参数说明:
回看周期 n:累计计算的 K 线根数(默认 20)
平盘处理:如何处理收盘=开盘的 K 线(默认 50/50 平分)
比率显示为柱状图:开启为柱状图,关闭为折线图
显示当前比率数值标签:是否显示最后一根 K 线的数值标签(调试用)
使用建议:
比率 > 1 表示近期买入力量占优,适合关注潜在上涨动能
比率 < 1 表示卖出力量占优,可作为短线压力参考
建议与价格主图结合使用,观察比率与价格走势的背离或确认信号
在成交量活跃的个股上效果更明显
Cumulative Buy/Sell Volume[MIT]Cumulative Buy/Sell Volume - Stacked/Separate Mode
Description:
This indicator calculates and displays the cumulative buy and sell volume over the past N bars (lookback period). It splits volume based on price movement:
Up bars (close > open) → All volume assigned to Buy
Down bars (close < open) → All volume assigned to Sell
Flat bars (close == open) → Configurable handling (split 50/50, ignore, all to buy, or all to sell)
Key Features:
Two display modes:
Separate Display: Buy bars upward (green), Sell bars downward (red) — classic side-by-side comparison
Stacked Display: Both bars upward — visually stacked to show total volume and buy/sell dominance
Fully customizable colors for Buy and Sell bars (with high transparency for better stacking visibility)
Rolling window calculation (default 20 bars)
Optional debug label on the last bar showing exact Buy/Sell cumulative values
Inputs:
Lookback Period n: Number of bars to look back for cumulative volume (default: 20)
Flat Bar Volume Handling: How to handle doji/flat bars (Split 50/50, Ignore, All to Buy, All to Sell)
Display Mode: Separate Display or Stacked Display
Show Buy Volume / Show Sell Volume: Toggle visibility
Buy Bar Color / Sell Bar Color: Custom color picker
Usage Tips:
Use "Stacked Display" to quickly see which side (buy or sell) dominates the recent volume.
Use "Separate Display" for clear absolute strength comparison.
Higher transparency ensures overlapping bars in stacked mode remain distinguishable.
Best used on active stocks with sufficient volume.
Note: This is a non-overlay indicator (shows in a separate pane). Combine with price chart for better context.
指标名称: 累计买/卖成交量 - 叠加/分开模式
短标题: Cum BuySell Vol Custom
指标描述:
本指标计算并显示过去 N 根 K 线的累计买入量和卖出量。根据价格走势对成交量进行拆分:
阳线(收盘 > 开盘)→ 全部成交量计入买入
阴线(收盘 < 开盘)→ 全部成交量计入卖出
平盘(收盘 = 开盘)→ 可配置处理方式(50/50 平分、忽略、全部计买入、全部计卖出)
主要功能:
两种显示模式:
分开展示(Separate Display):买入柱向上(绿色),卖出柱向下(红色)——经典对比模式
叠加展示(Stacked Display):买入和卖出柱都向上绘制——视觉上堆叠,快速看出买/卖谁占主导
支持自定义买入柱和卖出柱颜色(内置高透明度,确保叠加时两种颜色都能看清)
滚动窗口计算(默认 20 根 K 线)
可选在最后一根 K 线上显示调试标签(显示精确的累计买入/卖出数值)
参数说明:
回看周期 n:累计计算的 K 线根数(默认 20)
平盘处理方式:如何处理收盘=开盘的 K 线(50/50 平分、忽略、全部计买入、全部计卖出)
显示模式:分开展示 或 叠加展示
显示买入量 / 显示卖出量:开关控制是否显示对应柱子
Buy Bar Color / Sell Bar Color:自定义柱子颜色(支持透明度调整)
使用建议:
叠加模式适合快速判断近期成交量中买方或卖方更强势(柱子谁高谁占优)。
分开模式适合清晰对比买/卖绝对力量差异。
高透明度设置确保叠加时两种颜色都能透出,不会完全覆盖。
建议用在成交活跃的个股上,效果更明显。
Alertrino - Alpha EdgeAlertrino: Alpha Edge AI Indicator & Trading Intelligence
Master the Markets with Institutional AI on TradingView 🚀
The core of your success starts with the Alpha Edge Indicator. Designed to eliminate guesswork, this professional-grade tool transforms your charts into a precision-driven trading machine. Powered by advanced neural networks, Alpha Edge does the heavy lifting so you can trade with absolute clarity.
🔵 The Flagship: Alpha Edge Indicator
AI-Driven Signals: High-probability Buy/Sell signals based on trend reversals and institutional momentum.
Smart Liquidity Levels: Automatic Support & Resistance zones derived from real market volume.
Trend Confirmation: Advanced filtering to keep you on the right side of the trend and avoid "fakeouts."
TradingView Native: Easy integration with customizable alerts sent directly to your phone or desktop.
🤖 Your Intelligence Arsenal: 20+ AI Bots Enhance your Alpha Edge strategy with our comprehensive data ecosystem:
Smart Money & Dark Pools: Track $1M+ "Golden Sweeps" and hidden institutional block trades.
AI Predictions: Predictive scoring for intraday and swing moves using machine learning.
Breakout Scanners: 24/7 monitoring of 5,000+ assets to catch momentum before it explodes.
Insider Activity: Real-time alerts on CEO buying/selling and Wall Street analyst shifts.
Why Alertrino? We combine visual technical precision through Alpha Edge with real-time fundamental data from our bots. It’s the ultimate "Edge" for serious stock, options, and crypto traders.
Get Alpha Edge Now & Trade with Confidence
Website: alertrino.com
Smart Auto-Step Openndicator Name: 15m Reversal Strategy (Polymarket)
Short Description: A mean-reversion strategy designed for the 15-minute timeframe. It identifies overextended short-term trends and signals entries on the probability of a reversal candle.
Multi-Exchange Liquidation Map [Composite]Multi-Exchange Liquidation Heatmap
Institutional-Grade Liquidity Mapping (Pine Script v6)
🔵 Overview
The Multi-Exchange Liquidation Heatmap is a sophisticated visualization tool designed to reveal "Price Magnets" and "Max Pain" levels where high-leverage traders are forcibly liquidated. Unlike traditional volume profiles that only show past trades, this indicator projects future risk zones based on exchange margin-call mathematics.
By aggregating real-time data from Binance, Bybit, BitMEX, Coinbase, and Bitfinex, it provides a "composite" view of the market. This allows you to spot liquidity clusters that are invisible if you only monitor a single exchange.
⚙️ How It Works: The Logic
The script operates on a deterministic mathematical model rather than a heuristic/estimated one:
Pivot Detection: It identifies significant Swing Highs and Swing Lows (Pivots) across all enabled exchanges.
Margin Mathematics: For every pivot, it calculates exact liquidation prices for 100x, 50x, and 25x leverage tiers using the standard exchange formulas:
*
Long Liquidation: Pliq=Pentry×(1−L1)
Short Liquidation: Pliq=Pentry×(1+L1)
*
Composite Aggregation: Because a "wick" might be deeper on Bybit than on Binance , the script marks both levels. This creates a more accurate and denser "Liquidity Wall."
Heatmap Visuals (Alpha Blending): Each zone is drawn with 95% transparency. When levels from different exchanges or different leverage tiers overlap at the same price, the color intensifies (darkens). These "hot zones" represent high-probability reversal or acceleration points.
Dynamic Sweeping: To keep your chart clean, the script automatically deletes a box once the market price "sweeps" through it. This ensures you only see untaken liquidity.
🛠️ How to Setup & Configure
1. Multi-Exchange Input
In the settings, you can toggle specific data feeds:
Binance & Bybit: Pre-configured for Perpetual contracts (e.g., BINANCE:BTCUSDTPERP).
BitMEX: Captures "Starved Whales" and older market participants.
Coinbase (Spot): While Spot has no liquidations, traders use Coinbase Swing points for Stop-Losses. Zoned at 25x to represent "Hedging Support."
Custom / Hyperliquid Proxy: Since Hyperliquid isn't native to TV yet, use this field to input a custom ticker (e.g., OKX:BTCUSDTPERP or BYBIT:HYPEUSDT.P).
2. Filtering & Sensitivity
Volume Filter Multiplier: Only pivots with a volume spike (e.g., 1.5x the 50-SMA) generate zones. This filters out retail "noise" and focuses on institutional entries.
Pivot Lookback: Set how many candles are required to confirm a swing. A value of 5 is ideal for intraday trading.
📈 Trading Strategy: Liquidations vs. Volatility
How to Trade:
The Magnet Effect: Price is attracted to dense "Heatmap" clusters. Use these zones as Take-Profit targets.
The Exhaustion Signal: When price slams into a 50x or 100x liquidation zone and then pulls back, it is a high-confidence signal that the "fuel" for the move has been exhausted.
The Cascade: If 100x liquidations trigger a move into 50x levels, expect a rapid "cascade" or "flash wick."
⚠️ Technical Performance
This script is built on Pine Script v6, utilizing User-Defined Types (UDT) and Matrix-based Garbage Collection for maximum efficiency.
Request Limit: TradingView limits scripts to 40 request.security calls. This script uses approximately 10-15 calls, leaving you plenty of headroom for other indicators.
Resolution: For the best results, use the 5m, 15m, or 1h timeframes.
Disclaimer: Liquidation levels are theoretical proxies based on common leverage settings. This tool should be used as confluence for price action and market structure analysis.
DATA BOX - Market Overview (18 Key Assets)Market sentiment dashboard - know what's hot, what's not, instantly!
Real-time dashboard showing 18 key assets across Indices, Crypto, Metals, Bonds & Forex
📊 ONE GLANCE MARKET SENTIMENT
BTC, ETH, SOL, SPX, Nasdaq, DJ30, Russell2000, Gold, Silver, Nikkei, UK100, EU50, GER40, HK50, NIFTY, SSE Composite, US10Y, DXY
Current Prices - Live updating
Daily 50 SMA - Price above = 🟢 BULL | Below = 🔴 BEAR
4H SMA - Short-term trend direction - Price above = 🟢 BULL | Below = 🔴 BEAR
RSI Daily/4H - Momentum extremes highlighted
----------------------------------------------------------------------------------------------------------------------
🎨 VISUAL POWER RANKING
text
🟢 GREEN ROW = Both D50 + 4H Bullish (STRONG BUY)
🟠 ORANGE ROW = Mixed signals (CAUTION)
🔴 RED ROW = Both Bearish (STRONG SELL)
----------------------------------------------------------------------------------------------------------------------
⚙️ FULLY CUSTOMIZABLE
3 Sizes: Small/Medium/Large
6 Color Pickers: Bull/Bear/Mixed + Headers/RSI/Price BG
Toggle RSI columns independently
----------------------------------------------------------------------------------------------------------------------
🚀 PERFECT FOR:
Day traders needing a multi-asset overview
Swing traders checking daily trend alignment
Portfolio managers monitoring global risk.
Volume Ratio [MIT]Core Logic:
This indicator splits each bar's volume into "Buy Volume" and "Sell Volume" based on the relationship between close and open price, then calculates the rolling ratio of cumulative buy volume to sell volume over the past n bars, helping traders gauge short-term buying vs. selling pressure.
Volume Split Rules:
Bull bar (close > open): All volume assigned to Buy
Bear bar (close < open): All volume assigned to Sell
Flat bar (close == open): Handled by the "Flat bar volume" setting:
Split 50/50 (default): 50% Buy + 50% Sell
Ignore: Volume discarded (0 Buy, 0 Sell)
All to Buy: All volume to Buy
All to Sell: All volume to Sell
Calculation:
buySum = rolling sum of buy volume over last n bars
sellSum = rolling sum of sell volume over last n bars
Ratio = buySum / sellSum (na when sellSum = 0)
Ratio > 1: Buying pressure dominates (red line)
Ratio < 1: Selling pressure dominates (green line)
Visual Elements:
Green line: Rolling Buy Volume (n bars) – optional
Red line: Rolling Sell Volume (n bars) – optional
Colored line: Buy/Sell Ratio (red when >1, green when <1)
Horizontal line at 1.0: Neutral balance level
Typical Trading Use Cases:
Trend Confirmation: Ratio persistently > 1.2–1.5 while price rises → strong bullish confirmation
Divergence: Price makes higher high but ratio declines → potential top divergence
Breakout Filter: Breakout with rapidly rising ratio → higher probability breakout
Range Market Avoidance: Ratio oscillating between 0.8–1.2 → avoid choppy entries
Crypto Day/Swing Trading: Commonly used on 5m–1h charts, combined with price action or order flow
核心逻辑:
该指标基于K线的收盘价与开盘价的关系,将每根K线的成交量(volume)拆分为“买入量”(Buy Volume)和“卖出量”(Sell Volume),然后计算过去n根K线的累计买入量与卖出量的比率(Buy/Sell Ratio),用来判断短期内买卖力量的相对强弱。
成交量拆分规则:
阳线(close > open):全部成交量计入买入量
阴线(close < open):全部成交量计入卖出量
平线(close == open):根据“Flat bar volume”参数处理:
Split 50/50(默认):平分50%买入 + 50%卖出
Ignore:忽略该K线(都不计)
All to Buy:全部算买入
All to Sell:全部算卖出
计算方式:
滚动窗口n根K线内的累计买入量(buySum)和卖出量(sellSum)
比率 = buySum / sellSum(当sellSum=0时显示na)
比率 > 1:买入力量占优(红色)
比率 < 1:卖出力量占优(绿色)
图表显示:
绿色柱线:过去n根的累计买入量(可选显示)
红色柱线:过去n根的累计卖出量(可选显示)
彩色折线:买入/卖出比率(>1红色,<1绿色)
水平线1.0:平衡线(比率=1)
典型使用场景:
趋势确认:比率持续 > 1.2~1.5 且价格上涨 → 强势多头确认
背离信号:价格创新高但比率持续下降 → 潜在顶部背离
放量突破:突破关键位时比率同步快速拉升 → 突破有效性更高
震荡市过滤:比率在0.8~1.2区间反复震荡 → 避免频繁交易
币圈短线:常用于5分钟~1小时图,配合价格结构或订单流使用
BTC/XAU Correlation Crossing Delay PerformanceOVERVIEW
The BTC/XAU Correlation Crossing Delay Performance indicator is a specialized macro-tool designed to track the structural relationship between Bitcoin (Digital Gold) and Physical Gold. In institutional finance, these two assets represent the "Scarcity Complex." While they are often viewed as similar, they move in distinct Regime Shifts . This script identifies the exact moments of correlation decoupling—historically a lead indicator for major Bitcoin volatility and catch-up rallies.
THE IDEA: THE DECOUPLING SIGNAL
Traditional safe havens like Gold often act as a "Smoke Alarm" for geopolitical fear. Bitcoin, however, functions more as a "Fire Department" for global liquidity expansion. When the 52-week correlation between the two drops to zero or below, it signals a structural divergence.
Data from the past can suggest that such "Zero-Cross" events occur when Gold has front-run a price move, leaving Bitcoin at a relative valuation discount. This script marks these "Regime Shifts" (M-Markers) and measures the subsequent performance during a customizable Alpha Window .
CALCULATIONS & METHODOLOGY
The script utilizes the following logic to generate its data points:
• Purchasing Power Ratio: Calculated as Bitcoin Price divided by Gold Price. This shows exactly how many ounces of gold 1 BTC can buy.
• Pearson Correlation: A rolling 52-week calculation measuring the linear relationship between BTC and Gold prices.
• Zero-Cross Signal: A logic trigger/Marker that fires when the correlation value drops from a positive state to zero or a negative value.(M1 - M-n)
• Alpha Performance: A secondary calculation that captures the BTC price at the signal bar and compares it to the price exactly N-weeks later.
HOW TO READ THE CHART
• Orange Line: The current BTC/Gold ratio. A rising line means Bitcoin is gaining purchasing power against Gold.
• Orange Vertical Shapes (M-n): These mark the "M-Signals" where correlation broke (correlation ratio turned from positive to 0 or below on that bar). This is the "coiled spring" phase.
• Blue Vertical Shapes (Result): These appear after your defined Alpha Window (e.g., 12 weeks). They display the percentage change for both the Ratio and BTC/USD price since the M-n-signal.
• Blue Area (middle Lane): A visualization of the raw correlation value. When this cloud disappears toward the zero-level, a regime shift is in progress.
USER INPUTS
• Tickers: Choose your preferred Bitcoin and Gold sources (e.g., INDEX:BTCUSD or TVC:GOLD).
• Correlation Lookback: Default is 52 weeks, the institutional standard for measuring annual macro cycles.
• Alpha Window: Define the number of weeks (e.g., 12) you wish to track after a decoupling signal to verify historical catch-up trends.
TIMEFRAME
I view the data on the weekly timeframe. The script is optimized to run on this timeframe.
DISCLAIMER
This script is provided for educational and research purposes only. Correlation shifts are indicators of market structure changes and do not guarantee future price direction. Past performance of the BTC/Gold ratio is not an indicator of future results. Always use comprehensive risk management when trading high-volatility assets.
TAGS
Rob Maths, robmaths, Rob_Maths, Bitcoin, Gold, Ratio, Correlation, Macro
Mission Control Dashboard (AI, Crypto, Liquidity)Description: Mission Control Dashboard (AI, Liquidity) is a comprehensive macro-liquidity and cycle-analysis dashboard designed to track the "Flow of Funds" across traditional and crypto markets. Instead of looking at price action alone, this script monitors the fundamental "plumbing" of the global economy.
Key Metrics Tracked:
The Debt Wall: Monitors the US 10Y Yield and TLT price. It signals a "Critical" state if yields spike above 5% or TLT drops below $80, indicating high stress in the bond market.
Global Liquidity (MTF Stable): A proprietary calculation summing the balance sheets of the FED, ECB, BoJ, and PBoC, plus Stablecoin market cap. It calculates the Rate of Change (ROC) to see if the world is "printing" or "draining" money.
TGA Hidden Fuel: Tracks the Treasury General Account. A falling TGA is often bullish for risk assets as it injects liquidity into the banking system.
Universal Alt Season: Monitors TOTAL3 (Crypto market cap excluding BTC & ETH) for parabolic moves (>30% ROC).
AI Infra Capex: Real-time tracking of Capital Expenditures from MSFT, GOOG, AMZN, and META to gauge the health of the AI cycle.
How to use:
Green Status across the board: High probability for "Risk-On" environments (Alt season, Tech rallies).
Strategic Beta vs. Tactical Alpha: If Beta is draining but Alpha is accelerating, it suggests a "False Breakout" or a divergence in liquidity.
Uranium Trend: Used as a proxy for the energy transition and long-term industrial cycle strength.






















