Logótipo de "RollingCorrelation"
Indicador
33 transferências
Versão 1.0, Mar 2026
Windows, Mac
Imagem carregada de "RollingCorrelation"
Desde 16/01/2025
2.58M
Volume negociado
1.95K
Pips ganhos
193
Instalações gratuitas

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.
Perfil do indicador
0.0
Avaliações: 0
Avaliações de clientes
Ainda não há avaliações para este produto. Já o experimentou? Seja o primeiro a contar a outras pessoas!
Forex
Signal
Scalping
Indices
Commodities
Crypto
Stocks
Os produtos disponíveis através da cTrader Store, incluindo bots de negociação, indicadores e plugins, são fornecidos por programadores terceiros e são disponibilizados apenas para fins informativos e de acesso técnico. A cTrader Store não é um corretor e não fornece aconselhamento em matéria de investimento, recomendações pessoais ou qualquer garantia de desempenho no futuro.

Mais deste autor

Indicador
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
Fator de lucro
5.36%
Decréscimo máx.
Indicador
Forex
Crypto
+6
Choppiness Index: identifies trending vs. ranging markets to filter breakouts and improve trend-following entries.

Também poderá gostar de

Indicador
AI
ATR
+13
Stop Loss Pro – Precision Risk Management for Every Trader
Indicador
AI
Prop
+14
Professional Trading Indicator Transform Your Trading with Intelligent Signal Detection RenkoProfit
Indicador
Forex
USDJPY
+1
JPYX Indicator with HMA
Indicador
SMC
Forex
+5
Fear & Greed engine — detects institutional overheating with BB + Percentile signals.
Indicador
Flexible VWAP indicator with timezone-aware, custom time periods and automatic DST handling.
Indicador
Forex
Customizable multi-timeframe pivot point indicator for cTrader with alerts, Fibonacci, CPR, and more!
Indicador
ATR
Forex
+8
High-Tech 3-Level Squeeze Detection with HTF Filter, Carter Entry/Exit Rules, Signal Quality Grading & Real-Time
Indicador
ATR
RSI
+12
Key reversal signals with structure and divergence filtering. Fewer, cleaner entries with real-time confirmation.
Indicador
AI
EURUSD
Future-AI indicator.
Indicador
Prop
Forex
+11
Detects revenge trades in real time and shows exactly how much they've cost you, before the next one makes it worse.
Indicador
VWAP
Forex
+7
VWAP + Swing Liquidity + SFP Signals — detects liquidity sweeps with color-coded alerts.
Indicador
Forex
Flexible Volume Profile, designed with performance in mind.
Indicador
A simple indicator that tracks the value of your open trades in pips.
Logótipo de "BarCount"
Bem avaliado
4.5
(2)
Grátis
Indicador
Bar count
Indicador
Forex
PinPost / Archived - Not Active!
Indicador
Forex
Crypto
+2
An indicator that accurately shows the trend direction. A vital tool for clear trading decisions.
Indicador
ATR
RSI
+5
Gold Emperor: AI-driven XAUUSD dominance. Dynamic pivots, matrix trend logic, and institutional shield protection.
Indicador
RSI
Forex
+2
Candle Pro, Perfect for scalping, intraday, and swing trading.
Desde 16/01/2025
2.58M
Volume negociado
1.95K
Pips ganhos
193
Instalações gratuitas