LogoLogo
Return to StockChartsCharts & ToolsArticlesChartSchoolYour Dashboard
  • 📋ChartSchool
  • Table of Contents
    • Overview
      • Why Analyze Securities?
      • Technical Analysis
      • Fundamental Analysis
      • Random Walk vs. Non-Random Walk
      • Asset Allocation and Diversification
      • John Murphy's 10 Laws of Technical Trading
      • John Murphy's "Charting Made Easy" eBook
      • Technical Analysis 101
        • TA 101 – Part 1
        • TA 101 – Part 2
        • TA 101 – Part 3
        • TA 101 – Part 4
        • TA 101 – Part 5
        • TA 101 – Part 6
        • TA 101 – Part 7
        • TA 101 – Part 8
        • TA 101 – Part 9
        • TA 101 – Part 10
        • TA 101 – Part 11
        • TA 101 – Part 12
        • TA 101 – Part 13
        • TA 101 – Part 14
        • TA 101 – Part 15
        • TA 101 – Part 16
        • TA 101 – Part 17
      • Irrational Exuberance
      • Cognitive Biases
      • Arthur Hill on Goals, Style and Strategy
      • Arthur Hill on Moving Average Crossovers
      • Multicollinearity
      • "The Trader's Journal" by Gatis Roze
        • Stage 1: Money Management
        • Stage 2: Business of Investing
        • Stage 3: The Investor Self
        • Stage 4: Market Analysis
        • Stage 5: Routines
        • Stage 6: Stalking Your Trade
        • Stage 7: Buying
        • Stage 8: Monitoring Your Investments
        • Stage 9: Selling
        • Stage 10: Re-Examine, Refine, Re-Enhance
        • Additional Reading
      • Bob Farrell's 10 Rules
      • Richard Rhodes' Trading Rules
      • Donchian Trading Guidelines
      • Why and How To Use Correlation
    • Chart Analysis
      • What Are Charts?
      • Support & Resistance
      • Trend Lines
      • Gaps and Gap Analysis
      • Introduction to Chart Patterns
      • Chart Patterns
        • Broadening Top or Megaphone Top
        • Double Top Reversal
        • Double Bottom Reversal
        • Head and Shoulders Top
        • Head and Shoulders Bottom
        • Falling Wedge
        • Rising Wedge
        • Rounding Bottom
        • Triple Top Reversal
        • Triple Bottom Reversal
        • Bump and Run Reversal
        • Flag, Pennant
        • Symmetrical Triangle
        • Ascending Triangle
        • Descending Triangle
        • Rectangle
        • Price Channel
        • Measured Move—Bullish
        • Measured Move—Bearish
        • Cup With Handle
      • Chart Types
        • Arms CandleVolume
        • CandleVolume
        • Elder Impulse System
        • EquiVolume
        • Heikin-Ashi Candlesticks
        • Kagi Charts
        • Renko Charts
        • Three Line Break Charts
        • MarketCarpets
        • Relative Rotation Graphs (RRG Charts)
        • Seasonality Charts
        • Yield Curve
      • Candlestick Charts
        • Introduction to Candlesticks
        • Candlesticks and Traditional Chart Analysis
        • Candlesticks and Support
        • Candlesticks and Resistance
        • Candlestick Bullish Reversal Patterns
        • Candlestick Bearish Reversal Patterns
        • Candlestick Pattern Dictionary
      • Point and Figure Charts
        • Point and Figure Basics
          • Introduction to Point & Figure Charts
          • Point & Figure Scaling and Timeframes
          • P&F Trend Lines
        • Classic Patterns
          • P&F Bullish Breakouts
          • P&F Bearish Breakdowns
          • P&F Signal Reversed
          • P&F Catapults
          • P&F Triangles
          • P&F Bull & Bear Traps
        • P&F Price Objectives
          • P&F Price Objectives: Breakout and Reversal Method
          • P&F Price Objectives: Horizontal Counts
          • P&F Price Objectives: Vertical Counts
        • Point & Figure Indicators
        • P&F Scans and Alerts
          • P&F Pattern Alerts
      • Chart Annotation Tools
        • Andrews' Pitchfork
        • Stock Market Cycles
        • Fibonacci Retracements
        • Fibonacci Arcs
        • Fibonacci Fans
        • Fibonacci Time Zones
        • Quadrant Lines
        • Raff Regression Channel
        • Speed Resistance Lines
    • Technical Indicators & Overlays
      • Introduction to Technical Indicators and Oscillators
      • Technical Indicators
        • Accumulation/Distribution Line
        • Alligator Indicator
        • Aroon
        • Aroon Oscillator
        • ATR Bands
        • ATR Trailing Stops
        • Average Directional Index (ADX)
        • Average True Range (ATR) and Average True Range Percent (ATRP)
        • Balance of Power (BOP)
        • Bollinger BandWidth
        • %B Indicator
        • Chaikin Money Flow (CMF)
        • Chaikin Oscillator
        • Chande Trend Meter (CTM)
        • CMB Composite Index
        • Commodity Channel Index (CCI)
        • ConnorsRSI
        • Coppock Curve
        • Correlation Coefficient
        • DecisionPoint Price Momentum Oscillator (PMO)
        • Detrended Price Oscillator (DPO)
        • Distance From Highs
        • Distance From Lows
        • Distance To Highs
        • Distance To Lows
        • Distance From Moving Average
        • Ease of Movement (EMV)
        • Force Index
        • Gopalakrishnan Range Index
        • High Low Bands
        • High Minus Low
        • Highest High Value
        • Linear Regression R2
        • Lowest Low Value
        • Mass Index
        • MACD (Moving Average Convergence/Divergence) Oscillator
        • MACD-Histogram
        • MACD-V
        • MACD-V Histogram
        • Median Price
        • Money Flow Index (MFI)
        • Negative Volume Index (NVI)
        • On Balance Volume (OBV)
        • Percentage Price Oscillator (PPO)
        • Percentage Volume Oscillator (PVO)
        • Performance Spread
        • Price Relative/Relative Strength
        • Pring's Know Sure Thing (KST)
        • Pring's Special K
        • Rate of Change (ROC)
        • Relative Strength Index (RSI)
        • Relative Volume (RVOL)
        • RRG Relative Strength
        • StockCharts Technical Rank
        • Slope
        • Standard Deviation (Volatility)
        • Stochastic Oscillator (Fast, Slow, and Full)
        • StochRSI
        • Traffic Light
        • TRIX
        • True Range
        • True Strength Index
        • TTM Squeeze
        • Typical Price
        • Ulcer Index
        • Ultimate Oscillator
        • Vortex Indicator
        • Weighted Close
        • Williams %R
      • Technical Overlays
        • Anchored VWAP
        • Bollinger Bands
        • Chandelier Exit
        • Double Exponential Moving Average (DEMA)
        • Hull Moving Average (HMA)
        • Ichimoku Cloud
        • Kaufman's Adaptive Moving Average (KAMA)
        • Keltner Channels
        • Linear Regression Forecast
        • Linear Regression Intercept
        • Moving Averages—Simple and Exponential
        • Moving Average Ribbon
        • Moving Average Envelopes
        • Parabolic SAR
        • Pivot Points
        • Price Channels
        • Triple Exponential Moving Average (TEMA)
        • Volume-by-Price
        • Volume-Weighted Average Price (VWAP)
        • ZigZag
    • Market Indicators
      • Introduction to Market Indicators
        • Market Indicator Dictionary
      • Advance-Decline Line
      • Advance-Decline Percent
      • Advance-Decline Volume Line
      • Advance-Decline Volume Percent
      • Arms Index (TRIN)
      • Bullish Percent Index (BPI)
      • DecisionPoint Intermediate-Term Breadth Momentum Oscillator (ITBM)
      • DecisionPoint Intermediate-Term Volume Momentum Oscillator (ITVM)
      • DecisionPoint Swenlin Trading Oscillator (STO)
      • High-Low Index
      • High-Low Percent
      • McClellan Oscillator
      • McClellan Summation Index
      • Net New 52-Week Highs
      • Percent Above Moving Average
      • Pring's Bottom Fisher
      • Pring's Diffusion Indicators
      • Pring's Inflation and Deflation Indexes
      • Pring's Net New High Indicators
      • Put/Call Ratio
      • Record High Percent
      • Volatility Indices
    • Market Analysis
      • Dow Theory
      • Sector Rotation Analysis
      • Intermarket Analysis
      • The DecisionPoint Chart Gallery
      • DecisionPoint Rydex Asset Analysis
      • Wyckoff Analysis Articles
        • Wyckoff Market Analysis
        • Wyckoff Stock Analysis
        • The Wyckoff Method: A Tutorial
      • Elliott Wave Analysis Articles
        • Introduction to Elliott Wave Theory
        • Identifying Elliott Wave Patterns
        • Guidelines for Applying Elliott Wave Theory
    • Trading Strategies & Models
      • DecisionPoint Trend Model
      • Trading Strategies
        • Bollinger Band Squeeze
        • CCI Correction
        • CVR3 VIX Market Timing
        • Faber's Sector Rotation Trading Strategy
        • Gap Trading Strategies
        • Harmonic Patterns
        • Hindenburg Omen
        • Ichimoku Cloud Trading Strategies
        • The 'Last' Stochastic Technique
        • MACD Zero-Line Crosses With Swing Points
        • Moving Average Trading Strategies
          • Finding Support and Resistance in Moving Averages
          • Guppy Multiple Moving Average: An MA Ribbon Designed to Tip the Market’s Hand
          • How To Trade Price-to-Moving Average Crossovers
          • Trading the Bounce: Finding Support and Resistance in Moving Averages
          • Trading the Death Cross
          • Trading Using the Golden Cross
          • Using the 5-8-13 EMA Crossover for Short-Term Trades
        • Moving Momentum
        • Narrow Range Day NR7
        • Percent Above 50-day SMA
        • Percent B Money Flow
        • The Pre-Holiday Effect
        • RSI(2)
        • Six-Month Cycle MACD
        • Slope Performance Trend
        • Stochastic Pop and Drop
        • Swing Charting
        • Trend Quantification and Asset Allocation
    • Index & Market Indicator Catalog
      • Advance-Decline Indicators
      • Cboe Indices and Indicators
      • CME Futures and Spot Prices
      • DecisionPoint Sentiment Indicators
      • Dow Jones Breadth Indicators
      • Dow Jones Global Indices
      • Dow Jones Select Indices
      • Dow Jones Titans Indices
      • Dow Jones US Indices
      • Economic Indicators
      • ICE Futures and Spot Prices
      • Intellidex Indices
      • MSCI Indices
      • New 52-week Highs and Lows for Exchanges
      • NYSE Arca Equity Indices
      • NYSE Equity Indices
      • Philadelphia Indices
      • S&P 500 Sector and Industry Groups
      • S&P GSCI Indices
      • StockCharts AD Percent
      • StockCharts AD Volume Percent
      • StockCharts Bullish Percent Index
      • StockCharts High-Low Index
      • StockCharts High-Low Percent
      • StockCharts Percent Above Moving Average
      • StockCharts Pseudo Symbols
      • StockCharts Record High Percent
      • StockCharts Theoretical Indices
      • US Treasury Yields
    • 📖Glossary
      • 📖Glossary - A
      • 📖Glossary - B
      • 📖Glossary - C
      • 📖Glossary - D
      • 📖Glossary - E
      • 📖Glossary - F
      • 📖Glossary - G
      • 📖Glossary - H
      • 📖Glossary - I
      • 📖Glossary - J
      • 📖Glossary - K
      • 📖Glossary - L
      • 📖Glossary - M
      • 📖Glossary - N
      • 📖Glossary - O
      • 📖Glossary - P
      • 📖Glossary - Q
      • 📖Glossary - R
      • 📖Glossary - S
      • 📖Glossary - T
      • 📖Glossary - U
      • 📖Glossary - V
      • 📖Glossary - W
      • 📖Glossary - X, Y, Z
    • Options Glossary
    • Educational Resources
Powered by GitBook
LogoLogo

ON STOCKCHARTS

  • Charts & Tools
  • Articles
  • StockCharts TV
  • ChartSchool

MEMBERS

  • Your Dashboard
  • Your ChartLists
  • Advanced Scans
  • Technical Alerts

HELP

  • Support Center
  • FAQs
  • Contact Us
  • Pricing

COMPANY

  • About Us
  • What's New
  • Careers
  • StockCharts Store

© StockCharts.com, Inc. All Rights Reserved.

On this page
  • Introduction to Correlation Coefficient
  • How Correlation Coefficient Is Calculated
  • Interpreting Correlation Coefficient
  • Diversification: Investing in Non-correlated Securities
  • The Bottom Line
  • Correlation Coefficient: How to Find
  • Using With SharpCharts
  • Using With StockChartsACP
  • Suggested Scans
  • Portfolio Diversification

Was this helpful?

Export as PDF
  1. Table of Contents
  2. Technical Indicators & Overlays
  3. Technical Indicators

Correlation Coefficient

PreviousCoppock CurveNextDecisionPoint Price Momentum Oscillator (PMO)

Last updated 11 months ago

Was this helpful?

Introduction to Correlation Coefficient

The Correlation Coefficient is a statistical measure that reflects the correlation between two securities. In other words, this statistic tells us how closely one security is related to the other. The Correlation Coefficient is positive when both securities move in the same direction (up or down) and negative when the two securities move in opposite directions. Determining the relationship between two securities is useful for analyzing intermarket relationships, sector-stock relationships and sector-market relationships. This indicator can also help investors diversify by identifying securities with a low or negative correlation to the stock market.

How Correlation Coefficient Is Calculated

The calculation for the Correlation Coefficient is complicated, so feel free to skip this section. We will look at the basics to see some of the methods behind the madness. This indicator is at the heart of classical statistics. The first step is to select two securities. In this example, we will use Intel (INTC) and the Nasdaq 100 ETF (QQQ). Namely, we want to see the degree of correlation between Intel and QQQ. The Excel table below lays out the groundwork.

  • The INTC column shows stock prices over a 20-day period with an average at the bottom.

  • The QQQ column shows the same for QQQ.

  • The following two columns show each period's price squared with the average at the bottom.

  • The last columns show INTC multiplied by QQQ for each period with an average at the bottom.

Using the bottom row, you can now compute the Variance, Covariance, and Correlation Coefficient. The Excel formula is shown alongside the long formula. As seen above, Intel showed a strong positive correlation (+0.95) with the Nasdaq 100 ETF over the 20-day period.

Click below to download the Excel spreadsheet that shows the Correlation Coefficient in action. Some numbers may differ slightly due to rounding issues.

Interpreting Correlation Coefficient

The correlation coefficient oscillates between -1 and +1. It is not a momentum oscillator, however. Instead, it moves from periods of positive correlation to periods of negative correlation. +1 is considered perfect positive correlation, which is rare. Anything between 0 and +1 indicates that two securities move in the same direction. The degree of positive correlation is likely to vary over time. Oil stocks and oil are positively correlated most of the time. The example below shows the Energy SPDR (XLE) with Spot Light Crude ($WTIC). Unsurprisingly, the 20-day Correlation Coefficient remains largely positive with regular forays above +.75. There is clearly a positive relationship between these two securities. In general, anything above .50 shows a strong positive correlation.

At the other end of the spectrum, -1 is considered perfect negative correlation, which is rare. Anything between 0 and -1 indicates that two securities move in opposite directions. The degree of negative correlation is likely to vary over time. Gold and the Dollar are the first two securities that come to mind for a negative correlation. The chart below shows Spot Gold Spot ($GOLD) with the US Dollar Index ($USD). Although the Correlation Coefficient spends a fair amount of time in positive territory, it is negative the majority of the time. In general, anything below -.50 shows a strong negative correlation.

Diversification: Investing in Non-correlated Securities

The correlation coefficient can identify non-correlated securities, which is essential in developing a diversified portfolio. Unsurprisingly, the nine S&P sectors are mostly positively correlated with the S&P 500. However, some are more positively correlated than others. For example, the Technology ETF (XLK) and Consumer Discretionary SPDR (XLY) have a strong positive correlation with the S&P 500. The correlation coefficient examples below are based on 50 days. The Consumer Discretionary sector dipped below 0.50 only once in the last three years. The Technology sector never dipped below 0.50 as tech stocks remained strongly correlated to the market. In contrast, the correlation coefficient for the Consumer Staples sector dipped below 0.50 a few times and the correlation coefficient for the Utilities sector even dipped below zero twice. This indicator shows us that Consumer Staples and Utilities are less correlated to the S&P 500 than the Consumer Discretionary and Technology sectors.

To truly diversify from stocks, it is often necessary to look outside of the stock market. The chart below shows four exchange-traded funds (ETFs) that have many periods of negative correlation with the stock market (using SPY as a proxy). Notice how the correlation coefficients dip below zero numerous times. In this example, the 50-day correlation coefficient is used. The 20+ year Bond ETF (TLT) represents bonds, which are negatively correlated with stocks most of the time. Gold (red) moves between periods of positive and negative correlation. On the whole, it has been more positively correlated than negative. The Yen Trust (green) appears to split its time between periods of positive and negative correlation. Surprisingly, the US Dollar Fund (UUP) shows a propensity to be negatively correlated with the stock market.

The Bottom Line

The correlation coefficient tells us the relationship between two securities. Over a given time period, the two securities move together when the Correlation Coefficient is positive. Conversely, the two securities move in opposite directions when the Correlation Coefficient is negative. The examples above show 20-day and 50-day Correlation Coefficients. Longer-term investors may use 150 or even 250 days (one year) for smoother lines that reflect longer-term relationships.

Correlation Coefficient: How to Find

The correlation coefficient is available as an indicator in SharpCharts and StockChartsACP.

Using With SharpCharts

The correlation coefficient is available in SharpCharts under “indicators.” First, you'll need to create a chart with the base security.

  1. Enter the symbol in the symbol box at the top of the chart (INTC).

  2. Select Correlation as an indicator in the drop-down menu.

  3. Enter the symbol for the other security and the timeframe in the parameters box ($SPX,10). The two are separated by a comma.

Using With StockChartsACP

The correlation coefficient is included in StockChartsACP in the Standard Indicators list.

  1. Pull up a chart by entering the symbol in the symbol box.

  2. Select Correlation from the indicators listed in the menu on the left

  3. Select the settings icon next to the indicator name to change the parameters. The Benchmark Symbol will be the symbol you entered. Enter the symbol for comparison in the Symbol box, select the number of periods for the indicator.

Suggested Scans

Portfolio Diversification

This scan reveals ETFs that are inversely correlated (moving in the opposite direction of) the S&P 500 index. This can be useful for diversifying an investment portfolio. The first clause limits the scan results to ETFs, excluding ultra and inverse ETFs. The second clause looks for those ETFs that have a negative correlation with $SPX over the last 200 trading days.

[group is ETFNOUI] 
AND [Correlation(200,$SPX) < 0] 
RANK BY [Correlation(200,$SPX)]

The example below shows Intel in the main window with the 10-day correlation coefficient in the indicator window. This shows how Intel correlates with the S&P 500. Note, for comparison, the S&P 500 price plot (red dashed) is placed behind the Intel price plot. for a live chart with the correlation coefficient.

For more details on the syntax to use for Correlation scans, please see our in the Support Center.

Click here
Scanning Indicator Reference
35KB
cs-corrcoef.xls
Correlation Coefficient - Excel Example
Correlation Coefficient - Intel
Correlation Coefficient - Oil and Oil Stocks
Correlation Coefficient - Gold and Dollar
Correlation Coefficient - Sectors
Correlation Coefficient - Other Assets
Correlation Coefficient - Intel SharpCharts
Correlation Coefficient - SharpCharts