present
Sign up and get $50 off your first purchase
Trading product for RollingCorrelation Indicator Forex Signal, image 1
RollingCorrelation
Indicator
51 downloads
Version 1.0, Mar 2026
Windows, Mac
Trading product for RollingCorrelation Indicator Forex Signal, image 2
Since 16/01/2025
2.91M
Traded volume
2.02K
Pips won
343
Free installs

Description

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.

Summary

AI summary
RollingCorrelation is a technical indicator that calculates the rolling 1-period Pearson correlation of close prices over a configurable window, typically set to 20 bars. It measures the lag-1 autocorrelation of price data, producing values between -1 and +1. Values near +1 indicate strong positive autocorrelation, suggesting trend continuation, while values near -1 indicate strong negative autocorrelation, signaling oscillatory or reversal behavior. Values near zero imply little or no linear autocorrelation.

For each bar, the indicator computes the Pearson correlation coefficient between the series of close prices and the same series shifted by one bar within the specified period. This calculation uses standard covariance and variance formulas to generate a single correlation value per bar.

Traders can use this indicator to identify trend strength or potential reversals, applying threshold crossings or sustained changes in correlation as signals. It is useful for trend-following strategies when correlation is positive and for mean-reversion tactics when correlation is negative. The indicator can be combined with volatility filters and other trend indicators for confirmation. It supports various markets including Forex, stocks, indices, commodities, and cryptocurrencies, and is applicable across multiple timeframes from scalping (M1–M15) to swing trading.

The indicator requires at least Period+1 bars to compute values and is intended as a supplementary tool rather than a standalone trading system.
Indicator profile

Customer reviews

0.0
Reviews: 0
Customer reviews
No reviews for this product yet. Already tried it? Be the first to tell others!

Discussion

FAQ

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
Indicator
Forex
Crypto
+6
Choppiness Index: identifies trending vs. ranging markets to filter breakouts and improve trend-following entries.

You may also like

Indicator
Signal
Breakout
+1
Bolliger Bands + Hamster-Coderβ„’ Timeframe Decoupling
Indicator
BOS
MSS
+5
One indicator, full ICT/SMC picture β€” structure, OBs, FVGs, liquidity, Premium/Discount β€” with graded PRIME/SETUP signal
Indicator
Fibonacci
Key Levels
+5
Institutional Nasdaq-100 Auto-Fib Playbook for cTrader. Dynamic ICT 70.5% OTE Engine, NY Session Tracker, Real-Time Poin
Indicator
ATR
SMC
+18
Precision SMC tool with HTF sweeps, MSS confirmation & smart FVG detection for high-probability reversals.
Indicator
RSI
MACD
This indicator is a combination of MACD and RSI into one. This is perfect fusion and powerful indicator ever.
Indicator
BOS
CHOCH
+5
BOS/CHoCH signals confirmed by liquidity sweep + FVG confluence, with a live conviction score.
Indicator
BOS
CHOCH
+5
MyZTrade High TF candle is a multi-timeframe visualisation tool that overlays completed higher-timeframe candles.
Indicator
AI
ATR
+12
The standard Relative Strength Index (RSI), RSI & Signal Cloud, Smart Volatility Filter (ATR), On-Chart Info Dashboard
Indicator
Forex
Crypto
+5
Fixed Range Volume Profile (FRVP) : analyzes price volume within a custom rectangle to find POC, VAH, and VAL.
Indicator
This indicator is designed to display customizable moving averages (MAs) on a chart.
Indicator
AI
RSI
+18
Session boxes with UTC offset, OR logic, adjustable opacity, and multi-day lookback.
Indicator
Forex
Crypto
Bar Close Alert Manager provides real-time alerts for bar closures with customizable notifications and automation.
Indicator
AI
ATR
+19
Market Cipher A
Indicator
Prop
Forex
+7
The Parabolic SAR, or "Stop and Reverse," is a dynamic technical analysis tool.
Indicator
ATR
RSI
+5
One of the best indicators we have ever developed, with a very high profit ratio.
Indicator
AI
ATR
+27
Want a cBot based on this indicator? Contact us!
Indicator
BOS
MSS
+2
Stay ahead with a real-time countdown to candle closes on all key timeframes: 5m, 15m, 30m, 1H, 4H, and Daily.
Indicator
Prop
Forex
+11
😎Read the description before purchasingπŸ’©

Price

Since 16/01/2025
2.91M
Traded volume
2.02K
Pips won
343
Free installs