Pearson's Correlation Coefficient (r)
Under the Hood
CORREL calculates Pearson's correlation coefficient (r) between two price series over a specified period (default 30), measuring the strength and direction of their linear relationship. The coefficient ranges from -1 to +1: +1 indicates perfect positive correlation (move together), -1 indicates perfect negative correlation (move oppositely), and 0 indicates no linear relationship. CORREL uses statistical covariance divided by the product of standard deviations. This is the standard correlation measure used across quantitative finance.
In Practice
Cryptocurrency traders use CORREL to identify pairs for spread trading, diversification, or correlation-based strategies. When two crypto assets have high positive correlation (CORREL > 0.8), they move together, making them poor diversification but good for relative strength trading. Low or negative correlation (CORREL < 0.3) indicates diversification benefits. CORREL is essential for pairs trading (finding divergences in correlated pairs), portfolio construction (avoiding correlated positions), and market regime analysis (how altcoins correlate with Bitcoin). It's heavily used by quantitative traders, statistical arbitrageurs, and portfolio managers.
Build automated strategies using Pearson's Correlation Coefficient and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.