"RollingCorrelation" logo
Indicator
35 downloads
Version 1.0, Mar 2026
Windows, Mac
"RollingCorrelation" uploaded image
Since 16/01/2025
2.61M
Traded volume
1.97K
Pips won
243
Free installs

RollingCorrelation computes the rolling Pearson correlation between each close price and its 1-bar lag over a configurable window. The indicator returns values in the range [-1, 1], where values near +1 indicate strong positive autocorrelation (trend continuation), values near -1 indicate strong negative autocorrelation (oscillatory or reversal behavior), and values near 0 indicate little or no linear autocorrelation.

How it works For each bar it computes the Pearson correlation coefficient between the series of close prices and the same series shifted by one bar across the specified Period window (default 20). The implementation uses the standard covariance / variance formula to produce a single correlation value per bar.

Inputs

  • Period (int, default 20): number of bars in the rolling window. The indicator needs at least Period+1 bars to compute the first value.

Output

  • Correlation (line): rolling correlation value for each bar, range [-1, 1].

Interpretation & practical use

  • Near +1: price shows strong persistence โ€” recent moves likely to continue (useful for trend-following signals).
  • Near -1: strong negative autocorrelation โ€” price often reverses from one bar to the next (useful for mean-reversion tactics).
  • Near 0: no consistent linear relationship at lag 1 โ€” price movement appears random over the window.
  • Typical signal patterns: threshold crossings (e.g., >0.6 or <โˆ’0.6), sustained increases/decreases in correlation, divergence between price and correlation, or filtering entries from other systems (require correlation > 0.5 for trend entries, or < โˆ’0.5 for reversal setups).

Trading ideas

  • Combine with volatility filters (ATR) to avoid signals during low-volatility noise.
  • Use alongside trend indicators (moving averages, MACD) to confirm direction when correlation is positive.
  • Use as a short-term mean-reversion trigger when correlation is strongly negative and price is at a support/resistance level or extreme Bollinger band.
  • Short timeframes (e.g., M1โ€“M15) & shorter periods can be used for scalping; longer periods/timeframes for swing confirmation.

Recommended settings

  • Default Period = 20 works well as a starting point.
  • Short-term: Period 8โ€“14 (scalping / intraday).
  • Medium-term: Period 20โ€“50 (swing / trend confirmation).
  • Avoid setting Period too large on very noisy symbols or very small on very slow-moving instruments.

Limitations and notes

  • Requires at least Period+1 bars to compute values.
  • If the price variance inside the window is zero (flat prices), the correlation denominator may be zero โ€” this can produce NaN/undefined results. Use sensible Period values and ensure instrument has sufficient price movement.
  • This indicator measures linear lag-1 correlation only; it does not detect nonlinear relationships or multi-bar lags.
  • Not a standalone trading system โ€” best used as a filter or confirmation tool in a strategy.

Suggested examples to include in gallery

  • EURUSD H1 with Period=20 showing strong correlation during a trending phase.
  • BTCUSD 1H showing oscillatory behavior and negative correlation periods.
  • XAUUSD 15m showing scalping use with short Period.
Indicator profile
0.0
Reviews: 0
Customer reviews
No reviews for this product yet. Already tried it? Be the first to tell others!
Forex
Signal
Scalping
Indices
Commodities
Crypto
Stocks
Products available through cTrader Store, including trading bots, indicators and plugins, are provided by third-party developers and made available for informational and technical access purposes only. cTrader Store is not a broker and does not provide investment advice, personal recommendations or any guarantee of future performance.

More from this author

Indicator
Forex
Crypto
+5
QQE osc. Smoothed RSI with ATR-based smoothing that generates crossover and level-based signals, supports MTF
cBot
ATR
RSI
+22
FusionStack is a configurable multi-signal trading system for cTrader (cAlgo) built around weighted decision scoring.
3.94
Profit factor
5.36%
Max drawdown
Indicator
Forex
Crypto
+6
Choppiness Index: identifies trending vs. ranging markets to filter breakouts and improve trend-following entries.

You may also like

Indicator
Forex
Crypto
+3
Consecutive Series Moves โ€” Reveal the True Pulse of Price Action
Indicator
Signal
Momentum oscillator identifying reversals using dual WaveTrend lines, histogram, and OB/OS levels with optional signals.
Indicator
BOS
Fibonacci
+4
Automatically draws major trading sessions, killzones, and SMC daily liquidity targets directly on your cTrader charts.
Indicator
Market Sessions is very important for traders.
Indicator
SMC
Prop
+13
Perfect for traders who demand a clear overview of multiple timeframes at a glance.
Indicator
ATR
Prop
+15
Initial Range โ€“ Where the open writes the script.
Indicator
Forex
BTCUSD
+5
Trend analysis, automatic analysis, position, swingtrader, scalper
Indicator
Liquidity Grab
Liquidity Sweep
+1
CRT Sweep Tracker is an advanced panel for Candle Range Theory (CRT) traders to track HTF sweeps and manage live trades.
Indicator
AI
SMC
+4
Weekly Daily Opening Gaps โ€” NWOG & NDOG Indicator Professional-grade opening gap visualization for institutional traders
Indicator
Volume
Key Levels
+4
Session & Kill Zone Highlighter - Visual tool for London, NY, Tokyo, Sydney sessions plus ICT Kill Zones.
Indicator
SMC
BTCUSD
+9
Detects CHoCH breakouts, draws interest zones & auto Fibo. Built for Smart Money & Price Action Engulfing confirmation
Indicator
The long awaited new and improved Supply Demand Premium V2 indicator. Unlock greater trading opportunities now!
Indicator
ATR
RSI
+5
Delta RSI Candle Pro, the indicator that transforms ordinary candlesticks into powerful momentum visualizers.
Indicator
ATR
SMC
+2
HTF POWER 3 ICT Power of 3 ยท M1 Precision ยท H4 Intelligence Auto-detect Accumulation โ†’ Manipulation โ†’ Distribution
Indicator
RSI
SMA
+1
TradingView RSI replica for cTrader with dynamic gradients, automatic divergence detection, and alerts.
Indicator
Forex
Signal
+1
Innovative indicator that highlights trend direction and momentum strength quickly and clearly on Forex charts.
Indicator
Prop
Forex
+5
Half Trend BT by BullittTraders
Indicator
ATR
SMC
+15
Plot ATR-based SL and 1R/2R/3R TPs instantly for any trade, with clear R-multiple risk mapping.
Since 16/01/2025
2.61M
Traded volume
1.97K
Pips won
243
Free installs