Skip to content
All library documents

Historical Pattern Matching with Correlation-Based Price Projections

Article ProRealCode

Summary

The Echo Chamber indicator searches past price data for the segment whose closing-price sequence has the highest Pearson correlation with the most recent sequence. It then takes the price path that followed the historical match, scales its range to the current window’s high-low range, anchors it to the latest close, and draws a forward projection. A marked historical segment and a panel showing the match correlation and date help identify the source of the projection.

The described defaults use a 20-bar pattern, a 500-bar search window, and a 20-bar projection. The document advises caution for low correlations, but correlation measures similarity within the matched sample and does not establish that subsequent price behavior will repeat. It gives no out-of-sample results, comparison with baselines, or uncertainty estimates, so the projection is best treated as a scenario for investigation rather than a forecast with demonstrated reliability.

Key ideas

  • The indicator searches historical closing-price sequences for the segment most correlated with the latest pattern.
  • It projects the price path following that match after scaling its range to the current window and anchoring it to the latest close.
  • The chart displays the selected historical segment, projected path, correlation, and match date.
  • The described settings use a 20-bar comparison, a 500-bar lookback, and a 20-bar projection.
  • A strong in-sample correlation does not demonstrate predictive power, and no validation results are provided.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.