Global Liquidity IndexThis custom indicator provides a composite measure of global liquidity by combining key central bank balance sheet data with additional liquidity proxies. The script aggregates asset data from major economies—including the United States, Japan, China, and the Eurozone—converting non-USD values into U.S. dollars using real-time exchange rates. It then subtracts selected liability measures (such as reverse repurchase agreements and other adjustments) to approximate net central bank liquidity.
Key features include:
• Multi-Regional Coverage:
Incorporates data from the U.S. Federal Reserve, Bank of Japan, Chinese central bank proxies, and the European Central Bank, allowing you to gauge liquidity across major global markets.
• Dynamic Currency Conversion:
Uses live exchange rates (JPY/USD, CNY/USD, EUR/USD) to ensure that all regional figures are consistently expressed in U.S. dollars.
• Customizable Weighting:
Assign adjustable weights to each region’s data, so you can reflect economic size or your own view of their relative importance.
• Additional Liquidity Proxies:
Optionally integrates measures for global money supply and global credit/repo activity (or other proxies of your choice) with user-defined scaling factors.
• User-Friendly Configuration:
All key parameters—including weights and scaling factors—are available as inputs, making the indicator flexible and easy to tailor to your analysis needs.
This indicator is designed for traders and analysts seeking a broad view of global monetary conditions. Whether you’re tracking shifts in central bank policies or assessing global market liquidity, the Global Liquidity Index provides an insightful, customizable tool to help you visualize and interpret liquidity trends over time.
基本面分析
US vs EU Interest Rate SpreadThis script plots the difference (Spread) between the US-Interest Rate (Symbol USINTR) and the EU Interest Rate (Symbol: EUINTR) and plots it in a seperate pane. Areas where the background is green are times were the spread was positive (US interest rate higher than EU interest rate), a red background indicates a higher EU interest rate than US interest rate.
Blockchain Fundamentals: Global LiquidityGlobal Liquidity Indicator Overview
This indicator provides a comprehensive technical analysis of liquidity trends by deriving a Global Liquidity metric from multiple data sources. It applies a suite of technical indicators directly on this liquidity measure, rather than on price data. When this metric is expanding Bitcoin and crypto tends to bullish conditions.
Features:
1. Global Liquidity Calculation
Data Integration: Combines multiple market data sources using a ratio-based formula to produce a unique liquidity measure.
Custom Metric: This liquidity metric serves as the foundational input for further technical analysis.
2. Timeframe Customization
User-Selected Period: Users can select the data timeframe (default is 2 months) to ensure consistency and flexibility in analysis.
3. Additional Technical Indicators
RSI, Momentum, ROC, MACD, and Stochastic:
Each indicator is computed using the Global Liquidity series rather than price.
User-selectable toggles allow for enabling or disabling each individual indicator as desired.
4. Enhanced MACD Visualization
Dynamic Histogram Coloring:
The MACD histogram color adjusts dynamically: brighter hues indicate rising histogram values while darker hues indicate falling values.
When the histogram is above zero, green is used; when below zero, red is applied, offering immediate visual insight into momentum shifts.
Conclusion
This indicator is an enlightening tool for understanding liquidity dynamics, aiding in macroeconomic analysis and investment decision-making by highlighting shifts in liquidity conditions and market momentum.
Turtle Soup Model [PhenLabs]📊 Turtle Soup Model
Version: PineScript™ v6
Description
The Turtle Soup Model is an innovative technical analysis tool that combines market structure analysis with inter-market comparison and gap detection. Unlike traditional structure indicators, it validates market movements against a comparison symbol (default: ES1!) to identify high-probability trading opportunities. The indicator features a unique “soup pattern” detection system, comprehensive gap analysis, and real-time structure breaks visualization.
Innovation Points:
First indicator to combine structure analysis with gap detection and inter-market validation
Advanced memory management system for efficient long-term analysis
Sophisticated pattern recognition with multi-market confirmation
Real-time structure break detection with comparative validation
🔧 Core Components
Structure Analysis: Advanced pivot detection with inter-market validation
Gap Detection: Sophisticated gap identification and classification system
Inversion Patterns: “Soup pattern” recognition for reversal opportunities
Visual System: Dynamic rendering of structure levels and gaps
Alert Framework: Multi-condition notification system
🚨 Key Features 🚨
The indicator provides comprehensive analysis through:
Structure Levels: Validated support and resistance zones
Gap Patterns: Identification of significant market gaps
Inversion Signals: Detection of potential reversal points
Real-time Comparison: Continuous inter-market analysis
Visual Alerts: Dynamic structure break notifications
📈 Visualization
Structure Lines: Color-coded for highs and lows
Gap Boxes: Visual representation of gap zones
Inversion Patterns: Clear marking of potential reversal points
Comparison Overlay: Inter-market divergence visualization
Alert Indicators: Visual signals for structure breaks
💡Example
📌 Usage Guidelines
The indicator offers multiple customization options:
Structure Settings:
Pivot Period: Adjustable for different market conditions
Comparison Symbol: Customizable reference market
Visual Style: Configurable colors and line widths
Gap Analysis:
Signal Mode: Choice between close and wick-based signals
Box Rendering: Automatic gap zone visualization
Middle Line: Reference point for gap measurements
✅ Best Practices:
🚨Use comparison symbol from related market🚨
Monitor both structure breaks and gap inversions
Combine signals for higher probability trades
Pay attention to inter-market divergences
⚠️ Limitations
Requires comparison symbol data
Performance depends on market correlation
Best suited for liquid markets
What Makes This Unique
Inter-market Validation: Uses comparison symbol for signal confirmation
Gap Integration: Combines structure and gap analysis
Soup Pattern Detection: Identifies specific reversal patterns
Dynamic Structure Management: Automatically updates and removes invalid levels
Memory-Efficient Design: Optimized for long-term chart analysis
🔧 How It Works
The indicator processes market data through three main components:
1. Structure Analysis:
Detects pivot points with comparison validation
Tracks structure levels with array management
Identifies and processes structure breaks
2. Gap Analysis:
Identifies significant market gaps
Processes gap inversions
Manages gap zones visualization
3. Pattern Recognition:
Detects “soup” patterns
Validates with comparison market
Generates structure break signals
💡 Note: The indicator performs best when used with correlated comparison symbols and appropriate timeframe selection. Its unique inter-market validation system provides additional confirmation for traditional structure-based trading strategies.
Interest Rate & CPI Differential By King OsamaINTEREST RATE & CPI Differential Indicator By King Osama
A must-have tool for forex traders and macro analysts, this indicator tracks interest rate differentials, real interest rate gaps, and CPI (inflation) differences to provide a fundamental edge in trading.
Key Features:
✅ Interest Rate Differential (Rate Diff) – Measures the gap between base and quote currency interest rates. Higher rates attract capital, influencing currency strength. Ideal for carry trade opportunities.
✅ Real Interest Rate Differential (Real Rate Diff) – Adjusts interest rates for inflation (CPI) to reflect the true return on holding a currency. A more accurate indicator of long-term strength.
✅ CPI Differential (CPI Diff) – Compares inflation rates between two economies, helping traders anticipate central bank actions (rate hikes/cuts) based on inflation trends.
✅ Dynamic Table & Bias Signals – Clear LONG/SHORT indications, historical tracking, and real-time updates for macro-driven forex decisions.
🔹 Perfect for swing traders combining fundamentals with technicals! 🚀
Cross Market Ratio with Time DelayEnglish Description
Cross Market Ratio with Time Delay
This indicator computes the ratio between two market prices, where Ticker 1 is taken from the current chart and Ticker 2 is specified via the settings (for example, NYMEX:CL1! for crude oil). It features a configurable time delay (in days) for Ticker 2, making it ideal for analyzing cross-market relationships with a lag effect.
Key features include:
• Time Delay & Bars per Day: Apply a delay to Ticker 2’s price (calculated as delayDays × barsPerDay) so that you can study historical relationships between the two markets.
• Smoothing Options: Choose between SMA and EMA to smooth the ratio over a defined Evaluation Period. This helps reduce noise and highlight underlying trends.
• Z‑Score Calculation: The indicator calculates a z‑score based on the standard deviation of the ratio. This measures how many standard deviations the current ratio deviates from its moving average.
• Scaled Index: The z‑score is converted into a scaled index where 50 represents the average, and each standard deviation corresponds to 10 index points. The index is clamped between 0 and 100.
• Dynamic Normalization (Optional): When enabled, the indicator re‐scales the index dynamically over a chosen period to adapt to recent market conditions.
• Visual Aids: Horizontal reference lines at 70 (indicating potential overvaluation) and 30 (indicating potential undervaluation) are displayed. Optionally, you can also plot the raw ratio and the z‑score for deeper insight.
• Ticker Labels: Both ticker symbols are displayed on the chart (with an adjustable offset) to keep you informed about the instruments being compared.
This tool is especially useful for traders looking to explore inter-market dynamics and to identify potential divergences or shifts in relative performance.
Deutsche Beschreibung
Cross Market Ratio with Time Delay
Dieser Indikator berechnet das Verhältnis zwischen den Preisen zweier Märkte, wobei Ticker 1 aus dem aktuellen Chart übernommen wird und Ticker 2 in den Einstellungen frei wählbar ist (zum Beispiel NYMEX:CL1! für Öl). Dank eines einstellbaren Zeitversatzes (in Tagen) für Ticker 2 eignet er sich hervorragend zur Analyse marktübergreifender Zusammenhänge mit Verzögerungseffekt.
Wichtige Funktionen im Überblick:
• Zeitversatz & Balken pro Tag: Wenden Sie einen Zeitversatz auf den Preis von Ticker 2 an (berechnet als delayDays × barsPerDay), um historische Beziehungen zwischen den beiden Märkten zu untersuchen.
• Glättungsmethoden: Wählen Sie zwischen SMA und EMA, um das Verhältnis über einen definierten Evaluationszeitraum zu glätten. Dies reduziert das Rauschen und hebt die zugrunde liegenden Trends hervor.
• Berechnung des Z‑Scores: Der Indikator ermittelt den z‑Score basierend auf der Standardabweichung des Verhältnisses. Dieser zeigt an, um wie viele Standardabweichungen der aktuelle Wert vom gleitenden Durchschnitt abweicht.
• Skalierter Index: Der z‑Score wird in einen Index umgerechnet, bei dem 50 dem Durchschnitt entspricht und jede Standardabweichung 10 Indexpunkte ausmacht. Der Index wird dabei auf einen Bereich von 0 bis 100 begrenzt.
• Dynamische Normalisierung (Optional): Bei Aktivierung passt der Indikator den Index dynamisch über einen festgelegten Zeitraum an die aktuellen Marktbedingungen an.
• Visuelle Unterstützung: Horizontale Referenzlinien bei 70 (potenzielle Überbewertung) und 30 (potenzielle Unterbewertung) werden angezeigt. Zusätzlich können Sie optional den Rohwert des Ratios und den z‑Score mitplotten.
• Ticker-Labels: Beide Ticker-Symbole werden im Chart (mit einstellbarem Versatz) angezeigt, sodass Sie stets wissen, welche Instrumente verglichen werden.
Dieser Indikator eignet sich besonders für Trader, die intermarktliche Dynamiken analysieren und potenzielle Divergenzen oder Veränderungen in der relativen Performance frühzeitig erkennen möchten.
Precious Metals & GSR (Zeiierman)█ Overview
The Precious Metals & GSR (Zeiierman) is designed to provide traders and investors with a comprehensive view of the Gold-Silver Ratio (GSR) and other precious metal relationships. This tool helps evaluate the relative strength between different metals by analyzing their price ratios over historical periods, using quantile-based analysis and trend interpretation tables to highlight key insights.
The Gold-Silver Ratio (GSR) is a widely utilized metric in precious metals trading, representing the number of silver ounces required to purchase one ounce of gold. Historically, this ratio has fluctuated, providing traders with insights into the relative value of these two metals. By analyzing the GSR, traders can identify potential trading opportunities based on historical patterns and market dynamics.
By integrating customizable percentile bands, gradient coloring for performance visualization, and dynamic ratio analysis, this indicator assists in understanding how one metal is performing relative to another, making it useful for trend tracking, risk management, and portfolio allocation.
█ How It Works
The Precious Metals & GSR Indicator operates by fetching the latest prices of the selected precious metals in the user's chosen currency. It then calculates the ratio between two selected metals (Metal 1 and Metal 2) and analyzes this ratio over a specified period. By computing quantile bands and high/low bands, the indicator provides insights into the historical performance and current standing of the ratio.
⚪ Ratio Calculation
The core of this indicator is the metal ratio, calculated by dividing the price of Metal 1 by Metal 2.
A rising ratio means Metal 1 is outperforming Metal 2.
A falling ratio means Metal 2 is outperforming Metal 1.
The indicator automatically retrieves live market prices of Gold, Silver, Platinum, and Palladium to compute the ratio.
⚪ Quantile Ratio Bands
The indicator calculates the highest (max) and lowest (min) ratio levels over a user-defined period.
It also plots quantile bands at the 10th, 25th, 50th (median), 75th, and 90th percentiles, providing deeper statistical insights into how extreme or average the current ratio is.
The median (Q50) acts as a reference level, showing whether the ratio is above or below its historical midpoint.
⚪ Interpretation Table
The Ratio Interpretation Table provides a text-based summary of the ratio’s strength.
It detects whether Metal 1 is at a historical high, low, or within common ranges.
This helps traders and investors make informed decisions on whether the ratio is overextended, mean-reverting, or trending.
⚪ Precious Metals Table
Displays live market prices for Gold, Silver, Platinum, and Palladium.
Prices are shown in different units (oz, kg, grams, and troy ounces) based on user preferences.
A color-coded system highlights price changes, making it easier to track market movements.
⚪ Physical Holding Calculator
Users can enter their precious metal holdings to estimate their current value.
The system adjusts calculations based on weight, purity (24K, 22K, etc.), and unit of measurement.
The holding value is displayed in the selected currency (USD, EUR, GBP, etc.).
█ How to Use
⚪ Trend Identification
If the ratio is increasing, Metal 1 is gaining strength relative to Metal 2 → Possible Long Position on Metal 1 / Short on Metal 2
If the ratio is decreasing, Metal 2 is gaining strength relative to Metal 1 → Possible Short Position on Metal 1 / Long on Metal 2
⚪ Mean Reversion Strategy
When the ratio reaches the 90th percentile, Metal 1 is historically overextended (expensive) compared to Metal 2.
Traders may look to sell Metal 1 and buy Metal 2, expecting the ratio to decline back toward its historical average.
Example (Gold/Silver Ratio): If the GSR is above the 90th percentile, gold is very expensive relative to silver, suggesting a potential buying opportunity in silver and/or a selling opportunity in gold.
When the ratio reaches the 10th percentile, Metal 1 is historically undervalued (cheap) compared to Metal 2.
Traders may look to buy Metal 1 and sell Metal 2, expecting the ratio to rise back toward its historical average.
Example (Gold/Silver Ratio): If the GSR is below the 10th percentile, gold is very cheap relative to silver, suggesting a potential buying opportunity in gold and/or a selling opportunity in silver.
⚪ Common Strategy Based on GSR Insights
A common approach involves monitoring the ratio for extreme values based on historical data. When the ratio reaches historically high levels, it suggests that gold is expensive relative to silver, potentially indicating a buying opportunity for silver and/or a selling opportunity for gold. Conversely, when the ratio is at historically low levels, silver is expensive relative to gold, suggesting a potential buying opportunity for gold and/or selling opportunity for silver. This mean-reversion strategy relies on the tendency of the GSR to return to its historical average over time.
⚪ Hedging & Portfolio Diversification
If Gold is strongly outperforming Silver, investors may shift allocations to balance risk.
If Silver is rapidly gaining on Gold, it may indicate increased industrial demand or speculative interest.
⚪ Inflation & Economic Cycles
A rising Gold-Silver ratio often correlates with economic downturns and increased risk aversion.
A falling Gold-Silver ratio may signal stronger economic growth and higher inflation expectations.
█ Settings
Precious Metals Table
Select which metals to display (Gold, Silver, Platinum, Palladium)
Choose measurement units (oz, kg, grams, troy ounces)
Ratio Analysis
Select Metal 1 & Metal 2 for ratio calculation
Set historical length for quantile calculations
Interpretation Table
Enable automated insights based on ratio levels
Physical Holdings Calculator
Enter metal weight, purity, and unit
Select calculation currency
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Simple Time-Based Strategy(Price Action Hypothesis)Core Theory: Trend Continuation Pattern Recognition**
1. **Price Action Hypothesis**
The strategy is built on the assumption that consecutive price movements (3-bar patterns) indicate momentum continuation:
- *Long Pattern*: Three consecutive higher closes combined with ascending highs
- *Short Pattern*: Three consecutive lower closes combined with descending lows
This reflects a belief that sustained directional price movement creates self-reinforcing trends that can be captured through simple pattern recognition.
2. **Time-Based Risk Management**
Implements a dynamic exit mechanism:
- *Training Phase*: 5-bar holding period (quick turnover)
- *Testing Phase*: 10-bar holding period (extended exposure)
This dual timeframe approach suggests the hypothesis that market conditions may require different holding durations in different market eras.
3. **Adaptive Market Hypothesis**
The structure incorporates two distinct phases:
- *Training Period (11 years)*: Pattern recognition without stop losses
- *Testing Period*: Pattern recognition with stop losses
This assumes markets may change character over time, requiring different risk parameters in different epochs.
4. **Asymmetric Risk Control**
Implements stop-losses only in the testing phase:
- Fixed 500-pip (point) stop distance
- Activated post-training period
This reflects a belief that historical patterns might need different risk constraints than real-time trading.
5. **Dual-Path Validation**
The split between training/testing phases suggests:
- Pattern validity should first be confirmed without protective stops
- Real-world implementation requires added risk constraints
6. **Market Efficiency Paradox**
The simultaneous use of both long/short entries assumes:
- Markets exhibit persistent inefficiencies
- These inefficiencies manifest differently in bullish/bearish conditions
- A symmetric approach can capture opportunities in both directions
7. **Behavioral Finance Elements**
The 3-bar pattern recognition potentially exploits:
- Herd mentality in trend formation
- Delayed reaction to price momentum
- Cognitive bias in trend confirmation
8. **Quantitative Time Segmentation**
The annual-based period division (training vs testing) implies:
- Market cycles operate on multi-year timeframes
- Strategy robustness requires validation across different market regimes
- Parameter sensitivity needs temporal validation
This strategy combines elements of technical pattern recognition, temporal adaptability, and phased risk management to create a systematic approach to trend exploitation. The theoretical framework suggests markets exhibit persistent but evolving patterns that can be systematically captured through rule-based execution.
Prev Day & Curr Day H/L + Opening Range (9:30, 5min)Script Description:
This TradingView Pine Script is designed for use on a 5‑minute chart and plots key price levels for daily trading analysis. It automatically draws:
• Previous Day High/Low Lines:
These lines mark the previous day’s regular trading hours (RTH) high and low levels, with labels (“PDH” and “PDL”) for easy identification.
• Current Day High/Low Lines:
As the trading day progresses, the script updates and displays the current day’s RTH high and low levels, labeled as “CDH” and “CDL”.
• Opening Range for 9:30 AM:
The script specifically identifies the first 5‑minute candle at 9:30 AM (using the “America/New_York” time zone) and draws two additional lines at its high and low. These lines are labeled “HighOpen” and “LowOpen” to indicate the opening range.
All lines are drawn with a width of 5 and have configurable colors, styles, and extension lengths. The script automatically resets at the start of each new day, ensuring that the plotted levels are current and relevant for daily trading decisions.
Draw on Liquidity [PhenLabs]📊 Draw on Liquidity (DOL) Indicator
Version: PineScript™ v6
Description
The Draw on Liquidity (DOL) indicator is an advanced technical analysis tool designed to identify and visualize significant liquidity zones in the market. It combines volume analysis, pivot point detection, and real-time proximity alerts to help traders identify potential support and resistance levels where significant trading activity occurs. The indicator features dual display modes, adaptive volume thresholds, and a comprehensive real-time dashboard.
🔧 Components
• Liquidity Detection: Advanced pivot point analysis with volume validation
• Volume Analysis: Adaptive volume threshold system
• Display Modes: Historical and Current visualization options
• Proximity Detection: Real-time price-to-level distance monitoring
• Visual Dashboard: Dynamic status display with alert system
🚨 Important Dashboard Features 🚨
The dashboard provides real-time information about:
• High Draw Zones: Resistance levels with significant liquidity
• Low Draw Zones: Support levels with high trading activity
• Current Price: Real-time price monitoring
• Active Alerts: Proximity warnings when price approaches liquidity zones
📈 Visualization
• Historical Mode: Displays all past and present liquidity zones
• Current Mode: Shows only active, unhit liquidity levels
• Color-coded lines: Blue for high liquidity, Red for low liquidity
• Dynamic line extension: Updates with price movement
• Alert indicators: Visual signals when price approaches zones
Historical Visualization
Current Visualization
📌 Usage Guidelines
The indicator is highly customizable with several key parameters:
Pivot Settings:
• Shorter lengths (3-7): More frequent zones, suitable for scalping
• Longer lengths (7-15): Major zones, better for swing trading
Volume Analysis:
• Lower multiplier (1.5-2.0): More zones, higher sensitivity
• Higher multiplier (2.0-3.0): Major zones only, reduced noise
✅ Best Practices:
• Start with default settings and adjust based on timeframe
• Use Historical mode for analysis, Current mode for active trading
• Monitor dashboard alerts for potential trade setups
• Combine with trend analysis for better entry/exit points
⚠️ Limitations
• Requires sufficient volume data for accurate analysis
• Performance varies with market volatility
• Historical mode may become visually cluttered on longer timeframes
• Best performance during regular market hours
What Makes This Unique
• Dual Display System: Choose between historical analysis and current trading modes
• Volume-Validated Zones: Only marks levels with significant trading activity
• Real-time Proximity Alerts: Dynamic warnings when approaching liquidity zones
• Adaptive Threshold System: Automatically adjusts to market conditions
• Comprehensive Dashboard: All-in-one view of current market status
🔧 How It Works
The indicator processes market data through three main components:
1. Liquidity Detection (40% weight):
• Identifies pivot points using customizable lookback periods
• Validates levels with volume analysis
• Marks significant zones based on combined criteria
2. Volume Analysis (40% weight):
• Calculates dynamic volume thresholds
• Compares current volume to moving average
• Filters out low-volume noise
3. Proximity Analysis (20% weight):
• Monitors price distance to active zones
• Triggers alerts based on customizable thresholds
• Updates dashboard status in real-time
💡 Note: For optimal results, combine with price action analysis and consider using multiple timeframes for confirmation. The indicator performs best in markets with consistent volume and clear trend structure.
Market Cap & Volume Tracker with TrendsMarket Cap & Volume Tracker with Trends
This indicator provides a compact, at-a-glance view of key market data directly on your chart, specifically focusing on Market Cap, Volume, and Volume Trends over various time intervals. It helps traders and investors monitor price action and volume shifts in real-time.
Key Features:
Market Cap: Displays the market capitalization of the selected asset, calculated as the Close Price multiplied by Volume, and formatted in Millions (M).
Volume Data: Shows the volume for:
Pre-market (the volume before the main market session starts)
Current Volume (real-time volume during the current session)
After-hours Volume (volume traded after the market closes)
All volumes are formatted in Thousands (K) for easy readability.
Volume Trends: Monitors volume movement across multiple time intervals:
15-Minutes
30-Minutes
45-Minutes
1 Hour
The indicator tracks whether the volume is Increasing or Decreasing in each of these time frames to help identify trends and potential market shifts.
Customization:
Easily adjustable colors for the table background, text, and header for clear visibility and user preferences.
Option to choose the display position of the table (top or bottom right corner).
Use Case:
This indicator is ideal for traders who want quick insights into the market's activity without the need to look at multiple charts or external data points. It helps spot volume changes and trends over various time frames and supports decision-making for entries, exits, and overall market sentiment.
Macro-Sentiment Index Model (MSIM)Macro-Sentiment Index Model (MSIM) is a comprehensive trading strategy developed to analyze and interpret the broader macroeconomic and market sentiment. The strategy integrates various quantitative signals, including market volatility, trading volume, market breadth, and economic indicators, to assess the prevailing mood in the financial markets. This sentiment analysis is then used to guide trading decisions, helping identify optimal entry and exit points based on underlying market conditions. The model is specifically designed to capture the shifts in investor sentiment, which have been shown to significantly influence market behavior (Fleming et al., 2001).
The MSIM utilizes a multi-faceted approach to measure sentiment. Drawing from the theory that macroeconomic variables can influence financial markets (Stock & Watson, 2002), the strategy incorporates market volatility (VIX), volume measures, and long-term market trends. These indicators help form a robust view of the market’s risk appetite and potential for price movement. For instance, high volatility often signals increased market uncertainty (Bollerslev, 1986), while volume-based indicators provide insights into investor conviction (Chen, 1991).
Additionally, the model incorporates macroeconomic proxies like GDP growth, interest rates, and unemployment data, leveraging the findings of macroeconomic studies that indicate a direct correlation between these factors and market performance (Hamilton, 1994). By normalizing these economic indicators, the model provides a standardized sentiment score that reflects the aggregated impact of these factors on the market’s outlook.
The MSIM aims to exploit market inefficiencies by responding to shifts in sentiment before they manifest in price movements. Studies have shown that sentiment indicators, such as the Advance-Decline Line and the Stock-Bond Ratio, can be predictive of future price movements (Neely, 2010). The model integrates these indicators into a single composite sentiment score, which is then filtered through momentum signals to refine entry points. This approach is grounded in behavioral finance theory, which suggests that investor sentiment plays a crucial role in driving asset prices, sometimes beyond the reach of fundamental data alone (Shiller, 2000).
The strategy is designed to identify long opportunities when sentiment is particularly favorable, with a focus on minimizing risk during adverse conditions. By analyzing market trends alongside macroeconomic signals, the MSIM helps traders stay aligned with the prevailing market forces.
References:
• Bollerslev, T. (1986). Generalized autoregressive conditional heteroskedasticity. Journal of Econometrics, 31(3), 307-327.
• Chen, S. S. (1991). The determinants of stock market liquidity. Journal of Financial and Quantitative Analysis, 26(3), 283-305.
• Fleming, M. J., Kirby, C. W., & Ostdiek, B. (2001). The economic value of volatility timing. Journal of Financial and Quantitative Analysis, 36(1), 113-134.
• Hamilton, J. D. (1994). Time series analysis. Princeton University Press.
• Neely, C. J. (2010). The behavior of exchange rates: A survey of recent empirical literature. International Finance Discussion Papers, 981.
• Shiller, R. J. (2000). Irrational Exuberance. Princeton University Press.
• Stock, J. H., & Watson, M. W. (2002). Macroeconomic forecasting using diffusion indexes. Journal of Business & Economic Statistics, 20(2), 147-162.
QoQ Economic & Financial Indicator ChangesA straightforward indicator for analyzing quarter-over-quarter (QoQ) percentage changes in economic and financial data series. Perfect for visualizing dynamic changes in:
Economic Indicators (GDP, House Price Indices, Employment Figures)
Company Financial Metrics (Revenue, EPS, Operating Margins)
Balance Sheet Items (Assets, Liabilities, Equity)
Cash Flow Statement Components
Other Quarterly Economic & Financial Data
Features:
Automatically calculates QoQ percentage changes
Color-coded visualization (green for positive, red for negative changes)
Displays exact percentage values
Includes adjustable scale factor for different data series
Zero line reference for easy trend identification
Earnings Expansion ProjectionThis indicator has no counterpart in the platform and is a professional-grade earnings visualization tool that plots EPS expansion directly on your charts, inspired by institutional-level technical analysis platforms.
The indicator creates a distinctive earnings expansion projection curve that can be a leading indicator of price direction moves.
Key features:
Clean, institutional-style, EPS-expansion projection line overlaid on price action
Visual earnings surprise indicators with beat/miss multipliers
Dashboard for rapid fundamental assessment including the stocks win rate on beatings / missing earnings historically and other fundamental information not readily available on Tradingview
What is it doing?
It collects all earnings results available and will interpolate the numbers so that we see earnings expansion as a curve.
The video below describes usage
Note: Valid on the weekly time-frame only.
Global M2 Index Percentage### **Global M2 Index Percentage**
**Description:**
The **Global M2 Index Percentage** is a custom indicator designed to track and visualize the global money supply (M2) in a normalized percentage format. It aggregates M2 data from major economies (e.g., the US, EU, China, Japan, and the UK) and adjusts for exchange rates to provide a comprehensive view of global liquidity. This indicator helps traders and investors understand the broader macroeconomic environment, identify trends in money supply, and make informed decisions based on global liquidity conditions.
---
### **How It Works:**
1. **Data Aggregation**:
- The indicator collects M2 data from key economies and adjusts it using exchange rates to calculate a global M2 value.
- The formula for global M2 is:
\
2. **Normalization**:
- The global M2 value is normalized into a percentage (0% to 100%) based on its range over a user-defined period (default: 13 weeks).
- The formula for normalization is:
\
3. **Visualization**:
- The indicator plots the M2 Index as a line chart.
- Key reference levels are highlighted:
- **10% (Red Line)**: Oversold level (low liquidity).
- **50% (Black Line)**: Neutral level.
- **80% (Green Line)**: Overbought level (high liquidity).
---
### **How to Use the Indicator:**
#### **1. Understanding the M2 Index:**
- **Below 10%**: Indicates extremely low liquidity, which may signal economic contraction or tight monetary policy.
- **Above 80%**: Indicates high liquidity, which may signal loose monetary policy or potential inflationary pressures.
- **Between 10% and 80%**: Represents a neutral to moderate liquidity environment.
#### **2. Trading Strategies:**
- **Long-Term Investing**:
- Use the M2 Index to assess global liquidity trends.
- **High M2 Index (e.g., >80%)**: Consider investing in risk assets (stocks, commodities) as liquidity supports growth.
- **Low M2 Index (e.g., <10%)**: Shift to defensive assets (bonds, gold) as liquidity tightens.
- **Short-Term Trading**:
- Combine the M2 Index with technical indicators (e.g., RSI, MACD) for timing entries and exits.
- **M2 Index Rising + RSI Oversold**: Potential buying opportunity.
- **M2 Index Falling + RSI Overbought**: Potential selling opportunity.
#### **3. Macroeconomic Analysis**:
- Use the M2 Index to monitor the impact of central bank policies (e.g., quantitative easing, rate hikes).
- Correlate the M2 Index with inflation data (CPI, PPI) to anticipate inflationary or deflationary trends.
---
### **Key Features:**
- **Customizable Timeframe**: Adjust the lookback period (e.g., 13 weeks, 26 weeks) to suit your trading style.
- **Multi-Economy Data**: Aggregates M2 data from the US, EU, China, Japan, and the UK for a global perspective.
- **Normalized Output**: Converts raw M2 data into an easy-to-interpret percentage format.
- **Reference Levels**: Includes key levels (10%, 50%, 80%) for quick analysis.
---
### **Example Use Case:**
- **Scenario**: The M2 Index rises from 49% to 62% over two weeks.
- **Interpretation**: Global liquidity is increasing, potentially due to central bank stimulus.
- **Action**:
- **Long-Term**: Increase exposure to equities and commodities.
- **Short-Term**: Look for buying opportunities in oversold assets (e.g., RSI < 30).
---
### **Why Use the Global M2 Index Percentage?**
- **Macro Insights**: Understand the broader economic environment and its impact on financial markets.
- **Risk Management**: Identify periods of high or low liquidity to adjust your portfolio accordingly.
- **Enhanced Timing**: Combine with technical analysis for better entry and exit points.
---
### **Conclusion:**
The **Global M2 Index Percentage** is a powerful tool for traders and investors seeking to incorporate macroeconomic data into their strategies. By tracking global liquidity trends, this indicator helps you make informed decisions, whether you're trading short-term or planning long-term investments. Add it to your TradingView charts today and gain a deeper understanding of the global money supply!
---
**Disclaimer**: This indicator is for informational purposes only and should not be considered financial advice. Always conduct your own research and consult with a professional before making investment decisions.
Auto Last Earnings AVWAP
This script provides an automated approach to tracking critical post-earnings price levels. You can add it to a chart and then flip through your watchlist to see the anchored AVWAPs without the need to do it manually one by one.
Core Features:
Automatically detects earnings dates and anchors VWAP calculations without manual input
Calculates volume-weighted average price specifically from the last earnings release
Identifies and visualizes significant earnings gaps between reporting periods
Volume-Based Signal Detection:
Monitors VWAP crosses with volume confirmation (requires 1.5x normal volume)
Labels high-volume breakouts with clear directional signals
Uses a 6-bar adaptive volume baseline to filter out noise
Practical Applications:
AVWAP anchored at earnings offers a great price support level that should be considered when deciding to buy/sell the stock. This script eliminates manual VWAP anchoring and reduces chart management time
Key Differentiators:
First note: coding VWAP anchoring in pine is more challenging that one would think. The source code is open to help other users and hopefully inspire different applications.
No need to manually anchor the VWAP
Draws earnings gap from earnings to earnings (if auto mode)
Detects breakouts through the AVWAP line
O'Neil Earnings StabilityO'Neil Earnings Stability Indicator
This indicator implements William O'Neil's earnings stability analysis, a key factor in identifying high-quality growth stocks. It measures both earnings stability (1-99 scale) and growth rate.
Scale Interpretation:
• 1-25: Highly stable earnings (ideal)
• 26-30: Moderately stable
• >30: More cyclical/less dependable
The stability score is calculated by measuring deviations from the earnings trend line, with lower scores indicating more consistent growth. Combined with the annual growth rate (target ≥25%), this helps identify stocks with both steady and strong earnings growth.
Optimal Criteria:
✓ Stability Score < 25
✓ Annual Growth > 25%
This tool helps filter out stocks with erratic earnings patterns and identify those with proven, sustainable growth records. Green label indicates both criteria are met; red indicates one or both criteria failed."
Would you like me to modify any part of this description or add more details about specific aspects of the calculation?
The key concepts in these calculations:
Stability Score (1-99 scale):
Lower score = more stable
Takes average deviation from mean earnings
Uses logarithmic scaling to emphasize smaller deviations
Multiplies by 20 to get into 1-99 range
Score ≤ 25 meets O'Neil's criteria
Growth Rate:
Year-over-year comparison (current quarter vs same quarter last year)
Calculated as percentage change
Growth ≥ 25% meets O'Neil's criteria
O'Neil's Combined Criteria:
Stability Score should be ≤ 25 (indicating stable earnings)
Growth Rate should be ≥ 25% (indicating strong growth)
Both must be met for ideal conditions
Short Int. Tracker W/% inc/decShort Interest Tracker with % Difference - Indicator Explanation
This Short Interest Tracker is designed to monitor short interest data and highlight potential trends based on the relationship between short interest and the stock price. It calculates the percentage difference between the current short interest and the 2-day simple moving average (SMA), helping identify whether short interest is increasing or decreasing over time.
Key Functions:
Short Interest Tracking:
The indicator tracks daily short interest data using FINRA's short volume data for the current stock (e.g., FINRA:SYMBOL_SHORT_VOLUME).
It compares current short interest with a 2-day SMA to assess if short interest is rising or falling. This helps identify whether more traders are betting against the stock or covering their positions.
Visual Display:
The data is displayed in a table on the chart, divided into sections for:
1 Day Short Interest
Last 3 Days Short Interest
Weekly Short Interest
Each section shows the short interest volume, the corresponding SMA, and the percentage difference. It also displays a signal indicating if short interest is increasing, decreasing, or stable.
Signal Interpretation:
A "Stable" signal means that short interest is neither increasing nor decreasing.
An "Increasing" signal indicates that more traders are opening short positions, betting against the stock. OR- averaging their short position. Keep an eye for a price increase and a short int. increase, this could be the perfect storm.
A "Decreasing" signal shows that traders are closing their short positions, indicating reduced bearish sentiment.
Color Customization:
You can customize the colors for each section of the table, including the background and text colors, to make the display more visually appealing and suited to your preference.
Understanding Short Interest & Price Movements:
Short interest can be a powerful indicator of market sentiment. Here's what the data can tell you:
Increasing Short Interest: Typically signals that traders are expecting the stock price to fall. More shares are being borrowed and sold by short sellers, betting against the stock.
Price Rising Despite Increasing Short Interest: If short interest increases but the stock price is rising, it suggests that short sellers are attempting to push the price down but are failing as the market is moving in the opposite direction. This could be due to buying pressure from long investors or positive news.
Short Sellers Getting Trapped: In some cases, short sellers become trapped when the price rises despite their short positions. They may be forced to buy back shares to cover their positions, which further drives the price up. This dynamic can lead to a short squeeze, where the price rises rapidly as more shorts cover.
Potential for a Short Squeeze: When the price rises against increasing short interest, a short squeeze may occur, causing even more shorts to cover their positions, which can send the stock price soaring.
Summary:
This indicator provides insight into short interest trends, helping you identify whether more traders are betting against the stock or if short sellers are being forced to cover their positions. It also provides a visual signal on the chart, so you can quickly spot periods where short interest is increasing or decreasing, and where price movements might signal a potential short squeeze.
POA Volume TrackerCustomizable Volume Tracker Indicator
This custom TradingView indicator tracks and displays volume data across three key market sessions: Pre-Market, Open Market, and After-Hours. It is designed to give traders insights into the volume activity during these distinct trading periods, helping them make more informed decisions.
Key Features:
Pre-Market Volume (PMV): Shows the total volume of trades during the pre-market session.
Open Market Volume (OMV): Displays the total volume during regular market hours.
After-Hours Volume (AHV): Shows the total volume in the after-hours session.
All three values are displayed in an easy-to-read format, and the script includes the following customization options:
Adjustable Label Position: Choose between placing the label Above the current candle or to the Right side of the candle.
Customizable Offsets: Adjust the vertical and horizontal positioning of the label to suit your preferences.
Volume Formatting: The script automatically formats the volume values for easier readability, displaying large volumes with suffixes like "k" for thousands and "M" for millions.
Customization Options:
Text Size: Choose the size of the text used in the label.
Text and Background Colors: Adjust the color of the label text and background to match your chart style.
Positioning: Move the label up or down, and adjust how far to the right (or left) it appears next to the current candle.
Volume Formatting: Automatically formats volume values to be more readable (e.g., 1,250,000 becomes 1.25M).
This indicator is perfect for traders who want to keep track of volume data for different market sessions and adjust how that data is displayed on their charts in a clear and customizable manner.
How to Use:
Add this script to your chart, and choose your desired market session timeframes.
Use the input options to adjust the label’s position and appearance.
View the real-time volume data for Pre-Market, Open Market, and After-Hours, all in one place.
You wanna catch some gainz? pair this with the Market Cap indicator for some solid TA and catch some $ with the big boys.
SPY/TLT Strategy█ STRATEGY OVERVIEW
The "SPY/TLT Strategy" is a trend-following crossover strategy designed to trade the relationship between TLT and its Simple Moving Average (SMA). The default configuration uses TLT (iShares 20+ Year Treasury Bond ETF) with a 20-period SMA, entering long positions on bullish crossovers and exiting on bearish crossunders. **This strategy is NOT optimized and performs best in trending markets.**
█ KEY FEATURES
SMA Crossover System: Uses price/SMA relationship for signal generation (Default: 20-period)
Dynamic Time Window: Configurable backtesting period (Default: 2014-2099)
Equity-Based Position Sizing: Default 100% equity allocation per trade
Real-Time Visual Feedback: Price/SMA plot with trend-state background coloring
Event-Driven Execution: Processes orders at bar close for accurate backtesting
█ SIGNAL GENERATION
1. LONG ENTRY CONDITION
TLT closing price crosses ABOVE SMA
Occurs within specified time window
Generates market order at next bar open
2. EXIT CONDITION
TLT closing price crosses BELOW SMA
Closes all open positions immediately
█ ADDITIONAL SETTINGS
SMA Period: Simple Moving Average length (Default: 20)
Start Time and End Time: The time window for trade execution (Default: 1 Jan 2014 - 1 Jan 2099)
Security Symbol: Ticker for analysis (Default: TLT)
█ PERFORMANCE OVERVIEW
Ideal Market Conditions: Strong trending environments
Potential Drawbacks: Whipsaws in range-bound markets
Backtesting results should be analyzed to optimize the MA Period and EMA Filter settings for specific instruments
Combined RSI with SMA, ADX/DI, and Stochastic IndicatorHow to Use and Apply the Indicator
This indicator combines the **RSI with SMA**, **ADX/DI**, and **Stochastic Oscillator**, providing multiple perspectives for technical analysis. Here's how you can use and apply it effectively:
1. **RSI with SMA (Relative Strength Index with Simple Moving Average)**
- **Purpose**: Measures momentum and identifies overbought or oversold levels.
- **Features**:
- **RSI (14-period)**: Tracks momentum.
- **SMA (20-period)**: Smooths the RSI for trend clarity.
- **Visual Enhancements**:
- Dashed lines at user-defined levels (default: 55 and 45).
- Highlighted zones: Above 55 (green), below 45 (red).
- Fill between RSI and SMA to indicate convergence/divergence.
- **Usage**:
- **Overbought/Oversold**: Look for RSI crossing above 70 (overbought) or below 30 (oversold).
- **Trend Strength**: If RSI stays consistently above 50 (bullish) or below 50 (bearish).
- **Divergence**: When RSI and SMA move apart, consider it a potential signal of trend change.
2. **ADX and DI (Average Directional Index with Directional Indicators)**
- **Purpose**: Measures trend strength and direction.
- **Features**:
- **ADX (14-period)**: Shows trend strength (higher values indicate stronger trends).
- **+DI and -DI**: Represent bullish and bearish directional movements.
- **Color Coding**:
- **Green**: Bullish trend.
- **Red**: Bearish trend.
- **Orange**: Weak/no trend (when ADX is below the "range" level).
- **Dynamic Fill**: Highlights areas based on whether +DI > -DI or vice versa.
- **Usage**:
- **Strong Trend**: When ADX > 30, trend is strong.
- **Bullish/Bearish Bias**: Compare +DI and -DI:
- **+DI > -DI**: Bullish bias.
- **-DI > +DI**: Bearish bias.
- **Caution Zone**: If ADX < 15, avoid trading as the market lacks direction.
### 3. **Stochastic Oscillator**
- **Purpose**: Identifies overbought and oversold conditions.
- **Features**:
- Tracks %K (fast line) and %D (signal line) for crossovers.
- Highlights overbought (>80) and oversold (<20) regions.
- Fills between %K and %D for easy visualization of crossovers.
- **Usage**:
- **Overbought/Oversold**: Look for price reversals when %K crosses %D in these regions.
- **Entry Signals**:
- Buy: %K crosses above %D in the oversold region (<20).
- Sell: %K crosses below %D in the overbought region (>80).
- **Confirm Trends**: Combine with ADX or RSI to validate signals.
General Application:
1. **Setup**: Add this script to your chart in TradingView.
2. **Interpretation**:
- Use **RSI with SMA** to identify momentum and potential trend reversals.
- Confirm trend strength and direction with **ADX/DI**.
- Refine entries/exits with **Stochastic Oscillator**.
3. **Alerts**:
- Enable alerts for buy/sell signals in ADX/DI to avoid missing key moves.
4. **Risk Management**:
- Avoid trading during low ADX periods (<15) as the market lacks direction.
- Combine signals with support/resistance levels or price patterns for better accuracy.
By integrating these indicators, this script allows for a comprehensive market analysis to enhance your decision-making.
TTM FCFF Yield %An indicator that shows the Free Cash Flow yield daily for the underlying ticker. Useful for when you need to screen for ideas, or the news just broke out and you want to make a calculated purchase - rather than buying at whatever price it is at the moment.
Green line tracks daily Free Cash Flow yield to Enterprise Value.
Where Free Cash Flow is defined as = Cashflow from Operations + Depreciation and Amortization (from the income statement) - Capital Expenditure (fixed assets) - Change in Working Capital
And where Enterprise Value is defined as = Market Capitalization + Net Debt
Red line tracks Free Cash Flow of financial year and what FCFF yield does that equate to if the stock current trades at the price right now.
Reminder: When working with international equities. Be mindful of whether they report FQ or FH. For example, France only reports FH, so it's better to use TTM FHFree Cash Flow results. If you didn't toggle FH in the indicator settings, it will automatically set as FQ and it will not show anything.
GLHF
Net Unrealized Profit Loss | JeffreyTimmermansNet Unrealized Profit Loss (NUPL)
The "Net Unrealized Profit Loss" (NUPL) indicator is a highly regarded tool for assessing Bitcoin investor sentiment by analyzing the relationship between Market Value and Realized Value. This Pine Script implementation, developed by Jeffrey Timmermans, includes additional features such as dynamic labels, alerts, and thresholds with color-coded bands, enhancing its usability for traders and analysts.
Core Concepts Behind NUPL
Market Value (MV):
Defined as the current Bitcoin price multiplied by the number of coins in circulation.
Equivalent to market capitalization in traditional finance.
Realized Value (RV):
Calculated by considering the price at which each Bitcoin last moved (e.g., transferred between wallets).
The average price of all these transactions is multiplied by the total coins in circulation.
Net Unrealized Profit Loss (NUPL):
Formula: NUPL = (Market Value − Realized Value) : Market Value × 100
Measures the proportion of paper profits or losses held by investors relative to the market cap.
Significance of NUPL:
Tracks investor sentiment over time.
A high NUPL value indicates that most investors are in profit, often signaling potential market overheating.
A low or negative NUPL suggests pessimism and undervaluation, which may precede market recovery.
How to View the Chart
The NUPL chart uses distinct percentage bands to delineate various market phases. These bands provide context for understanding investor sentiment and market stages:
Extreme Low Values (< 0%): Indicates widespread losses; the market may be near capitulation.
Neutral Value (0%): A balance between profit and loss; often signifies a transition phase.
Slightly High to High Values (> 0% to 50%): Increasing profits suggest growing optimism; early stages of bullish trends.
Extreme High Values (> 75%): Signals overheating; often corresponds to excessive greed, which may precede corrections.
The colored bands visually represent these stages, enabling traders to identify key turning points.
Features of the Script
Querying Data
The indicator uses data from two key sources:
Bitcoin Market Cap (MC1): GLASSNODE:BTC_MARKETCAP
Bitcoin Realized Cap (MCR): COINMETRICS:BTC_MARKETCAPREAL
These values are fetched using the request.security function to ensure daily accuracy, regardless of the chart's timeframe.
Threshold Calculation
The script computes NUPL values dynamically and compares them against historical lows:
Calculated using the ta.lowest function over a 1,000-bar lookback period.
The average of the historical low and the current NUPL value, providing a dynamic baseline.
Value Classification
NUPL is categorized into sentiment levels with corresponding weights:
< Low Threshold: 1 (Extreme Bearish)
Low to 0: 0.75 (Moderate Bearish)
0 to 25: 0.25 (Neutral to Slightly Bullish)
25 to 50: -0.25 (Moderate Bullish)
50 to 75 : -0.75 (Strong Bullish)
> 75: -1 (Extreme Bullish)
Visual Elements
NUPL Line Plot:
The NUPL line is plotted in orange for clear visibility.
Threshold Bands:
Horizontal thresholds ranging from -160 to 160 and are plotted, representing key sentiment levels. Bands are categorized as:
Extreme High/Low Values
Significant High/Low Values
Neutral Values
Fill Colors:
Red Shades (Bearish Sentiment): Above neutral levels.
Green Shades (Bullish Sentiment): Below neutral levels.
The opacity of fills decreases as sentiment moves from extreme to neutral values.
Dynamic Label:
A real-time label displays the current NUPL value and sentiment classification.
Positioned directly on the NUPL line for immediate insight.
Alerts:
The indicator includes two alerts for crossing key thresholds:
NUPL Above 0% Alert: Triggers when NUPL crosses above the neutral value, signaling a shift to positive sentiment.
NUPL Below 0% Alert: Triggers when NUPL crosses below the neutral value, indicating a shift to negative sentiment.
Alerts are configured with alert.freq_once_per_bar to avoid redundancy during intra-bar fluctuations.
Use Cases
Identifying Market Extremes:
Use NUPL levels to pinpoint moments of extreme greed or fear, which often precede market reversals.
Long-Term Strategy:
NUPL trends can assist strategic investors in deciding when to accumulate during pessimistic phases or take profits during euphoria.
Market Sentiment Analysis:
Provides a macro perspective on the prevailing investor sentiment, offering valuable context for trading decisions.
Conclusion
The Net Unrealized Profit Loss (NUPL) indicator combines advanced data processing with intuitive visualization to deliver actionable insights into Bitcoin market sentiment. With its real-time alerts, dynamic labels, and comprehensive banding system, this tool is indispensable for traders and investors seeking to understand and anticipate market movements based on sentiment analysis.
-Jeffrey