Skip to main content
On this page

How to Overlay Two Charts in TradingView for Correlation Analysis

· 4 min read
Pineify Team
Pine Script and AI trading workflow research team

Use TradingView's Compare symbols control to add a second price series, then choose a scale that matches the question. Percentage comparison, separate price axes and separate panes are display options within the same workflow.

How to Overlay Two Charts in TradingView: A Complete Guide for Traders

Add the Second Symbol​

Open the base chart, select the Compare symbols control in the top toolbar and search for the exact exchange and ticker. Choose how to display the result. TradingView's comparison guide documents three options:

OptionUse
Same % scaleCompare percentage changes over a common displayed period
New price scaleSee each instrument's actual quoted price on its own axis
New paneSeparate overlapping series into distinct panels

Compare does not inherently put every series into a separate pane. An overlay does not require both instruments to use the same price axis.

Understand Percentage Rebasing​

With the same percentage scale, both series start from zero at the first visible bar. Scrolling or zooming changes that reference point, so the displayed percentage changes can move. This is expected rebasing, not necessarily a bug caused by different nominal prices.

For a reproducible comparison, record the exact period, symbol source, currency, session and adjustment settings. Compare the same dates. A price-return chart should not be described as a total-return comparison without checking dividend treatment.

Use Separate Price Scales Carefully​

Separate axes preserve the units of each instrument, but their vertical positions and slopes can look similar because each scale is fitted independently. A crossing between lines on different axes is not an economic equality or an automatic trade signal.

Inspect the selected series' scale assignment through its context menu. For a price-based indicator intended to align with the main instrument, TradingView's scale guidance recommends pinning it to the appropriate shared scale. That is a different task from comparing two assets with different units.

Separate Comparison From Correlation​

An overlay can suggest periods of co-movement or divergence, but it does not calculate a statistical correlation or prove that one asset leads another. Define the return interval and sample window for a numerical comparison. Shared trends in price levels can make visual similarity misleading.

For relative performance, use a common percentage baseline or an explicitly defined ratio. Check currency effects, market hours and missing bars. A chart of two related assets is a starting point for analysis, not evidence of a profitable relationship.

Pineify Website

Pineify can help draft multi-symbol or timeframe logic. Pine uses supported data requests; createStudy() belongs to TradingView's separate JavaScript chart-library API and is not a Pine function. Review data alignment and confirmed-bar behavior in any generated script.

Save and Troubleshoot the Layout​

Save the chart layout after adding and styling the series. Changing the main symbol may leave the comparison symbol in place; verify the intended pair rather than assuming a watchlist automatically selects a new benchmark.

On mobile, use the available Compare/Add symbol control and inspect the resulting legend and scale. If a series is missing, check its exact ticker, history coverage, session and visibility before assuming a broker-specific symbol is required.

FAQ​

Why do percentage values change when I zoom? The visible starting bar sets the baseline. Fix the comparison period when recording results.

Does a new price scale solve every distorted chart? No. Choose percentage comparison for relative performance and separate axes for actual price levels. Inspect which series is attached to each scale.

Can I infer correlation by looking at the lines? You can form a hypothesis. Measure returns over a defined window before making a statistical claim.