Open Interest Z-Score [BackQuant]Open Interest Z-Score
A standardized pressure gauge for futures positioning that turns multi venue open interest into a Z score, so you can see how extreme current positioning is relative to its own history and where leverage is stretched, decompressing, or quietly re loading.
What this is
This indicator builds a single synthetic open interest series by aggregating futures OI across major derivatives venues, then standardises that aggregated OI into a rolling Z score. Instead of looking at raw OI or a simple change, you get a normalized signal that says "how many standard deviations away from normal is positioning right now", with optional smoothing, reference bands, and divergence detection against price.
You can render the Z score in several plotting modes:
Line for a clean, classic oscillator.
Colored line that encodes both sign and momentum of OI Z.
Oscillator histogram that makes impulses and compressions obvious.
The script also includes:
Aggregated open interest across Binance, Bybit, OKX, Bitget, Kraken, HTX, and Deribit, using multiple contract suffixes where applicable.
Choice of OI units, either coin based or converted to USD notional.
Standard deviation reference lines and adaptive extreme bands.
A flexible smoothing layer with multiple moving average types.
Automatic detection of regular and hidden divergences between price and OI Z.
Alerts for zero line and ±2 sigma crosses.
Aggregated open interest source
At the core is the same multi venue OI aggregation engine as in the OI RSI tool, adapted from NoveltyTrade's work and extended for this use case. The indicator:
Anchors on the current chart symbol and its base currency.
Loops over a set of exchanges, gated by user toggles:
Binance.
Bybit.
OKX.
Bitget.
Kraken.
HTX.
Deribit.
For each exchange, loops over several contract suffixes such as USDT.P, USD.P, USDC.P, USD.PM to cover the common perp and margin styles.
Requests OI candles for each exchange plus suffix pair into a small custom OI type that carries open, high, low and close of open interest.
Converts each OI stream into a common unit via the sw method:
In COIN mode, OI is normalized relative to the coin.
In USD mode, OI is scaled by price to approximate notional.
Exchange specific scaling factors are applied where needed to match contract multipliers.
Accumulates all valid OI candles into a single combined OI "candle" by summing open, high, low and close across venues.
The result is oiClose , a synthetic close for aggregated OI that represents cross venue positioning. If there is no valid OI data for the symbol after this process, the script throws a clear runtime error so you know the market is unsupported rather than quietly plotting nonsense.
How the Z score is computed
Once the aggregated OI close is available, the indicator computes a rolling Z score over a configurable lookback:
Define subject as the aggregated OI close.
Compute a rolling mean of this subject with EMA over Z Score Lookback Period .
Compute a rolling standard deviation over the same length.
Subtract the mean from the current OI and divide by the standard deviation.
This gives a raw Z score:
oi_z_raw = (subject − mean) ÷ stdDev .
Instead of plotting this raw value directly, the script passes it through a smoothing layer:
You pick a Smoothing Type and Smoothing Period .
Choices include SMA, HMA, EMA, WMA, DEMA, RMA, linear regression, ALMA, TEMA, and T3.
The helper ma function applies the chosen smoother to the raw Z score.
The result is oi_z , a smoothed Z score of aggregated open interest. A separate EMA with EMA Period is then applied on oi_z to create a signal line ma that can be used for crossovers and trend reads.
Plotting modes
The Plotting Type input controls how this Z score is rendered:
1) Line
In line mode:
The smoothed OI Z score is plotted as a single line using Base Line Color .
The EMA overlay is optionally plotted if Show EMA is enabled.
This is the cleanest view when you want to treat OI Z like a standard oscillator, watching for zero line crosses, swings, and divergences.
2) Colored Line
Colored line mode adds conditional color logic to the Z score:
If the Z score is above zero and rising, it is bright green, representing positive and strengthening positioning pressure.
If the Z score is above zero and falling, it shifts to a cooler cyan, representing positive but weakening pressure.
If the Z score is below zero and falling, it is bright red, representing negative and strengthening pressure (growing net de risking or shorting).
If the Z score is below zero and rising, it is dark red, representing negative but recovering pressure.
This mapping makes it easy to see not only whether OI is above or below its historical mean, but also whether that deviation is intensifying or fading.
3) Oscillator
Oscillator mode turns the Z score into a histogram:
The smoothed Z score is plotted as vertical columns around zero.
Column colors use the same conditional palette as colored line mode, based on sign and change direction.
The histogram base is zero, so bars extend up into positive Z and down into negative Z.
Oscillator mode is useful when you care about impulses in positioning, for example sharp jumps into positive Z that coincide with fast builds in leverage, or deep spikes into negative Z that show aggressive flushes.
4) None
If you only want reference lines, extreme bands, divergences, or alerts without the base oscillator, you can set plotting to None and keep the rest of the tooling active.
The EMA overlay respects plotting mode and only appears when a visible Z score line or histogram is present.
Reference lines and standard deviation levels
The Select Reference Lines input offers two styles:
Standard Deviation Levels
Plots small markers at zero.
Draws thin horizontal lines at +1, +2, −1 and −2 Z.
Acts like a classic Z score ladder, zero as mean, ±1 as normal band, ±2 as outer band.
This mode is ideal if you want a textbook statistical framing, using ±1 and ±2 sigma as standard levels for "normal" versus "extended" positioning.
Extreme Bands
Extreme bands build on the same ±1 and ±2 lines, then add:
Upper outer band between +3 and +4 Z.
Lower outer band between −3 and −4 Z.
Dynamic fill colors inside these bands:
If the Z score is positive, the upper band fill turns red with an alpha that scales with the magnitude of |Z|, capped at a chosen max strength. Stronger deviations towards +4 produce more opaque red fills.
If the Z score is negative, the lower band fill turns green with the same adaptive alpha logic, highlighting deep negative deviations.
Opposite side bands remain a faint neutral white when not in use, so they still provide structural context without shouting.
This creates a visual "danger zone" for position crowding. When the Z score enters these outer bands, open interest is many standard deviations away from its mean and you are dealing with rare but highly loaded positioning states.
Z score as a positioning pressure gauge
Because this is a Z score of aggregated open interest, it measures how unusual current positioning is relative to its own recent history, not just whether OI is rising or falling:
Z near zero means total OI is roughly in line with normal conditions for your lookback window.
Positive Z means OI is above its recent mean. The further above zero, the more "crowded" or extended positioning is.
Negative Z means OI is below its recent mean. Deep negatives often mark post flush environments where leverage has been cleared and the market is under positioned.
The smoothing options help control how much noise you want in the signal:
Short Z score lookback and short smoothing will react quickly, suited for short term traders watching intraday positioning shocks.
Longer Z score lookback with smoother MA types (EMA, RMA, T3) give a slower, more structural view of where the crowd sits over days to weeks.
Divergences between price and OI Z
The indicator includes automatic divergence detection on the Z score versus price, using pivot highs and lows:
You configure Pivot Lookback Left and Pivot Lookback Right to control swing sensitivity.
Pivots are detected on the OI Z series.
For each eligible pivot, the script compares OI Z and price at the last two pivots.
It looks for four patterns:
Regular Bullish – price makes a lower low, OI Z makes a higher low. This can indicate selling exhaustion in positioning even as price washes out. These are marked with a line and a label "ℝ" below the oscillator, in the bullish color.
Hidden Bullish – price makes a higher low, OI Z makes a lower low. This suggests continuation potential where price holds up while positioning resets. Marked with "ℍ" in the bullish color.
Regular Bearish – price makes a higher high, OI Z makes a lower high. This is a classic warning sign of trend exhaustion, where price pushes higher while OI Z fails to confirm. Marked with "ℝ" in the bearish color.
Hidden Bearish – price makes a lower high, OI Z makes a higher high. This is often seen in pullbacks within downtrends, where price retraces but positioning stretches again in the direction of the prevailing move. Marked with "ℍ" in the bearish color.
Each divergence type can be toggled globally via Show Detected Divergences . Internally, the script restricts how far back it will connect pivots, so you do not get stray signals linking very old structures to current bars.
Trading applications
Crowding and squeeze risk
Z scores are a natural way to talk about crowding:
High positive Z in aggregated OI means the market is running high leverage compared to its own norm. If price is also extended, the risk of a squeeze or sharp unwind rises.
Deep negative Z means leverage has been cleaned out. While it can be painful to sit through, this environment often sets up cleaner new trends, since there is less one sided positioning to unwind.
The extreme bands at ±3 to ±4 highlight the rare states where crowding is most intense. You can treat these events as regime markers rather than day to day noise.
Trend confirmation and fade selection
Combine Z score with price and trend:
Bull trends with positive and rising Z are supported by fresh leverage, usually more persistent.
Bull trends with flat or falling Z while price keeps grinding up can be more fragile. Divergences and extreme bands can help identify which edges you do not want to fade and which you might.
In downtrends, deep negative Z that stays pinned can mean persistent de risking. Once the Z score starts to mean revert back toward zero, it can mark the early stages of stabilization.
Event and liquidation context
Around major events, you often see:
Rapid spikes in Z as traders rush to position.
Reversal and overshoot as liquidations and forced de risking clear the book.
A move from positive extremes through zero into negative extremes as the market transitions from crowded to under exposed.
The Z score makes that path obvious, especially in oscillator mode, where you see a block of high positive bars before the crash, then a slab of deep negative bars after the flush.
Settings overview
Z Score group
Plotting Type – None, Line, Colored Line, Oscillator.
Z Score Lookback Period – window used for mean and standard deviation on aggregated OI.
Smoothing Type – SMA, HMA, EMA, WMA, DEMA, RMA, linear regression, ALMA, TEMA or T3.
Smoothing Period – length for the selected moving average on the raw Z score.
Moving Average group
Show EMA – toggle EMA overlay on Z score.
EMA Period – EMA length for the signal line.
EMA Color – color of the EMA line.
Thresholds and Reference Lines group
Select Reference Lines – None, Standard Deviation Levels, Extreme Bands.
Standard deviation lines at 0, ±1, ±2 appear in both modes.
Extreme bands add filled zones at ±3 to ±4 with adaptive opacity tied to |Z|.
Extra Plotting and UI
Base Line Color – default color for the simple line mode.
Line Width – thickness of the oscillator line.
Positive Color – positive or bullish condition color.
Negative Color – negative or bearish condition color.
Divergences group
Show Detected Divergences – master toggle for divergence plotting.
Pivot Lookback Left and Pivot Lookback Right – how many bars left and right to define a pivot, controlling divergence sensitivity.
Open Interest Source group
OI Units – COIN or USD.
Exchange toggles for Binance, Bybit, OKX, Bitget, Kraken, HTX, Deribit.
Internally, all enabled exchanges and contract suffixes are aggregated into one synthetic OI series.
Alerts included
The indicator defines alert conditions for several key events:
OI Z Score Positive – Z crosses above zero, aggregated OI moves from below mean to above mean.
OI Z Score Negative – Z crosses below zero, aggregated OI moves from above mean to below mean.
OI Z Score Enters +2σ – Z enters the +2 band and above, marking extended positive positioning.
OI Z Score Enters −2σ – Z enters the −2 band and below, marking extended negative positioning.
Tie these into your strategy to be notified when leverage moves from normal to extended states.
Notes
This indicator does not rely on price based oscillators. It is a statistical lens on cross venue open interest, which makes it a complementary tool rather than a replacement for your existing price or volume signals. Use it to:
Quantify how unusual current futures positioning is compared to recent history.
Identify crowded leverage phases that can fuel squeezes.
Spot structural divergences between price and positioning.
Frame risk and opportunity around events and regime shifts.
It is not a complete trading system. Combine it with your own entries, exits and risk rules to get the most out of what the Z score is telling you about positioning pressure under the hood of the market.
Análisis fundamental
FOMC Federal Fund Rate Tracker [MHA Finverse]The FOMC Rate Tracker is a comprehensive indicator that visualizes Federal Reserve interest rate decisions and tracks market behavior during FOMC meeting periods. This tool helps traders analyze historical rate changes and anticipate market movements around Federal Open Market Committee announcements.
Key Features:
• Visual FOMC Periods - Automatically highlights each FOMC meeting period with colored boxes spanning from announcement to the next meeting
• Complete Rate Data - Displays actual rates, forecasts, previous rates, and rate differences for every meeting from 2021-2026
• Multiple Color Modes - Choose between cycle colors for visual distinction or rate difference colors (green for hikes, red for cuts, gray for holds)
• Smart Filtering - Filter periods by rate hikes only, cuts only, no change, or surprise moves to focus on specific market conditions
• Performance Metrics - Track average returns during rate hikes, cuts, and holds to identify historical patterns
• Volatility Analysis - Measure and compare price volatility across different FOMC periods
• Statistical Dashboard - View total hikes, cuts, holds, surprises, and longest hold streaks at a glance
• Built-in Alerts - Get notified 1 day before FOMC meetings, on meeting day, or when rates change
How It Works:
The indicator divides your chart into distinct periods between FOMC meetings, with each period showing a labeled box containing the meeting date, actual rate, forecast, previous rate, and rate difference. Future meetings are marked as "UPCOMING" to help you prepare for scheduled announcements.
Use Cases:
- Analyze how markets typically react to rate hikes vs. cuts
- Identify volatility patterns around FOMC announcements
- Backtest strategies based on monetary policy cycles
- Plan trades around upcoming Federal Reserve meetings
- Study the impact of surprise rate decisions on price action
Customization Options:
- Adjustable box transparency and outlines
- Customizable label sizes and colors
- Toggle individual dashboards on/off
- Filter specific types of rate decisions
- Configure alert preferences
This indicator is ideal for traders who incorporate fundamental analysis and monetary policy into their trading decisions. The historical data provides context for understanding market reactions to Federal Reserve actions.
PEG RSI [Auto EPS Growth]The PEG RSI is a hybrid indicator that combines fundamental valuation with technical momentum. It applies the Relative Strength Index (RSI) directly to the Price/Earnings-to-Growth (PEG) Ratio.
Unlike traditional PEG indicators that require manual input for growth rates, this script automatically calculates the Compound Annual Growth Rate (CAGR) of Earnings Per Share (EPS) based on historical data.
Key Features
- Auto-Calculated Growth: Uses historical TTM Earnings Per Share (EPS) to calculate the CAGR over a user-defined period (Default: 4 years).
- Dynamic Valuation: Converts the static PEG ratio into an oscillator (RSI) to identify relative valuation extremes.
- Trend & Momentum: Visualizes the momentum of the PEG ratio relative to its own history.
Educational Case Study
This indicator is designed for educational purposes and research. Instead of relying on fixed overbought or oversold levels, users are encouraged to study the correlation between the PEG RSI and price action independently.
- Observe how the price reacts when the PEG RSI reaches upper or lower extremes.
- Different stocks may respect different RSI zones based on their growth stability.
- Use this tool to analyze how market valuation momentum shifts over time.
Settings:
- Years for CAGR Growth: Timeframe to calculate EPS growth (Default: 4 years).
- RSI Length: Lookback period for the RSI calculation (Default: 14).
Note: This indicator works best on stocks with a consistent history of earnings. It requires financial data to function (will not work on assets without EPS like Crypto or Forex).
RiskON/RiskOff Ratio CombinedRiskON/RiskOff Ratio Combined Indicator
This indicator provides a comprehensive view of market risk appetite by analyzing the ratio between a proprietary risk-on asset and a risk-off benchmark. It helps traders identify shifts in market sentiment, potential bullish or bearish momentum, and correlations with key assets like Bitcoin, all while adapting to different timeframes for reliable signals.
How It Works
The core of the indicator is a dynamic ratio calculated from selected market proxies. This ratio is smoothed using an adaptive moving average that adjusts its length based on the chosen timeframe or a fixed resolution mode, ensuring consistency across charts and handling gaps during market closures. The difference between the raw ratio and its moving average is normalized to a scale between -1 and 1, allowing for clear interpretation of market strength.
Normalization uses a lookback period to scale deviations dynamically, preventing extreme values from skewing readings.
Signals are generated based on confirmed crosses or momentum shifts, with options for fixed-resolution confirmation to avoid false positives during intraday volatility.
Additionally, it incorporates Bitcoin correlation analysis against a user-selected reference (S&P 500 or Nasdaq 100 proxy) and gold, using daily returns over a customizable period. This helps detect decorrelation periods where the indicator's reliability might be affected, with color-coded warnings.
Inputs
Use Fixed Resolution : Enable to use a consistent calculation timeframe (default: Daily) with gap handling for accuracy; disable for current chart timeframe.
Calculation Resolution : Timeframe for fixed mode (e.g., 'D' for daily).
Base MA Length : Starting length for the adaptive moving average (default: around 185 periods, adjustable).
Max MA Length : Upper limit for adaptation (default: high value to prevent overflow).
Use Color Gradient : Toggle between gradient colors (for nuanced sentiment) or simple bull/bear colors.
Show BTC Correlation : Display correlation metrics (default: enabled).
Bitcoin Ticker : Symbol for BTC (default: INDEX:BTCUSD).
Reference Asset : Choose between SPY (S&P 500) or QQQ (Nasdaq 100) for correlation.
Correlation Period : Days for calculation (default: 50).
Warning Threshold : Level for decorrelation alerts (default: 0.3).
Outputs and Display
Plots : The ratio line (colored based on direction), its adaptive moving average, and a fill area highlighting the normalized difference with gradient or signal-based colors.
Market State Table : Displays current sentiment as "STRONG BUY", "BUY", "NEUTRAL", "SELL", or "STRONG SELL" with thresholds, plus mode info and optional BTC correlations (with status like "RELIABLE", "CAUTION", "DECORR", or "INVERSE").
Alerts : Conditions for bullish/bearish signals and decorrelation warnings.
Usage
Add the indicator to any chart (e.g., major indices or crypto). Use it to gauge risk-on/off environments: positive normalized values suggest buying momentum, negative indicate selling pressure. Monitor correlations for Bitcoin-related strategies—low correlation may signal regime changes. Best on daily or higher timeframes for stability. Combine with other tools for confirmation.
Originality
This indicator uniquely combines a risk ratio with timeframe-adaptive smoothing, dynamic normalization, and integrated correlation checks, providing a multi-faceted risk assessment not found in standard tools. It evolves from traditional risk metrics by incorporating gap handling and confirmation logic for robustness across markets.
For invite-only access: Please contact me via TradingView private message with your use case to request an invitation. Access is granted selectively.
Notes
Past performance is not indicative of future results. This is not investment advice—use at your own risk.
Daily Buy Signal – RSI/EMA21
Daily Buy Signal – RSI/EMA21
A simple technical signal that identifies potential daily buy opportunities using RSI and EMA21 alignment.
This script generates a daily buy signal when momentum and trend strength align.
The signal triggers when the price closes above the 21-period EMA and the RSI(14) crosses above the 50 level, or when both the RSI stays above 50 and the price shifts from closing below the EMA21 to closing above it.
A label is plotted below the candle, and the script includes an alert condition so users can receive real-time notifications.
Dragon Smart Ratings (IBD/CANSLIM methodology)🐉 Dragon Smart Ratings – Institutional Grade Analysis
Dragon Smart Ratings is a comprehensive technical and fundamental analysis tool designed to identify market leaders instantly. Inspired by the legendary IBD/CANSLIM methodology, this script calculates five key ratings to help traders separate the "True Leaders" from the rest of the market.
📊 KEY RATINGS EXPLAINED
1. 🟢 Composite Rating (Overall Score)
The master score (1-99) that combines all other ratings.
Smart Protection Logic: Includes a "Contrarian Shield." If a stock has exceptional fundamentals (EPS/SMR) but temporary price weakness, the Composite Rating is protected to ensure you don't miss potential turnaround plays (e.g., META scenarios).
Leader Boost: If a stock exhibits both high RS and high EPS, the score is mathematically forced to 95-99.
2. 📈 RS Rating (Relative Strength)
Measures price performance against the general market (SPY) over the last 12 months.
Leader Logic: heavily weights the most recent 3 months.
Near-High Bonus: Awards extra points if the price is trading near its 52-week high.
3. 💰 EPS Rating (Earnings Per Share)
Analyzes earnings growth on both a Quarterly and Annual basis.
🚀 Smart Fill Technology: TradingView sometimes returns N/A or delayed data for ADRs (like TSM) or international stocks (like AGI). This script detects if a stock has high Price Strength (RS > 90) and automatically extrapolates a fair EPS score, ensuring Leaders are never rated "40" due to missing data.
King Mode: If a stock shows massive growth (>50%) in either the last quarter or the 3-year average, it gets a perfect score.
4. 💎 SMR Rating (Sales + Profit Margins + ROE)
Grades stocks from A (Best) to E (Worst).
Hero Mode: Unlike traditional strict algorithms, Dragon Ratings recognizes that one "Super Metric" (e.g., a massive 40% Margin) can outweigh a lower ROE. If a stock excels in just one category, it qualifies for an A or B.
5. 📦 Acc/Dis Rating (Accumulation/Distribution)
Analyzes Volume and Price action to detect Institutional Buying or Selling.
Strict Mode: Uses a refined Chaikin Money Flow (CMF) logic combined with a "Trend Penalty." It is very difficult to get an A rating unless there is significant heavy-volume buying while the price is above key moving averages.
📱 MOBILE OPTIMIZED (SOLO MODE)
Most fundamental scripts crash on mobile due to memory limits. Dragon Smart Ratings V33 uses advanced Tuple Requests and reduced historical calls to ensure zero crashes on the TradingView Mobile App, while still delivering deep fundamental analysis.
🔔 ALERTS & TELEGRAM INTEGRATION
Built-in support for JSON Alerts.
You can set up a single alert to send a formatted message to your Telegram Bot containing all rating details whenever a stock crosses your defined threshold (default: Composite > 80).
This tool is developed to support the trading community with high-precision data analysis.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice. Always do your own due diligence.
On-Chain Z-Score SuiteOn-Chain Z-Score Suite
The On-Chain Z-Score Suite is a composite valuation indicator that aggregates some of the most robust Bitcoin on-chain pricing models—MVRV, SOPR, Net Unrealized Profit/Loss (NUPL), the Puell Multiple, and the Pi Cycle Top Indicator—by converting each into its respective historical z-score and then calculating a customizable equal-weighted or user-adjusted average. This unified z-score reflects how far current market conditions deviate, in standard-deviation terms, from long-term norms across multiple independent fundamental frameworks simultaneously. Users can enable or disable individual components, adjust their relative weights, and define custom overbought and oversold thresholds, allowing the indicator to be fine-tuned to different market cycles and personal risk preferences. Historically, extreme positive readings of the composite z-score have coincided with major cycle tops, while deeply negative readings have marked capitulation bottoms, offering a statistically grounded, multi-factor perspective on Bitcoin valuation and market sentiment.
MVRV
The Market Value to Realized Value (MVRV) is an advanced on-chain indicator designed to assess the ratio between the Market Value and the Realized Value of Bitcoin.
Market Value is calculated as the current price of Bitcoin multiplied by its circulating supply and realized Value is derived by multiplying the realized price of Bitcoin (the price at which the coins last moved) by the circulating supply. It represents the total cost basis of all Bitcoin held.
SOPR
The Spent Output Profit Ratio (SOPR) is an advanced on-chain indicator that measures the ratio between the combined USD value of all Bitcoin outputs spent on a given day and their combined USD value at the time of creation. SOPR offers a window into aggregate seller behavior, effectively representing the USD amount received by sellers divided by the USD amount they originally paid.
NUPL
The Net Unrealized Profit and Loss (NUPL) is an advanced on-chain indicator that is measured by subtracting the Realized Value from Market Value. Realized Value takes the price of each Bitcoin when it was last moved. It adds up all individual prices and takes an average. It multiplies that average price by the total number of coins in circulation. Market Value is the current price of Bitcoin multiplied by the number of coins in circulation. This gives us the NUPL which estimates the total paper profits/losses in Bitcoin held by investors.
Puell Multiple
The Puell Multiple is calculated by dividing the total USD value of Bitcoin issued today (newly mined coins × BTC price) by the 365-day moving average of that daily issuance value. It shows how today's miner revenue compares to the past year's average.
Pi Cycle
The Pi Cycle Top Indicator uses the 111 day moving average (111DMA) and a newly created multiple of the 350 day moving average, the 350DMA x 2 (the multiple is of the price values of the 350DMA, not the number of days). For the past three market cycles, when the 111DMA moves up and crosses the 350DMA x 2 we see that it coincides with the price of Bitcoin peaking. It is also interesting to note that 350 / 111 is 3.153, which is very close to Pi = 3.142, thus the name.
Features
The script compares the Z-score with customizable threshold levels to generate overbought and oversold levels. A Z-score exceeding the upper threshold suggests potential overbought conditions, while a Z-score below the lower threshold may indicate oversold conditions.
This script offers several customizable inputs, enabling traders to tailor the indicator to their preferences. The length determines the lookback period that the Z-score is calculated over. Traders can also adjust the thresholds to define the sensitivity of overbought and oversold conditions.
It has 10 available color schemes to choose from and the background coloring on the chart can be toggled on and off.
Practical Applications
This indicator is designed for traders who focus on identifying cycle extremes and potential mean reversion opportunities. By using Z-score analysis, this tool can be particularly effective for detecting points of overextension in the market, where a reversion to the mean is likely.
Detecting Overbought and Oversold Conditions: The Z-score measures how far the price has deviated from its norm, allowing traders to identify overbought or oversold conditions with precision.
Timing Market Reversals: The indicator provides early signals of potential market reversals by highlighting when the price has moved too far away from its average, helping traders anticipate reversion opportunities.
AUTOSTDVThis indicator plots Standard Deviation projections to help traders with top ticking and bottom ticking market reversals. It automatically identifies market structure to draw both Manipulation and Distribution legs.
The script uses a custom algorithm to detect Major Highs and Major Lows based on pivot relationships. Once a major reversal is confirmed (via a break of a prior small pivot structure), the indicator calculates the standard deviation of the "Manipulation Leg" (the move leading into the pivot) and the "Distribution Leg" (the initial move away from the pivot) to project exhaustion targets.
**Features:**
* **Dual Leg Analysis:** Visualizes both the setup phase (Manipulation) and the expansion phase (Distribution).
* **Dynamic Settings:** automatically adjusts calculation lengths based on the timeframe to filter noise.
* **Timeframe Specific:** This indicator is optimized and restricted to work on the following timeframes: **5m, 15m, 30m, 1h, 2h, and 4h**.
* **Clean Visuals:** Hides raw pivot data to focus purely on the projection levels.
**Disclaimer:** I am not liable for any losses or financial damages resulting from the use of this indicator. Trading involves significant risk, and this tool is for educational purposes only. Past performance is not indicative of future results.
TRADE2GO CALCULATORMobile-Optimized Position Size Calculator with Intuitive Moveable Lines
Trading on mobile just got easier. Our TradingView calculator features drag-and-drop interactive lines designed specifically for touchscreen devices, eliminating the need for manual price input on small screens.
Key Features:
Easy Touch Controls - Simply drag the Entry, Stop Loss, and Take Profit lines directly on your chart. No more typing precise prices on tiny keyboards or struggling with number pads while analyzing the market.
Real-Time Calculations - As you move the lines, lot sizes and risk parameters update instantly. See your position size, potential profit, and risk amount change dynamically as you adjust your trade setup.
Perfect for Mobile Trading - Whether you're trading on-the-go or prefer mobile analysis, the moveable lines provide a seamless experience that works naturally with touch gestures. Pinch to zoom, drag to position, and your calculations follow your trade plan in real-time.
Visual Trade Planning - Place your lines where you see support/resistance levels, trend lines, key chart patterns, or using Pip Booster trading levels. Your position sizing adapts automatically to your technical analysis, keeping risk management front and center.
One-Glance Risk Assessment - All critical information displays clearly: lot size, risk and reward amounts in your account currency, and the calculated lot size to use—all updating as you refine your trade setup visually on the chart.
Trade smarter on mobile with a calculator that moves at the speed of your analysis.
Relative Value & Risk Analytics DashboardThis is your risk-adjusted alpha analysis tool - exactly what hedge fund and insurance company clients want to see.
Attractiveness Score | Composite score combining RV and Risk (0-100)
Relative Performance | vs Benchmark (SET/SPY), RS Ratio Trend, 52W Position, Spread Z-Score
Risk Metrics | Beta, Alpha, Sharpe, Sortino, Information Ratio, Volatility
Correlation | Benchmark Correlation, R-Squared, Regime Change Detection
Pair Trade | Peer Correlation, Pair Z-Score, Long/Short Signals
Factor Exposure | Momentum (1/3/6M), Mean Reversion Signal, Distance from SMA50
Drawdown | Current DD, Max DD, Recovery Needed, Ulcer Index, Calmar, VaR
Key Features:
Benchmark-Relative Analysis: Compare any stock vs SET Index or any other benchmark
Pair Trade Signals: Automatically generates long/short signals based on Z-score
Risk-Adjusted Returns: Sharpe, Sortino, Information Ratio - what your clients actually care about
Regime Change Detection: Alert when correlation dynamics shift
Drawdown Risk: VaR, Ulcer Index, Calmar Ratio for risk-conscious clients
Fundamental Analysis DashboardFundamental Analysis Dashboard
Valuation | P/E, P/B, P/S, EV/EBITDA, PEG, FCF Yield
Profitability | ROE, ROA, ROIC, Net Margin, Gross Margin, Operating Margin
Growth | EPS Growth YoY, Revenue Growth YoY, EPS TTM
Financial Health | Debt/Equity, Current Ratio, Quick Ratio, Net Cash, FCF
Dividends | Dividend Yield, Payout Ratio, DPS
Technical Context | Price vs EMA50/200, RSI, 52-Week Position
The dashboard calculates a Fundamental Score (0-100) based on weighted criteria across all sections:
80-100: Excellent
65-79: Good
50-64: Fair
35-49: Weak
0-34: Poor
宏观压力计 (Macro Stress Gauge)call on green, sell on red
the Red Line represents US Treasury Yield momentum (the cost of capital), and the Green Line represents US Dollar momentum (the global liquidity valve).
When both lines spike and break above the 50 midline, it means money is both expensive and scarce. This is the dangerous "Double Kill" moment. At this time, you should hold cash and strictly avoid high-valuation tech stocks.
Conversely, if both the Red and Green lines fall below 50—and the background turns green—that is the macro "Goldilocks Zone." This implies a loose Fed and a weakening Dollar, representing peak risk appetite. You should boldly buy high-beta growth stocks or crypto without worrying about a broad market correction.
The most common scenario is divergence (one up, one down)—for example, if the Red Line rises while the Green Line falls. This usually signals Sector Rotation rather than a crash. In this environment, capital often flows from Tech into Industrials or Commodities; you just need to follow the "Sector Radar" mentioned earlier to allocate into the strong sectors.
To summarize simply, just stare at the middle line: when both lines are above it, it’s "Red Light: Stop"; when both are below, it’s "Green Light: Go." Now, take a look at your screen—if the background hasn't turned red, you can proceed to use the sector tools to hunt for opportunities.
Fed Net Liquidity [Premium] [by Golman Armi]This indicator visualizes the USD Net Liquidity injected into the financial system by the Federal Reserve.
It is a fundamental macro-economic tool essential for understanding the underlying "fuel" driving risk assets such as the S&P 500 (SPX), Nasdaq (NDX), and Bitcoin (BTC).
Unlike many other liquidity scripts that incorrectly use Commercial Bank Assets (USCBBS), this script uses the Federal Reserve Total Assets (WALCL) to provide a mathematically accurate representation of Central Bank liquidity.
How It Works (The Formula)
Net Liquidity represents the actual cash available to the banking system for investment after government liabilities are subtracted. The formula used is:
NetLiquidity=WALCL−TGA−RRP
Where:
WALCL (Fed Balance Sheet): The total assets held by the Federal Reserve (The source of money printing).
TGA (Treasury General Account - WTREGEN): The checking account of the US Government. When the TGA goes up, money is removed from the economy; when it goes down, money is spent into the economy.
RRP (Reverse Repo - RRPONTTLD): Cash parked by banks and money market funds at the Fed overnight. A rise in RRP removes liquidity from the markets.
Features
Accurate Data Sourcing: Pulls daily data directly from FRED (Federal Reserve Economic Data).
Unit Correction: Automatically adjusts conflicting units (Millions vs Billions) from TradingView data feeds to output a correct value in Trillions of Dollars.
Trend Cloud: Features a smoothing EMA (Exponential Moving Average) with a color-coded cloud to easily identify the macro trend (Green for expansion, Red for contraction).
How to Use
Trend Correlation:
Rising Line (Green): Liquidity is expanding. Historically, this supports bullish trends in stocks and crypto.
Falling Line (Red): Liquidity is being drained (QT or TGA refill). This often leads to volatility or bearish trends in risk assets.
Divergences (The most powerful signal):
If the S&P 500 or Bitcoin makes a New High, but Net Liquidity makes a Lower High, it indicates a "hollow rally" lacking fundamental support, often preceding a correction.
Disclaimer
This tool is for educational purposes and macro-economic analysis only. It is not financial advice.
Fed Rate ProbabilityFed Rate Probability – Simple & Clean v2.0
Real-time composite score (0–100) for the next Fed move: Rate Cut, Hike or Hold
Overview
A clean, all-in-one indicator that combines the most reliable market signals into two easy-to-read lines:
• Red line → Probability of RATE CUT
• Blue line → Probability of RATE HIKE
• Hold score = 100 – max(cut, hike)
The dominant signal (CUT / HOLD / HIKE) is highlighted in the information table.
Key Features
Automatic daily data from FRED (DFF, 3M/1M/2Y/10Y yields)
Smart fallback to TradingView native symbols (US01MY, US03MY, US02Y, US10Y) when FRED is unavailable
Manual CME FedWatch probability override (perfect for weekends/holidays)
Historical Fed rate cut/hike markers with background shading and labels
Colored probability zones + customizable threshold lines
Threshold-crossing labels and full alert suite
Special alert on 2Y-10Y yield curve un-inversion (strong historical precursor to rate cuts)
Detailed summary table with current spreads, scores and dominant signal
Fully customizable: enable/disable each component, adjust weights indirectly via toggles, change smoothing, thresholds, colors, etc.
Score Composition (0–100 points)
T-bills vs Fed Funds spread – max 50 pts (with persistence & 1M confirmation bonus)
2-Year Treasury vs Fed Funds spread – max 30 pts (or direct CME probability input)
2Y-10Y yield curve behavior – max 20 pts (inversion depth + large bonus on steepening after un-inversion)
Interpretation
0–40 → Low probability
40–60 → Moderate
60–75 → High
75–100 → Very High / Almost certain
Why this indicator?
Instead of checking FRED, CME FedWatch, yield curves and T-bill spreads separately, get everything in one pane with a clear, smoothed composite score and instant alerts when the market starts pricing a Fed move aggressively.
Disclaimer
This is a decision-support tool based on historical relationships and current market pricing. It is not financial advice and past performance is no guarantee of future results.
Enjoy and trade safe! 🚀
Volume Flow IndicatorVolume flow analysis
This indicator measures volume-weighted money flow by comparing price changes against a volatility-based threshold, then smoothing the result - when VFI is above zero (green cloud) it suggests accumulation/buying pressure, while below zero (red cloud) indicates distribution/selling pressure.
EMA 20/50/200 - Warning Note Before Cross EMA 20/50/200 - Smart Cross Detection with Customizable Alerts
A clean and minimalistic indicator that tracks three key Exponential Moving Averages (20, 50, and 200) with intelligent near-cross detection and customizable warning system.
═══════════════════════════════════════════════════════════════════
📊 KEY FEATURES
✓ Triple EMA System
• EMA 20 (Red) - Fast/Short-term trend
• EMA 50 (Yellow) - Medium/Intermediate trend
• EMA 200 (Green) - Slow/Long-term trend & major support/resistance
✓ Smart Near-Cross Detection
• Get warned BEFORE crosses happen (not after)
• Adjustable threshold percentage (how close is "close")
• Automatic hiding after cross to prevent false signals
• Configurable lookback period
✓ Dual Warning System
• Price Label: Appears directly on chart near EMAs
• Info Table: Positioned anywhere on your chart
• Both show distance percentage and direction
• Dynamic positioning to avoid blocking candles
✓ Color-Coded Alerts
• GREEN warning = Bullish cross approaching (EMA 20 crossing UP through EMA 50)
• RED warning = Bearish cross approaching (EMA 20 crossing DOWN through EMA 50)
✓ Cross Signal Detection
• Golden Cross (EMA 50 crosses above EMA 200)
• Death Cross (EMA 50 crosses below EMA 200)
• Fast crosses (EMA 20 and EMA 50)
═══════════════════════════════════════════════════════════════════
⚙️ CUSTOMIZATION OPTIONS
Warning Settings:
• Custom warning text for bull/bear signals
• Adjustable opacity for better visibility
• Toggle distance and direction display
• Flexible table positioning (9 positions available)
• 5 text size options
Alert Settings:
• Golden/Death Cross alerts
• Fast cross alerts (20/50)
• Near-cross warnings (before it happens)
• All alerts are non-repainting
Display Options:
• Show/hide each EMA individually
• Toggle all signals on/off
• Adjustable threshold sensitivity
• Dynamic label positioning
═══════════════════════════════════════════════════════════════════
🎯 HOW TO USE
1. ADD TO CHART
Simply add the indicator to any chart and timeframe
2. ADJUST THRESHOLD
Default is 0.5% - increase for less frequent warnings, decrease for earlier warnings
3. SET UP ALERTS
Create alerts for:
• Near-cross warnings (get notified before the cross)
• Actual crosses (when EMA 20 crosses EMA 50)
• Golden/Death crosses (major trend changes)
4. CUSTOMIZE APPEARANCE
• Change warning text to your language
• Adjust opacity for your chart theme
• Position table where it's most convenient
• Choose label size for visibility
═══════════════════════════════════════════════════════════════════
💡 TRADING TIPS
- Use the near-cross warning to prepare entries/exits BEFORE the cross happens
- Green warning = Prepare for potential long position
- Red warning = Prepare for potential short position
- Combine with other indicators for confirmation
- Higher timeframes = more reliable signals
- Warning disappears after cross to avoid confusion
═══════════════════════════════════════════════════════════════════
🔧 TECHNICAL DETAILS
- Pine Script v6
- Non-repainting (all signals confirm on bar close)
- Works on all timeframes
- Works on all instruments (stocks, crypto, forex, futures)
- Lightweight and efficient
- No external data sources required
═══════════════════════════════════════════════════════════════════
📝 SETTINGS GUIDE
Near Cross Settings:
• Threshold %: How close EMAs must be to trigger warning (default 0.5%)
• Lookback Bars: Hide warning for X bars after a cross (default 3)
Warning Note Style:
• Text Size: Tiny to Huge
• Colors: Customize bull/bear warning colors
• Position: Place table anywhere on chart
• Opacity: 0 (solid) to 90 (very transparent)
Price Label:
• Size: Tiny to Large
• Opacity: Control transparency
• Auto-positioning: Moves to avoid blocking candles
Custom Text:
• Bull/Bear warning messages
• Toggle distance display
• Toggle direction display
═══════════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
- Warnings only appear BEFORE crosses, not after
- After a cross happens, warning is hidden for the lookback period
- Adjust threshold if you're getting too many/too few warnings
- This is a trend-following indicator - best used with confirmation
- Always use proper risk management
═══════════════════════════════════════════════════════════════════
Happy Trading! 📈📉
If you find this indicator useful, please give it a boost and leave a comment!
For questions or suggestions, feel free to reach out.
MSTR mNAV indicatorTrack and compute MicroStrategy's mNAV (EV divided by BTC reserve value) over time.
- compute method: www.strategy.com
- data source: www.strategy.com
Global Market Scanner [Armi Goldman]Concept
This indicator is designed to provide a comprehensive "Bird's Eye View" of the global financial economy. Instead of focusing on a single chart, this dashboard allows traders to monitor capital rotation across every major asset class simultaneously. By tracking the Money Flux (daily percentage change) of these markets, users can instantly identify if the market environment is "Risk-On" (flowing into assets) or "Risk-Off" (fleeing to cash/bonds).
Features
The dashboard displays a real-time table in the top-right corner tracking 9 key sectors:
US M2 Money Supply: The broad measure of liquidity availability.
US Dollar (DXY): The global currency baseline.
Global Stocks (VT): World equities performance.
Crypto Market: Total cryptocurrency market capitalization.
Commodities: Gold, Silver, and Crude Oil (WTI).
Real Estate: Vanguard Real Estate ETF (VNQ).
Bonds: US Aggregate Bond Market.
How it Works
The script utilizes request.security() to fetch data from multiple asset classes regardless of the chart you are currently viewing.
Flux Calculation: The "Flux" column calculates the daily percentage change (Close - Open) / Open. This reveals the immediate direction of capital flow for the current session.
M2 Trend: For the Money Supply, the script calculates a 30-day rate of change to determine if the Fed is effectively "Inflating" (adding liquidity) or "Tightening" (removing liquidity).
Status Logic: The status column uses conditional logic to assign readable labels (e.g., "INFLOW" vs "OUTFLOW" or "STRONGER" vs "WEAKER") based on the positive or negative value of the Flux.
How to Use
Risk-On Signal: If Stocks, Crypto, and Real Estate show green "INFLOW" status while the Dollar (DXY) is red, capital is deploying into risk assets.
Flight to Safety: If Gold and Bonds are green while Equities are red, investors may be hedging against fear.
Cash is King: If DXY is strong (Green) and almost all other assets are red, liquidity is drying up and moving into Cash.
Liquidity Watch: Monitor the US M2 Supply. A simplified view is that when M2 is "Inflating," it provides a long-term tailwind for asset prices.
Tickers Used
Liquidity: ECONOMICS:USM2
Currency: TVC:DXY
Equities: AMEX:VT (Total World Stock ETF)
Real Estate: AMEX:VNQ (Vanguard Real Estate)
Bonds: AMEX:AGG
Commodities: TVC:GOLD, TVC:SILVER, TVC:USOIL
Crypto: CRYPTOCAP:TOTAL
Disclaimer This tool is for informational purposes only and does not constitute financial advice.
Crypto Market Pulse: Dom vs Vol AnalyzerConcept & Methodology
The core logic of this indicator is based on the "Money Flow" theory. It aggregates data from multiple sources (CRYPTOCAP:TOTAL, BTC.D, BINANCE:BTCUSDT) to provide a comprehensive market overview in a single panel.
Key Calculations:
Total Market Cap & Volume: Fetches real-time data to determine the overall health of the market.
Inverse Dominance Logic: Unlike standard indicators, this script applies inverse color coding to Bitcoin Dominance (BTC.D).
When BTC Dominance drops, it is colored Green (indicating liquidity flowing into Altcoins).
When BTC Dominance rises, it is colored Red (indicating risk for Altcoins).
Volume Delta: Compares the current timeframe's volume against the previous candle to calculate the percentage change, highlighting sudden liquidity injections.
█ Features
Real-time Dashboard: Displays Cap, Volume, BTC Price, and BTC Dominance.
Altcoin-Focus Coloring: Automatically interprets data to favor Altcoin traders (Green Signals = Good for Alts).
Dynamic Alerts:
Volume Surge Alert: Triggers when volume exceeds a user-defined threshold (default +50%), signaling potential breakout activity.
Dominance Drop Alert: Triggers when BTC Dominance falls significantly, signaling the start of potential Altcoin movement.
█ How to Use
Look for Confluence: The ideal "Altseason" signal is when the Total Cap is Green (Market up) AND BTC Dominance is Green (Dominance down). This indicates money is moving from BTC to Alts.
Volume Confirmation: Use the Volume row to confirm the strength of the move. A price rise without volume is often a fakeout.
Customization: You can adjust the table position and text size from the settings menu to fit your screen setup.
Pi Cycle Z-ScorePi Cycle Z-Score
The Pi Cycle Top Indicator uses the 111 day moving average (111DMA) and a newly created multiple of the 350 day moving average, the 350DMA x 2 (the multiple is of the price values of the 350DMA, not the number of days). For the past three market cycles, when the 111DMA moves up and crosses the 350DMA x 2 we see that it coincides with the price of Bitcoin peaking. It is also interesting to note that 350 / 111 is 3.153, which is very close to Pi = 3.142, thus the name. Z-score analysis has been conducted to provide traders with a precise tool for identifying market extremes and potential reversions.
This indicator is calibrated on a weekly timeframe in order to give precise top and bottom signals for each cycle.
Features
The script compares the Z-score with customizable threshold levels to generate overbought and oversold levels. A Z-score exceeding the upper threshold suggests potential overbought conditions, while a Z-score below the lower threshold may indicate oversold conditions.
This script offers several customizable inputs, enabling traders to tailor the indicator to their preferences. The length determines the lookback period that the Z-score is calculated over. Traders can also adjust the thresholds to define the sensitivity of overbought and oversold conditions.
It has 10 available color schemes to choose from and the background coloring on the chart can be toggled on and off.
Practical Applications
This indicator is designed for traders who focus on identifying cycle extremes and potential mean reversion opportunities. By using Z-score analysis, this tool can be particularly effective for detecting points of overextension in the market, where a reversion to the mean is likely.
Detecting Overbought and Oversold Conditions: The Z-score measures how far the price has deviated from its norm, allowing traders to identify overbought or oversold conditions with precision.
Timing Market Reversals: The indicator provides early signals of potential market reversals by highlighting when the price has moved too far away from its average, helping traders anticipate reversion opportunities.
Puell Multiple Z-ScorePuell Multiple Z-Score
The Puell Multiple is calculated by dividing the total USD value of Bitcoin issued today (newly mined coins × BTC price) by the 365-day moving average of that daily issuance value. It shows how today's miner revenue compares to the past year's average. Z-score analysis has been conducted to provide traders with a precise tool for identifying market extremes and potential reversions.
This indicator is calibrated on a daily timeframe in order to give precise top and bottom signals for each cycle.
Features
The script compares the Z-score with customizable threshold levels to generate overbought and oversold levels. A Z-score exceeding the upper threshold suggests potential overbought conditions, while a Z-score below the lower threshold may indicate oversold conditions.
This script offers several customizable inputs, enabling traders to tailor the indicator to their preferences. The length determines the lookback period that the Z-score is calculated over. Traders can also adjust the thresholds to define the sensitivity of overbought and oversold conditions.
It has 10 available color schemes to choose from and the background coloring on the chart can be toggled on and off.
Practical Applications
This indicator is designed for traders who focus on identifying cycle extremes and potential mean reversion opportunities. By using Z-score analysis, this tool can be particularly effective for detecting points of overextension in the market, where a reversion to the mean is likely.
Detecting Overbought and Oversold Conditions: The Z-score measures how far the price has deviated from its norm, allowing traders to identify overbought or oversold conditions with precision.
Timing Market Reversals: The indicator provides early signals of potential market reversals by highlighting when the price has moved too far away from its average, helping traders anticipate reversion opportunities.
NUPL Z-ScoreNUPL Z-Score
The Net Unrealized Profit and Loss (NUPL) is an advanced on-chain indicator that is measured by subtracting the Realized Value from Market Value. Realized Value takes the price of each Bitcoin when it was last moved. It adds up all individual prices and takes an average. It multiplies that average price by the total number of coins in circulation. Market Value is the current price of Bitcoin multiplied by the number of coins in circulation. This gives us the NUPL which estimates the total paper profits/losses in Bitcoin held by investors. This indicator enhances this metric by normalizing it into a Z-score, and enabling customizable features for precision and visualization.
This indicator is calibrated on a weekly timeframe in order to give precise top and bottom signals for each cycle.
Features
The script compares the Z-score with customizable threshold levels to generate overbought and oversold levels. A Z-score exceeding the upper threshold suggests potential overbought conditions, while a Z-score below the lower threshold may indicate oversold conditions.
This script offers several customizable inputs, enabling traders to tailor the indicator to their preferences. The length determines the lookback period that the Z-score is calculated over. Traders can also adjust the thresholds to define the sensitivity of overbought and oversold conditions.
It has 10 available color schemes to choose from and the background coloring on the chart can be toggled on and off.
Practical Applications
This indicator is designed for traders who focus on identifying cycle extremes and potential mean reversion opportunities. By using Z-score analysis, this tool can be particularly effective for detecting points of overextension in the market, where a reversion to the mean is likely.
Detecting Overbought and Oversold Conditions: The Z-score measures how far the price has deviated from its norm, allowing traders to identify overbought or oversold conditions with precision.
Timing Market Reversals: The indicator provides early signals of potential market reversals by highlighting when the price has moved too far away from its average, helping traders anticipate reversion opportunities.






















