Article 10 of 34

    Compare Feature & Overlay Analysis

    Relative strength, correlation analysis, and pairs trading using the Compare tool.

    Rohit SinghMr. Chartist 5 April 2026 11 min read

    The 'Compare' feature in TradingView is arguably the most powerful yet underutilized tool on the platform. It enables you to overlay multiple assets on a single chart—revealing macroeconomic correlations, relative strength, and sector rotation patterns that are completely invisible when viewing instruments in isolation.

    Institutional fund managers do not look at single stocks in a vacuum; they analyze how capital flows between sectors, asset classes, and geographies. By mastering the Compare tool and custom Spread Charts, you can replicate this institutional workflow directly within your charting interface.

    1. The Power of the Compare Tool

    With access to over 3,539,722 instruments, the Compare feature (accessed via the '+' icon on the top toolbar) lets you instantly overlay any two or more assets onto your primary canvas.

    This tool transforms your view from absolute performance to relative performance. For example, knowing that an IT stock went up 5% is good, but knowing it went up 5% while the broader IT index went down 2% is actionable intelligence. That represents severe relative strength.

    When you add a symbol via the Compare menu, TradingView plots it as a clean Line chart by default, ensuring your primary candlestick chart remains readable without visual clutter.

    1. The Power of the Compare Tool
    InfiniteOverlay Combinations
    3Scaling Modes
    100+Global Exchanges
    FeaturesTradingViewTraditional Brokers
    Price ScalingIndependent scales per assetForced single scale
    Percentage ViewAutomatic normalizationManual calculation required
    Asset ClassesMix Crypto, Stocks, FXOften siloed by exchange

    Key takeaways

    • Spot pricing divergences instantly (e.g., Nifty hits a new high, but Bank Nifty fails to confirm).
    • Track relative momentum to identify which market sectors are currently absorbing institutional capital.
    • Overlay global benchmarks (S&P 500, Nasdaq) against Indian indices to gauge global correlation.

    2. Overlay vs. New Pane (Scale Mastery)

    The biggest mistake traders make when comparing symbols is ignoring the scale. If you try to overlay a ₹80,000 MRF stock on a ₹25,000 Nifty chart using a standard price scale, the chart will flatten out and become unreadable.

    TradingView provides three distinct scaling methods when you add a comparison symbol. Understanding these is critical to keeping your charts functional.

    2. Overlay vs. New Pane (Scale Mastery)

    Same % Scale (Relative Performance)

    • The absolute best option for comparing performance.
    • Anchors both assets at 0% on the left side of the screen.
    • Shows which asset grew or fell by a larger percentage over the visible time range.

    New Price Scale (Dual Axis)

    • Adds a separate vertical axis (usually on the left).
    • Allows both assets to fluctuate visually according to their own price levels.
    • Best for comparing highly correlated assets with different nominal prices.

    New Pane (Isolated View)

    • Pushes the comparison symbol into a completely separate box below the main chart.
    • Prevents any overlapping of candlesticks or lines.
    • Best when applying separate indicators to the compared symbol.

    Critical warning

    If your chart suddenly 'flattens out' into a straight line after adding a symbol, it means you have a massive price mismatch on a standard scale. Right-click the scale and check 'Percentage' or move the overlay to a 'New Pane'.

    3. Advanced: Ratio Spread Charts (Math Operations)

    While the Compare tool overlays two separate lines, TradingView's hidden superpower is the ability to do mathematical operations directly in the Symbol Search bar to create a singular 'Spread Chart'.

    By typing a formula like `[Symbol A] / [Symbol B]`, the TradingView servers will divide the price of Asset A by Asset B at every single historical data point, generating a brand new custom line chart.

    If you type `NSE:TCS / NSE:CNXIT`, you are creating a pure Relative Strength line. If this line is trending upwards, TCS is mathematically outperforming the broader IT sector, regardless of whether the overall market is in a bull or bear phase. This entirely isolates the stock's intrinsic momentum.

    Division (Relative Strength)

    • Syntax: `Asset A / Asset B`
    • Example: `NSE:RELIANCE / NSE:NIFTY`
    • Rising line = Asset A is outperforming.
    RELIANCE2,950+1.25% TodayStrong Buy

    Subtraction (Yield & Premium)

    • Syntax: `Asset A - Asset B`
    • Example: `NIFTY F1! - NSE:NIFTY`
    • Tracks the premium/discount between Spot and Futures.
    1,5601,5201,4801,4401,4001,3601,430.80RELIANCE, 1D

    Multiplication (Currency Adjustment)

    • Syntax: `Asset A * Currency`
    • Example: `MCX:GOLD1! * FX_IDC:USDINR`
    • Adjusts domestic commodity prices against currency fluctuations.
    RELIANCE — Price vs RevenueRevenue (₹ Cr)PriceEPSQ1 24Q2 24Q3 24Q4 24Q1 25Q2 25Q3 251,6001,5001,4001,3001,200

    Professional tip

    You can apply technical indicators directly to Spread Charts! Try adding an RSI or a Moving Average to a `TCS / NIFTY` ratio chart to generate systematic entry signals based purely on relative momentum.

    4. Institutional Use Cases (Indian Markets)

    How do professional fund managers use these tools in the Indian context? They use them to hunt for sector rotation, execute pairs trades, and monitor macroeconomic divergence.

    Financials — RELIANCENSE · QuarterlyIncome statementBalance sheetCash flowRatiosQ4 2025Q3 2025Q2 2025Q1 2025Q4 2024Total revenue2,43,8642,35,0932,31,4592,16,2572,32,722Cost of goods sold1,56,2901,51,8421,49,8101,38,4261,50,965Gross profit87,57483,25181,64977,83181,757Operating expenses28,45027,83026,95025,60027,200Operating income59,12455,42154,69952,23154,557Net income21,93019,87818,95117,61219,299EPS — basic32.3729.3427.9726.0028.49EPS — diluted32.3729.3427.9726.0028.49₹ Cr · All values in Crores

    Spotting Sector Rotation

    • Compare `NSE:BANKNIFTY` against `NSE:NIFTY`.
    • When the ratio breaks out of a downtrend, it signals that institutional money is rotating heavily into Banking stocks to drive the next leg of the bull market.

    Statistical Pairs Trading

    • Create a spread between highly correlated peers, like `NSE:HDFCBANK / NSE:ICICIBANK`.
    • When the ratio hits an extreme historical standard deviation, traders short the outperformer and buy the underperformer, betting on mean reversion.
    RELIANCE2,950+1.25% TodayStrong Buy

    Macro Correlations

    • Overlay `USOIL` (Crude) on an `NSE:INDIGO` (Aviation) chart.
    • Because aviation fuel is a massive cost, spikes in Crude often heavily inverse-correlate with airline stock performance. Tracking this overlay provides early warning signals.
    1,5601,5201,4801,4401,4001,3601,430.80RELIANCE, 1D

    The Compare and Spread tools transform your chart from a basic single-asset view into a multi-dimensional, institutional-grade analytical canvas.

    Unlock TradingView Pro

    More charts per layout, custom timeframes and more indicators per chart.

    Claim TradingView upgrade

    Common questions

    Click the '+' (Compare) button on the top toolbar next to your symbol name, then search for the second symbol. It will overlay on your chart. For the best visual comparison, ensure you right-click the price scale and select 'Percentage', which anchors both stocks at 0% and tracks their relative growth perfectly.

    Official TradingView resources

    Keep reading

    Your privacy, your choice

    Essential storage keeps sign-in and preferences working. Optional analytics helps improve the website. Read our Privacy Policy.

    Privacy settings

    Essential sign-in storage and your saved preferences stay enabled. Analytics is optional, and you can change your choice anytime.

    Turning analytics off clears our analytics cookies and local assistant metrics. The page reloads to stop a previously loaded analytics service. Your account and learning progress stay saved.

    Read the Privacy Policy