Macro Liquidity Index & Canadian OverlayTradingView Pine Script strategy-style indicator that synthesizes the macro signals (e.g. DXY trend, real yields, oil prices, ISM trend, and financial conditions) into a visual macro sentiment index ranging from -5 (max bearish) to +5 (max bullish). It also includes a “Canadian Exposure Overlay” that adjusts the macro score based on Canada’s specific economic positioning (e.g., oil exporter, rate-sensitive sectors, CAD/USD trend).
Sentiment
Sentiment Bias Gauge📌 Overview
The Sentiment Bias Gauge (SBG) is a unique overlay-style indicator that visually maps a sentiment value—such as market bullishness or bearishness—onto your price chart. It converts sentiment data (in this case, RSI-based) into a floating line that moves between defined price zones, allowing users to quickly understand the current market mood in the context of price.
⚙️ How It Works
• The indicator uses RSI (Relative Strength Index) as a proxy for market sentiment (0 to 100 scale).
• This sentiment value is then mapped to a vertical price range on your chart using a configurable zone (via top and bottom percent of chart range).
• The line floats up or down within the price chart, reflecting how bullish or bearish the sentiment is.
• It includes background shading to represent the sentiment level:
• 🔴 Red (Bearish): sentiment < 30
• 🟡 Yellow (Neutral): 30 ≤ sentiment ≤ 70
• 🟢 Green (Bullish): sentiment > 70
• A floating label shows the current sentiment score.
🌟 Key Features
• 📈 Overlay-Based Sentiment Line: Plots sentiment as a price-level line, giving intuitive spatial reference.
• 🔧 Configurable Range Placement: Adjust where the sentiment line appears within the chart’s high-low range.
• 🖌️ Color-Coded Background: Visually distinguish bullish, bearish, and neutral conditions.
• 🏷️ Real-Time Sentiment Label: Displays updated sentiment score on the most recent bar.
🧠 How to Use
• Use this indicator alongside your price action or technical strategy to gauge market mood.
• Combine with other sentiment indicators (e.g., fear/greed, delta volume, news sentiment).
• Especially helpful in sideways markets to identify potential shifts in bias before price reacts.
Why This Combination?
• RSI offers a reliable and intuitive proxy for market sentiment.
• Mapping the value directly onto the chart helps avoid constantly looking at a separate panel.
• The customizable chart range lets traders fit sentiment visuals within any market structure.
🎯 Why It’s Worth Using
• Makes sentiment visually accessible directly on the chart.
• Helps detect bullish/bearish bias shifts earlier than traditional indicators.
• A great tool for sentiment-aware discretionary trading or contextual overlays in algo strategies.
Sesiuni Bursiere Personalizabile (cu oră, culoare și interval)This indicator visually highlights the active trading sessions for the three major global markets:
🇸🇬 Asia, 🇬🇧 London, and 🇺🇸 New York.
🔧 Features:
✅ Automatically draws session zones as rectangles between session open/close times and price highs/lows
🏷️ Labeled with session names for clear visual reference
🎨 Customizable colors for each session directly from the settings panel
⏱️ User-defined session start and end times
📆 Only displays sessions from the last 96 hours for better clarity and performance
🛠️ How to Use:
Add the indicator to your chart
Open the Settings panel
Enable the sessions you want to see (Asia, London, New York)
Adjust the colors and time ranges for each session as needed
🧠 Tips:
Works best on 5m to 1h timeframes
Great for identifying liquidity zones and session-based volatility
Combine with tools like RSI, VWAP, or moving averages for strategic setups
📌 An excellent visual tool for traders who focus on market sessions, volatility windows, and time-based strategies.
RUBX Индекс рубляThe ruble index, similar to the DXY, offsets the weakness or strength of the dollar in the USD/RUB
индекс рубля на подобии DXY, невелирует слабость или силу доллара в USD/RUB
RVOL Effort Matrix💪🏻 RVOL Effort Matrix is a tiered volume framework that translates crowd participation into structure-aware visual zones. Rather than simply flagging spikes, it measures each bar’s volume as a ratio of its historical average and assigns to that effort dynamic tiers, creating a real-time map of conviction , exhaustion , and imbalance —before price even confirms.
⚖️ At its core, the tool builds a histogram of relative volume (RVOL). When enabled, a second layer overlays directional effort by estimating buy vs sell volume using candle body logic. If the candle closes higher, green (buy) volume dominates. If it closes lower, red (sell) volume leads. These components are stacked proportionally and inset beneath a colored cap line—a small but powerful layer that maintains visibility of the true effort tier even when split bars are active. The cap matches the original zone color, preserving context at all times.
Coloration communicates rhythm, tempo, and potential turning points:
• 🔴 = structurally weak effort, i.e. failed moves, fake-outs or trend exhaustion
• 🟡 = neutral volume, as seen in consolidations or pullbacks
• 🟢 = genuine commitment, good for continuation, breakout filters, or early rotation signals
• 🟣 = explosive volume signaling either climax or institutional entry—beware!
Background shading (optional) mirrors these zones across the pane for structural scanning at a glance. Volume bars can be toggled between full-stack mode or clean column view. Every layer is modular—built for composability with tools like ZVOL or OBVX Conviction Bias.
🧐 Ideal Use-Cases:
• 🕰 HTF bias anchoring → LTF execution
• 🧭 Identifying when structure is being driven by real crowd pressure
• 🚫 Fading green/fuchsia bars that fail to break structure
• ✅ Riding green/fuchsia follow-through in directional moves
🍷 Recommended Pairings:
• ZVOL for statistically significant volume anomaly detection
• OBVX Conviction Bias ↔️ for directional confirmation of effort zones
• SUPeR TReND 2.718 for structure-congruent entry filtering
• ATR Turbulence Ribbon to distinguish expansion pressure from churn
🥁 RVOL Effort Matrix is all about seeing—how much pressure is behind a move, whether that pressure is sustainable, and whether the crowd is aligned with price. It's volume, but readable. It’s structure, but dynamic. It’s the difference between obeying noise and trading to the beat of the market.
Nasan Market Phase ClassifierThe Nasan Market Phase Classifier indicator designed to classify market phases using volume, volatility (or momentum), and statistical analysis. Here's a summary of how it works and what it does:
🔍 Core Concept
This indicator classifies the market into four phases based on volume and ATR (or optionally momentum):
High Volume / High ATR or Momentum (HV/HATR): Strong Trend
Low Volume / High ATR or Momentum (LV/HATR): False Breakout / Exhaustion
High Volume / Low ATR or Momentum (HV/LATR): Consolidation
Low Volume / Low ATR or Momentum (LV/LATR): Stagnation
⚙️ Key Settings
Short-Term Length: Used for the active market phase.
Long-Term Length: Used as the expected/benchmark distribution.
Use Momentum: Replaces volatility (ATR) with momentum (custom ROC-based formula).
Use Fixed Alpha: Toggles adaptive vs. fixed weighting in scoring (this is based on variation of the volatility - standard deviation of true range).
📊 How It Works
Volatility or Momentum Scoring:
Uses ATR-based or Momentum-based score depending on the setting.
Applies weighing (alpha) which is based on variability of the volatility itself.
Market Phase Count:
Measures how often each of the 4 volume/volatility combinations occur in:
Short-term window (observed phase)
Long-term window (expected distribution)
Category Proportions:
Calculates percentage share of each category (e.g., % time in HV/HATR).
Plots these on chart to visually see market phase dominance (can be used for screening of pine screener).
Statistical Testing:
IQV (Index of Qualitative Variation): Measures phase diversity (0 = focused, 1 = mixed).
Chi-Squared Test: Compares current vs. historical phase distribution.
Z-Test: Tests if current phase dominance is statistically significant.
📋 Outputs
On-Chart Plots and Tabels:
Strong Trend, False Breakout/Exhaustion, Consolidation, Stagnation
Strength Quality Plot: Trend strength normalized by IQV.
Dynamic Table (Top Right):
Shows each phase’s proportion (the current phase cell is highlighted in yellow), IQV, Chi² value, and current dominant phase. The current candle classification (text) is in purple.
Highlights the dominant phase classification and color-codes significance (the cell highlighted in green highly confident about the classification, orange intermediate confidence and red low confidence). This color coding is not just based on statistical significance it is based on IQV which takes into account how spread the proportions are.
🧠 Interpretation
A dominant HV/HATR phase with low IQV and high Z-Score indicates a strong and statistically significant trend.
High IQV suggests uncertainty or mixed market behavior.
Chi² spike indicates a shift from historical behavior can be used to see is the market behavior changing by changing the long term length say to 252 and short term length to 21 this will tell if the short term behavior is different from the past 252 day behavior.
First FVG Custom Time RangeFirst FVG — Opening Range Fair Value Gap Detector
Smart Money Opening Imbalance Strategy Tool
This script automatically detects and highlights the first Fair Value Gap (FVG) that forms between 9:30 and 10:00 AM Eastern Time (New York session open) — a critical period often referred to as the Opening Range. It’s designed for Smart Money traders looking to isolate early-morning inefficiencies that may influence market behavior throughout the trading day.
🔍 What This Script Does:
Automatically Detects the First FVG in the Opening Range
Scans price action between 9:30 and 10:00 AM ET and identifies the first valid bullish or bearish FVG that forms.
Only one FVG is shown per day — ensuring a clean, focused view.
Draws a Visual Zone
Once detected, the FVG zone is extended forward on the chart (customizable duration).
A labeled zone helps users track how price reacts to it throughout the session.
Optional Retest Alerts
Alerts you when price re-enters the zone — a potential reaction point used by SMC traders.
Customization Options
Set your preferred session time window
Adjust zone duration (in bars)
Customize label font size, colors, and visibility
Enable/disable alert on retest
📈 Why the First FVG Matters:
Time-Sensitive Setup: The first FVG typically forms no earlier than 9:31 AM ET and represents a potential “time distortion” or imbalance zone created by aggressive market participants during the open.
Behavioral Study: Many traders journal how price behaves around this zone each day — whether it acts as support, resistance, or gets traded through later in the session.
Predictive Value: Observing how this zone is respected or broken can provide anticipatory insight into intraday price action, rather than reactive analysis.
Great for New Traders: This opening FVG is often recommended as a starting reference point for building trade models and understanding how institutional imbalances unfold.
🚀 What Makes It Unique:
This tool doesn’t spam your chart with every FVG. It laser-focuses on a single, time-bound zone backed by institutional logic — the first presented imbalance of the day during the opening range.
Use it to:
Monitor price behavior around early inefficiencies
Plan journal entries and pattern recognition
Align intraday setups with a high-probability SMC model
Whether you’re scalping, journaling market structure, or refining entries based on liquidity behavior — this script helps you make the first 30 minutes count.
SPDR Sectors TableThis script generates an interactive and customizable SPDR Sectors Table designed to monitor and analyze the performance of the 11 main sectors of the S&P 500 via sector-specific ETFs. It offers a dynamic overview of daily or periodic sector movements, making it a valuable tool for traders, analysts, and investors implementing sector rotation strategies.
█ DEFINITIONS
SPDR Sectors ETFs are exchange-traded funds managed by State Street Global Advisors, which divide the S&P 500 into the following 11 sectors:
- Communication Services (XLC)
- Consumer Discretionary (XLY)
- Consumer Staples (XLP)
- Energy (XLE)
- Financials (XLF)
- Health Care (XLV)
- Industrials (XLI)
- Materials (XLB)
- Real Estate (XLRE)
- Technology (XLK)
- Utilities (XLU)
These ETFs aim to replicate the performance of their respective sectors as defined by the Global Industry Classification Standard (GICS). The funds are periodically rebalanced to match changes in the S&P 500 composition, offering an accurate snapshot of sectoral trends.
█ INDICATOR
The table displays each sector's ticker and full name, following official GICS terminology and SPDR color coding. It also shows percentage performance, calculated daily on intraday charts or based on the selected time frame.
Users can sort the table by either percentage performance or the relative weight of each ETF in the S&P 500. The default weight values reflect data updated as of 17 April 2025, and can be manually adjusted based on the most recent sector weightings available on the official SPDR website.
Bitcoin NUPL IndicatorThe Bitcoin NUPL (Net Unrealized Profit/Loss) Indicator is a powerful metric that shows the difference between Bitcoin's market cap and realized cap as a percentage of market cap. This indicator helps identify different market cycle phases, from capitulation to euphoria.
// How It Works
NUPL measures the aggregate profit or loss held by Bitcoin investors, calculated as:
```
NUPL = ((Market Cap - Realized Cap) / Market Cap) * 100
```
// Market Cycle Phases
The indicator automatically color-codes different market phases:
• **Deep Red (< 0%)**: Capitulation Phase - Most coins held at a loss, historically excellent buying opportunities
• **Orange (0-25%)**: Hope & Fear Phase - Early accumulation, price uncertainty and consolidation
• **Yellow (25-50%)**: Optimism & Anxiety Phase - Emerging bull market, increasing confidence
• **Light Green (50-75%)**: Belief & Denial Phase - Strong bull market, high conviction
• **Bright Green (> 75%)**: Euphoria & Greed Phase - Potential market top, historically good profit-taking zone
// Features
• Real-time NUPL calculation with customizable smoothing
• RSI indicator for additional momentum confirmation
• Color-coded background reflecting current market phase
• Reference lines marking key transition zones
• Detailed metrics table showing NUPL value, market sentiment, market cap, realized cap, and RSI
// Strategy Applications
• **Long-term investors**: Use extreme negative NUPL values (deep red) to identify potential bottoms for accumulation
• **Swing traders**: Look for transitions between phases for potential trend changes
• **Risk management**: Consider taking profits when entering the "Euphoria & Greed" phase (bright green)
• **Mean reversion**: Watch for overbought/oversold conditions when NUPL reaches historical extremes
// Settings
• **RSI Length**: Adjusts the period for RSI calculation
• **NUPL Smoothing Length**: Applies moving average smoothing to reduce noise
// Notes
• Premium TradingView subscription required for Glassnode and Coin Metrics data
• Best viewed on daily timeframes for macro analysis
• Historical NUPL extremes have often marked cycle bottoms and tops
• Use in conjunction with other indicators for confirmation
Volume Range Profile with Fair Value (Zeiierman)█ Overview
The Volume Range Profile with Fair Value (Zeiierman) is a precision-built volume-mapping tool designed to help traders visualize where institutional-level activity is occurring within the price range — and how that volume behavior shifts over time.
Unlike traditional volume profiles that rely on fixed session boundaries or static anchors, this tool dynamically calculates and displays volume zones across both the upper and lower ends of a price range, revealing point-of-control (POC) levels, directional volume flow, and a fair value drift line that updates live with each candle.
You’re not just looking at volume anymore. You’re dissecting who’s in control — and at what price.
⚪ In simple terms:
Upper Zone = The upper portion of the price range, showing concentrated volume activity — typically where selling or distribution may occur
Lower Zone = The lower portion of the price range, highlighting areas of high volume — often associated with buying or accumulation
POC Bin = The bin (price level) with the highest traded volume in the zone — considered the most accepted price by the market
Fair Value Trend = A dynamic trend line tracking the average POC price over time — visualizing the evolving fair value
Zone Labels = Display real-time breakdown of buy/sell volume within each zone and inside the POC — revealing who’s in control
█ How It Works
⚪ Volume Zones
Upper Zone: Anchored at the highest high in the lookback period
Lower Zone: Anchored at the lowest low in the lookback period
Width is user-defined via % of range
Each zone is divided into a series of volume bins
⚪ Volume Bins (Histograms)
Each zone is split into N bins that show how much volume occurred at each level:
Taller = More volume
The POC bin (Point of Control) is highlighted
Labels show % of volume in the POC relative to the whole zone
⚪ Buy vs Sell Breakdown
Each volume bin is split by:
Buy Volume = Close ≥ Open
Sell Volume = Close < Open
The script accumulates these and displays total Buy/Sell volume per zone.
⚪ Fair Value Drift Line
A POC trend is plotted over time:
Represents where volume was most active across each range
Color changes dynamically — green for rising, red for falling
Serves as a real-time fair value anchor across changing market structure
█ How to Use
⚪ Identify Key Control Zones
Use Upper/Lower Zone structures to understand where supply and demand is building.
Zones automatically adapt to recent highs/lows and re-center volume accordingly.
⚪ Follow Institutional Activity
Watch for POC clustering near price tops or bottoms.
Large volumes near extremes may indicate accumulation or distribution.
⚪ Spot Fair Value Drift
The fair value trend line (average POC price) gives insight into market equilibrium.
One strategy can be to trade a re-test of the fair value trend, trades are taken in the direction of the current trend.
█ Understanding Buy & Sell Volume Labels (Zone Totals)
These labels show the total buy and sell volume accumulated within each zone over the selected lookback period:
Buy Vol (green label) → Total volume where candles closed bullish
Sell Vol (red label) → Total volume where candles closed bearish
Together, they tell you which side dominated:
Higher Buy Vol → Bullish accumulation zone
Higher Sell Vol → Bearish distribution zone
This gives a quick visual insight into who controlled the zone, helping you spot areas of demand or supply imbalance.
█ Understanding POC Volume Labels
The POC (Point of Control) represents the price level where the most volume occurred within the zone. These labels break down that volume into:
Buy % – How much of the volume was buying (price closed up)
Sell % – How much was selling (price closed down)
Total % – How much of the entire zone’s volume happened at the POC
Use it to spot strong demand or supply zones:
High Buy % + High Total % → Strong buying interest = likely support
High Sell % + High Total % → Strong selling pressure = likely resistance
It gives a deeper look into who was in control at the most important price level.
█ Why It’s Useful
Track where fair value is truly forming
Detect aggressive volume accumulation or dumping
Visually split buyer/seller control at the most relevant price levels
Adapt volume structures to current trend direction
█ Settings Explained
Lookback Period: Number of bars to scan for highs/lows. Higher = smoother zones, Lower = reactive.
Zone Width (% of Range): Controls how much of the range is used to define each zone. Higher = broader zones.
Bins per Zone: Number of volume slices per zone. Higher = more detail, but heavier on resources.
-----------------
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.
MÈGAS ALGO : CNA (Cognitio Analysis) [INDICATOR]Overview
The CNA (Cognitio Analysis) is a comprehensive financial analysis tool designed to evaluate the overall health and potential of a market or company based on fundamental metrics. It aggregates data across five key metric groups—**Growth**, **Profitability**, **Cash Flow**, **Income**, and **Valuation**—to provide a final interpretation of market conditions. The indicator dynamically adapts to the selected fiscal period (Quarter, Year, or Trailing Twelve Months) and delivers insights into dominant trends and conflicting signals.
Key Features
1. Customizable Fiscal Period:
- Users can select between "Quarter", "Year", or "Trailing Twelve Months" (TTM) to analyze data for their desired timeframe.
2. Dynamic Table Visualization:
- Displays raw metric values, aggregated scores, and the final interpretation in an intuitive
table.
- Highlights the final interpretation with dynamic background colors (`color.teal` for bullish,
`color.red` for bearish, etc.).
3. Comprehensive Data Integration:
- Pulls financial data using TradingView's `request.financial()` function for metrics like
revenue, earnings, margins, and valuation ratios.
4. Normalization and Scoring:
- Normalizes data to create a consistent scoring system, ensuring accurate comparisons across
metrics.
How It Works
1. Metric Group Analysis
- Growth Metrics: Measures revenue growth, earnings per share (EPS) growth, and tax
efficiency.
- Profitability Metrics: Analyzes net profit margin, return on equity (ROE), and EBITDA margin.
- Cash Metrics: Assesses operating cash flow margin, free cash flow to operating cash flow
ratio, and cash flow coverage.
- Income Metrics: Examines gross profit margin, operating profit margin, and EBIT margin.
- Valuation Metrics: Evaluates price-to-earnings (P/E), price-to-sales (P/S), and enterprise
value-to-EBITDA (EV/EBITDA).
2. Dynamic Scoring System
- Metrics are normalized to ensure consistency across different scales.
- A geometric mean is used to calculate scores for each metric group, ensuring that all metrics
within a group contribute equally to the final score.
3. Dominant Trend Identification
- Scores from all five metric groups are aggregated to determine the **dominant trend** of the
market.
- The dominant trend is categorized as:
- Bullish: Strong fundamentals across most metrics.
- Bearish: Weak fundamentals across most metrics.
- Neutral: Balanced conditions with no clear direction.
- Unclear: Mixed signals dominate, requiring further monitoring.
4. Conflicting Signals Interpretation
- The indicator identifies scenarios where metrics conflict (e.g., high growth but low valuation).
- These conflicting signals provide nuanced insights into market conditions, highlighting rare opportunities or potential risks.
How to Use the Indicator
1. Select Fiscal Period:
- Choose between "FQ", "FY", or "TTM" to analyze data for the desired timeframe.
2. Review Metric Scores:
- Examine the scores for each metric group (Growth, Profitability, Cash, Income, Valuation) to
understand the underlying performance.
3. Interpret Final Output:
- The final interpretation provides a summary of the dominant trend and conflicting signals,
helping users make informed decisions.
4. Dynamic Coloring:
- Use the dynamic background colors in the table to quickly identify market sentiment
(bullish, bearish, neutral, or mixed).
Applications
- Identifying Opportunities:
- Look for bullish dominant trends combined with undervalued growth opportunities for
potential long positions.
- Avoiding Risks:
- Watch out for bearish dominant trends with overvaluation alerts to avoid potential losses.
- Monitoring Neutral Markets:
- Use the indicator to identify neutral markets and wait for clearer signals before making
decisions.
Conclusion
The CNA (Cognitio Analysis) is a powerful tool for traders and investors seeking to make informed decisions based on fundamental analysis. By combining detailed metric evaluations, dynamic scoring, and sentiment-based interpretations, this indicator provides a comprehensive view of market conditions. Whether you're identifying undervalued opportunities, avoiding overvalued risks, or monitoring neutral markets, this indicator equips you with the insights needed to navigate complex financial landscapes.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outc
RSI HeartHere's an introduction you can use for your RSI Heart indicator:
---
### RSI Heart Indicator
The **RSI Heart Indicator** provides a visually engaging way to monitor and track the **Relative Strength Index (RSI)** across multiple timeframes (10m, 15m, 30m, and 1H). It not only shows the RSI value but also uses heart-shaped symbols to reflect the current market condition based on RSI levels, making it easier to understand the strength and momentum of a given asset at a glance.
### Key Features:
- **Multi-Timeframe Support**: The indicator pulls the RSI values from multiple timeframes (10 minutes, 15 minutes, 30 minutes, and 1 hour) so you can analyze market strength at different intervals in one view.
- **Heart Symbols**: RSI values are displayed alongside heart emojis (❤️, 💛, 💚) that provide a visual cue for the market condition:
- **❤️ (Overbought or Oversold)**: When RSI is below 27 or above 73.
- **💛 (Near Oversold/Overbought)**: When RSI is between 27-30 or 70-73.
- **💚 (Neutral)**: When RSI is between 30 and 70.
- **Customizable Visibility**: Toggle visibility for each timeframe's RSI using simple on/off settings, giving you control over which timeframes are displayed in your chart.
### How it Can Help:
- **Quick Market Sentiment Analysis**: The heart symbols and RSI values allow you to quickly assess whether an asset is in an overbought or oversold condition.
- **Multi-Timeframe RSI**: By viewing RSI across multiple timeframes, you can gain a more comprehensive understanding of market momentum and strength.
- **Personalized to Your Preferences**: Adjust the settings to only show the timeframes that matter most to you, creating a customized and clean chart view.
This indicator helps traders make more informed decisions by providing a clear, easy-to-read representation of market conditions across various timeframes, all within one indicator.
---
This introduction explains what the indicator does, its features, and how it can benefit traders in a concise and easy-to-understand way.
Crosby Ratio | QuantumResearch ⚖️ Crosby Ratio | QuantumResearch
A Heikin-Ashi Smoothed Momentum Oscillator for Trend Strength & Market Rotation
Inspired by the Original Work of Bitcoin Magazine Pro
🔗 www.bitcoinmagazinepro.com
📘 Overview
The Crosby Ratio, as originally conceptualized by Bitcoin Magazine Pro, is a powerful tool used to evaluate the momentum and directional strength of price movement by analyzing the slope of market trends in degrees.
This enhanced implementation by QuantumResearch builds on the original concept with a Pine Script version tailored for trading charts, integrating Heikin-Ashi smoothing, ATR scaling, and customizable visual modes to fit traders' unique styles.
🧠 What Is the Crosby Ratio?
At its core, the Crosby Ratio uses angular measurement to quantify price movement — translating price trend strength into degrees. This approach allows traders to:
📈 Identify when the market is exhibiting strong upward or downward pressure
🚨 Spot overextended or overheated trend conditions
⚖ Filter out short-term noise and focus on macro momentum
🔍 1. Key Innovations by QuantumResearch
✅ Heikin-Ashi Smoothing: Reduces noise and stabilizes price action before computing momentum angles
✅ Custom atan2() Angular Function: Measures the directional angle between smoothed price changes and ATR-based scaling
✅ Dynamic Threshold Bands: Color-coded zones highlight overbought/oversold momentum regions
✅ Fully Customizable Palette: Choose from 8 visual themes with automatic color adaptation
📊 2. Interpretation Guide
Crosby Value Interpretation
> +18° 🚀 Strong bullish trend acceleration
+13° to +18° 📈 Moderate upward momentum
-9° to +13° ⚖ Neutral/transition phase
-15° to -9° 📉 Moderate bearish pressure
< -15° 🛑 Strong bearish acceleration
The indicator also features background shading when values exceed key thresholds, improving visual clarity during trend inflection points.
📌 Ideal Use Cases
🔄 Rotational Momentum Strategies: Spot the strongest assets during rapid shifts
⚡ Breakout Filtering: Confirm whether breakouts have directional strength
🧘 Noise Reduction: Heikin-Ashi smoothing filters chaotic wicks, especially in crypto
📉 Bearish Exhaustion Detection: Quickly identify when bearish momentum might be overdone
🔗 Original Inspiration & Acknowledgment
This indicator draws its core idea and naming convention from the original Crosby Ratio developed and introduced by Bitcoin Magazine Pro in their excellent write-up:
🔗 The Crosby Ratio – Bitcoin Magazine Pro
Their work on quantifying market sentiment via angle-based momentum inspired this script adaptation for TradingView with added visual features, smoothing techniques, and alerts.
⚠️ Disclaimer
This indicator is a momentum oscillator and should be used in conjunction with other confirmation tools. Market dynamics can vary, and no single metric ensures profitable trades. Always apply proper risk management.
Market Sessions by BASSWELLThis TradingView indicator visually highlights major global trading sessions (Tokyo, London, New York) directly on intraday charts. It provides a clear, color-coded display of session activity and key statistics to help traders better understand session dynamics and overlaps.
✅ Key Features:
Visual Session Boxes: Draws background boxes for each session with configurable colors.
Session Names: Displays the name of each session as a label above the session box.
Open/Close Lines: Optionally shows dashed lines at session open and close prices.
Average Price Line: Plots the average session price as a dotted line.
Tick Range Display: Calculates and shows the high-low range in ticks.
Time Zone Support: Fully timezone-aware via IANA definitions (e.g. "Europe/London").
Overlap Handling: Automatically dims older sessions when a new one starts for visual clarity.
🔧 Configurable Parameters:
Show/hide each session individually.
Set session times and timezones.
Customize label visibility and box contents.
Adjust session colors with transparency.
Includes basic visual styling for better chart readability.
⚠️ Note: Works only on intraday timeframes. Daily/weekly/monthly charts are not supported.
Weekly Open (Current Week Only)📘 Indicator Name: Weekly Open (Current Week Only)
📝 Description:
This indicator plots a horizontal line representing the weekly open price, visible only during the current trading week. At the beginning of each new week (based on TradingView’s weekly time segmentation), the indicator captures the open price of the first candle and draws a constant line across the chart until the week ends. Once the new week begins, the line resets and updates with the new weekly open.
🎯 How to Use – ICT Concepts Integration (Weekly Profile):
This tool is designed to complement ICT (Inner Circle Trader) trading strategies, particularly within the weekly profile framework, by offering a clear and persistent visual of the weekly open, which is a critical reference point in ICT’s market structure theory.
✅ Use Cases:
Directional Bias:
According to ICT concepts, price trading above the weekly open suggests a bullish bias for the week, while trading below it implies bearish conditions.
Traders can use the weekly open line to align their intraweek trades with higher timeframe directional bias.
Dealing Ranges:
Weekly open helps frame the weekly dealing range, especially when combined with other levels like weekly high/low or previous week’s range.
It allows traders to identify potential liquidity pools or areas where price may seek to rebalance.
Mean Reversion Entries:
Price often reverts to or reacts from the weekly open. Traders may use this as a target or entry level, particularly during Monday/Tuesday setups.
Works well in conjunction with concepts like OTE (Optimal Trade Entry) and Judas Swings.
Risk Management:
Acts as a clean and visual anchor to structure stop losses or take-profits based on weekly bias shifts.
SR Intensity CandleThis is a very simple script intended to find just what the title says, "Intensity Candles" is what i am calling them. A bullish intensity candle is taking the low of the previous candle and the close is above the previous candle high. Bearish intensity candle is the opposite, a candle that takes the high of the previous candle and the close is below the low of the previous candle.
Alternatively, if a "bullish" intensity candle is the mitigated and price pushes below, you can expect a back test short of the "bullish" intensity candle. They will act as SR zones for the future price action.
The BEST and most ideal spot for the intensity candles to happen is the see a bullish candle at the low of a move and a bearish candle at the highs indicating strong movement for reversal.
Multi-timeframe Moving Average Overlay w/ Sentiment Table🔍 Overview
This indicator overlays selected moving averages (MA) from multiple timeframes directly onto the chart and provides a dynamic sentiment table that summarizes the relative bullish or bearish alignment of short-, mid-, and long-term moving averages.
It supports seven moving average types — including traditional and advanced options like DEMA, TEMA, and HMA — and provides visual feedback via table highlights and alerts when strong momentum alignment is detected.
This tool is designed to support traders who rely on multi-timeframe analysis for trend confirmation, momentum filtering, and high-probability entry timing.
⚙️ Core Features
Multi-Timeframe MA Overlay:
Plot moving averages from 1-minute, 5-minute, 1-hour, 1-day, 1-week, and 1-month timeframes on the same chart for visual trend alignment.
Customizable MA Type:
Choose from:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
DEMA (Double EMA)
TEMA (Triple EMA)
WMA (Weighted MA)
VWMA (Volume-Weighted MA)
HMA (Hull MA)
Adjustable MA Length:
Change the length of all moving averages globally to suit your strategy (e.g. 9, 21, 50, etc.).
Sentiment Table:
Visually track trend sentiment across four key zones (Hourly, Daily, Weekly, Monthly). Each is based on the relative positioning of short-term and long-term MAs.
Sentiment Symbols Explained:
↑↑↑: Strong bullish momentum (short-term MAs stacked above longer-term MAs)
↑↑ / ↑: Moderate bullish bias
↓↓↓: Strong bearish momentum
↓↓ / ↓: Moderate bearish bias
Table Customization:
Choose the table’s position on the chart (bottom right, top right, bottom left, top left).
Style Customization:
Display MA lines as standard Line or Stepline format.
Color Customization:
Individual colors for each timeframe MA line for visual clarity.
Built-in Alerts:
Receive alerts when strong bullish (↑↑↑) or bearish (↓↓↓) sentiment is detected on any timeframe block.
📈 Use Cases
1. Trend Confirmation:
Use sentiment alignment across multiple timeframes to confirm the overall trend direction before entering a trade.
2. Entry Timing:
Wait for a shift from neutral to strong bullish or bearish sentiment to time entries during pullbacks or breakouts.
3. Momentum Filtering:
Only trade in the direction of the dominant multi-timeframe trend. For example, ignore long setups when all sentiment blocks show bearish alignment.
4. Swing & Intraday Scalping:
Use hourly and daily sentiment zones for swing trades, or rely on 1m/5m MAs for precise scalping decisions in fast-moving markets.
5. Strategy Layering:
Combine this overlay with support/resistance, RSI, or volume-based signals to enhance decision-making with multi-timeframe context.
⚠️ Important Notes
Lower-timeframe values (1m, 5m) may appear static on higher-timeframe charts due to resolution limits in TradingView. This is expected behavior.
The indicator uses MA stacking, not crossover events, to determine sentiment.
Daily Performance HeatmapThis script displays a customizable daily performance heatmap for key assets across crypto, equities, bonds, commodities, currencies, and volatility indices.
Each cell shows the current price and the percent change since the daily open, color-coded using a gradient from negative to positive. Assets are arranged in a left-to-right, top-down grid, with adjustable layout and styling.
⚙️ Features:
🔢 Displays current price and daily % change
🎨 Color-coded heatmap using customizable gradients
🧱 Adjustable layout: number of columns, cell size, and text size
🧠 Smart price formatting (no decimals for BTC, Gold, etc.)
🪟 Clean alignment with padded spacing for UI clarity
🛠️ Future plans:
User-input asset lists and labels
Category grouping and dynamic sorting
Optional icons, tooltips, or alerts
Mongoose Yield Spread Dashboard v5 – Labeled, Alerted, ReadableCurveGuard: Mongoose Edition
Track the macro tide before it turns.
This tool visualizes the three most-watched U.S. Treasury yield curve spreads:
2s10s (10Y - 2Y)
5s30s (30Y - 5Y)
3M10Y (10Y - 3M)
Each spread is plotted with dynamic color logic, inversion alerts, and floating labels. Background shading highlights historical inversion zones to help spot macro regime shifts in real time.
✅ Alert-ready
✅ Dark mode optimized
✅ Floating labels
✅ Clean layout for fast macro insight
📌 For educational and informational purposes only.
This script does not provide financial advice or trade recommendations.
NY ORB, VWAP & EMAsIndicator is designed to display key technical analysis tools on your Trading View chart. It includes:
One of the key benefits of this indicator is that it allows Basic Trading View users to set VWAP, EMAs, and ORB in a single indicator. This is particularly useful for users who are limited to a single indicator on their Basic plan, as it provides a comprehensive view of market sentiment, trend, and potential breakouts without the need for multiple indicators.
Features
New York Opening Range Breakout (ORB): Plots the high and low of the first 15 minutes (configurable) of the New York trading session.
Volume Weighted Average Price (VWAP): Displays the VWAP line, which can be toggled on or off.
Exponential Moving Averages (EMAs): Plots four EMAs (9, 21, 50, and 200 periods), which can also be toggled on or off.
Customization
ORB Length: Choose from 5 or 15 minutes for the ORB calculation.
Show VWAP and EMAs: Toggle the visibility of the VWAP and EMA lines on or off.
Usage
This indicator is designed to help traders identify key market levels, trends, and potential breakouts during the New York trading session. The ORB can be used to gauge market sentiment, while the VWAP provides a benchmark for average price action. The EMAs offer additional trend analysis and can be used to identify potential support and resistance levels.
ZVOL — Z-Score Volume Heatmapⓩ ZVOL transforms raw volume into a statistically calibrated heatmap using Z-score thresholds. Unlike classic volume indicators that rely on fixed MA comparisons, ZVOL calculates how many standard deviations each volume bar deviates from its mean. This makes the reading adaptive across timeframes and assets, in order to distinguish meaningful crowd behavior from random volatility.
📊 The core display is a five-zone histogram, each encoded by color and statistical depth. Optional background shading mirrors these zones across the entire pane, revealing subtle compression or structural rhythm shifts across time. By grounding the volume reading in volatility-adjusted context, ZVOL inhibits impulsive trading tactics by compelling the structure, not the sentiment, to dictate the signal.
🥵 Heatmap Coloration:
🌚 Suppressed volume — congestion, coiling phases
🩱 Stable flow — early trend or resting volume
🏀 High activity — emerging pressure
💔 Extreme — possible climax or institutional print
🎗️ A dynamic Fibonacci-based 21:34-period EMA ribbon overlays the histogram. The fill area inverts color on crossover, providing a real-time read on tempo, expansion, or divergence between price structure and crowd effort.
💡 LTF Usage Suggestions:
• Confirm breakout legs when orange or red zones align with range exits
• Fade overextended moves when red bars appear into resistance
• Watch for rising EMAs and orange volume to front-run impulsive moves
• Combine with volatility suppression (e.g. ATR) to catch compression → expansion transitions
🥂 Ideal Pairings:
• OBVX Conviction Bias — to confirm directional intent behind volume shifts
• SUPeR TReND 2.718 — for directional filters
• ATR Turbulence Ribbon — to detect compression phases
👥 The OBVX Conviction Bias adds a second dimension to ZVOL by revealing whether crowd effort is aligning with price direction or diverging beneath the surface. While ZVOL identifies statistical anomalies in raw volume, OBVX tracks directional commitment using cumulative volume and moving average cross logic. Use them together to spot fake-outs, anticipate structure-confirmed breakouts, or time pullbacks with volume-based conviction.
🔬 ZVOL isn’t just a volume filter — it’s a structural lens. It reveals when crowd effort is meaningful, when it's fading, and when something is about to shift. Designed for structure-aware traders who care about context, not noise.
Market Regime Candle DominanceDescription: This script, "Market Regime Candle Dominance," overlays a TradingView chart to visually identify market regimes—bullish trends, bearish trends, or ranging markets—using adaptive calculations and volatility detection. It dynamically colors candles and highlights the background to indicate current market conditions.
How It Works:
Inputs:
Users define colors for bullish, bearish, and ranging trends, adjust sensitivity thresholds for volatility and trends, and set an adaptive calculation length.
Adaptive Calculation:
A period adjustment factor (calcPeriod) dynamically alters based on the chart's timeframe, ensuring meaningful calculations across different timeframes.
Volatility and Trend Detection:
Using the True Range (ta.tr) and price change (close - close ), the script calculates volatility and trend strength to determine market conditions.
Trend sensitivity is adjustable through thresholds (trendThreshold), enabling finer or broader regime detection.
Market Regime Identification:
Bullish Trend: Detected when trendStrength > trendThreshold.
Bearish Trend: Triggered when trendStrength < -trendThreshold.
Ranging Market: Identified when neither bullish nor bearish trends are present.
Candle Coloring:
Candles are colored according to the market regime:
Green for bullish trends.
Red for bearish trends.
Blue (semi-transparent) for ranging markets.
Background Highlights:
An optional feature (highlightRegime) adds semi-transparent background colors corresponding to the detected regime, enhancing visual clarity of the chart.
Features:
Adaptive Sensitivity: Adjusts the calculation length and thresholds for precision across different chart timeframes.
Customizable Display: Allows users to personalize colors and enable/disable background highlights.
Visual Clarity: Simplifies the identification of market regimes, providing clear direction at a glance.
Buy/Sell Volume ComparisonKey improvements:
Direct volume comparison: Now shows the current day's volume and previous day's volume side by side
Percentage change display: Clear percentage change with up/down arrows
Table position customization: Added a dropdown menu to select where you want the table to appear
To adjust the table position:
Click on the settings (gear icon) for the indicator after adding it to your chart
You'll see a dropdown menu labeled "Table Position"
Select from options like "Top Right", "Bottom Left", etc.
Click "OK" to apply your changes
This version also handles the case where there's no previous volume data (first bar of the chart) by checking for NA values.
Let me know if this meets your requirements, or if you'd like any other adjustments!RetryClaude does not have the ability to run the code it generates yet.Claude can make mistakes. Please double-check responses.Tip: Long chats cause you to reach your usage limits faster.
EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)
🚨 Main Utility: Early Squeeze Warning
The primary function of this indicator is to warn traders early when the market is approaching a "squeeze"—a tightening condition that often precedes significant moves or regime shifts. By visually highlighting areas of increasing tension, it helps traders anticipate potential volatility and prepare accordingly. This is intended to be a statistically and psychologically grounded replacement of so-called "fib-time-zones," which are overly-deterministic and subjective.
📌 Overview
The EMA-Based Squeeze Dynamics indicator projects future regime shifts (such as golden and death crosses) using exponential moving averages (EMAs). It employs historical interval data and current market conditions to dynamically forecast when the critical EMAs (50-period and 200-period) will reconverge, marking likely trend-change points.
This indicator leverages two core ideas:
Behavioral finance theory: Traders often collectively anticipate popular EMA crossovers, creating a self-fulfilling prophecy (normative social influence), similar to findings from Solomon Asch’s conformity experiments.
Bayesian-like updates: It utilizes historical crossover intervals as a prior, dynamically updating expectations based on evolving market data, ensuring its signals remain objectively grounded in actual market behavior.
⚙️ Technical & Mathematical Explanation
1. EMA Calculations and Regime Definitions
The indicator uses three EMAs:
Fast (9-period): Represents short-term price movement.
Medial (50-period): Indicates medium-term trend direction.
Slow (200-period): Defines long-term market sentiment.
Regime States:
Bullish: 50 EMA is above the 200 EMA.
Bearish: 50 EMA is below the 200 EMA.
A shift between these states triggers visual markers (arrows and labels) directly on the chart.
2. Gap Dynamics and Historical Intervals
At each crossover:
The indicator records the gap (distance) between the 50 and 200 EMAs.
It tracks the historical intervals between past crossovers.
An Exponentially Weighted Moving Average (EWMA) of these intervals is calculated, weighting recent intervals more heavily, dynamically updating expectations.
Important note:
After every regime shift, the projected crossover line resets its calculation. This reset is visually evident as the projection line appears to move further away after each regime change, temporarily "repelled" until the EMAs begin converging again. This ensures projections remain realistic, grounded in actual EMA convergence, and prevents overly optimistic forecasts immediately after a regime shift.
3. Gap Momentum & Adaptive Scaling
The indicator measures how quickly or slowly the gap between EMAs is changing ("gap momentum") and adjusts its forecast accordingly:
If the gap narrows rapidly, a crossover becomes more imminent.
If the gap widens, the next crossover is pushed further into the future.
The "gap factor" dynamically scales the projection based on recent gap momentum, bounded between reasonable limits (0.7–1.3).
4. Squeeze Ratio & Background Color (Visual Cues)
A "squeeze ratio" is computed when market conditions indicate tightening:
In a bullish regime, if the fast EMA is below the medial EMA (price pulling back towards long-term support), the squeeze ratio increases.
In a bearish regime, if the fast EMA rises above the medial EMA (price rallying into long-term resistance), the squeeze ratio increases.
What the Background Colors Mean:
Red Background: Indicates a bullish squeeze—price is compressing downward, hinting a bullish reversal or continuation breakout may occur soon.
Green Background: Indicates a bearish squeeze—price is compressing upward, suggesting a bearish reversal or continuation breakout could soon follow.
Opacity Explanation:
The transparency (opacity) of the background indicates the intensity of the squeeze:
High Opacity (solid color): Strong squeeze, high likelihood of imminent volatility or regime shift.
Low Opacity (faint color): Mild squeeze, signaling early stages of tightening.
Thus, more vivid colors serve as urgent visual warnings that a squeeze is rapidly intensifying.
5. Projected Next Crossover and Pseudo Crossover Mechanism
The indicator calculates an estimated future bar when a crossover (and thus, regime shift) is expected to occur. This calculation incorporates:
Historical EWMA interval.
Current squeeze intensity.
Gap momentum.
A dynamic penalty based on divergence from baseline conditions.
The "Pseudo Crossover" Explained:
A key adaptive feature is the pseudo crossover mechanism. If price action significantly deviates from the projected crossover (for example, if price stays beyond the projected line longer than expected), the indicator acknowledges the projection was incorrect and triggers a "pseudo crossover" event. Essentially, this acts as a reset, updating historical intervals with a weighted adjustment to recalibrate future predictions. In other words, if the indicator’s initial forecast proves inaccurate, it recognizes this quickly, resets itself, and tries again—ensuring it remains responsive and adaptive to actual market conditions.
🧠 Behavioral Theory: Normative Social Influence
This indicator is rooted in behavioral finance theory, specifically leveraging normative social influence (conformity). Traders commonly watch EMA signals (especially the 50 and 200 EMA crossovers). When traders collectively anticipate these signals, they begin trading ahead of actual crossovers, effectively creating self-fulfilling prophecies—similar to Solomon Asch’s famous conformity experiments, where individuals adopted group behaviors even against direct evidence.
This behavior means genuine regime shifts (actual EMA crossovers) rarely occur until EMAs visibly reconverge due to widespread anticipatory trading activity. The indicator quantifies these dynamics by objectively measuring EMA convergence and updating projections accordingly.
📊 How to Use This Indicator
Monitor the background color and opacity as primary visual cues.
A strongly colored background (solid red/green) is an early alert that a squeeze is intensifying—prepare for potential volatility or a regime shift.
Projected crossover lines give a dynamic target bar to watch for trend reversals or confirmations.
After each regime shift, expect a reset of the projection line. The line may seem initially repelled from price action, but it will recalibrate as EMAs converge again.
Trust the pseudo crossover mechanism to automatically recalibrate the indicator if its original projection misses.
🎯 Why Choose This Indicator?
Early Warning: Visual squeeze intensity helps anticipate market breakouts.
Behaviorally Grounded: Leverages real trader psychology (conformity and anticipation).
Objective & Adaptive: Uses real-time, data-driven updates rather than static levels or subjective analysis.
Easy to Interpret: Clear visual signals (arrows, labels, colors) simplify trading decisions.
Self-correcting (Pseudo Crossovers): Quickly adjusts when initial predictions miss, maintaining accuracy over time.
Summary:
The EMA-Based Squeeze Dynamics Indicator combines behavioral insights, dynamic Bayesian-like updates, intuitive visual cues, and a self-correcting pseudo crossover feature to offer traders a reliable early warning system for market squeezes and impending regime shifts. It transparently recalibrates after each regime shift and automatically resets whenever projections prove inaccurate—ensuring you always have an adaptive, realistic forecast.
Whether you're a discretionary trader or algorithmic strategist, this indicator provides a powerful tool to navigate market volatility effectively.
Happy Trading! 📈✨