All indicators

The Echo Forecast

By LuxAlgoOct 4, 2021

The Echo Forecast is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

The Echo Forecast brings analog forecasting to the chart: it searches past data for the window whose values best correlate with (or, in dissimilar mode, least correlate with) the latest ones, then replays that matched window's own bar-to-bar changes forward from the latest bar. Similarity is scored with correlation coefficients, a choice well suited to periodic series, and every ingredient of the forecast is drawn on the chart so nothing about it is a black box.

How to Trade The Echo Forecast?

  • Orange segment: the benchmark window of recent price action the search tries to match.
  • Green segment: the best-matching (or most dissimilar) historical window, located inside the gray search zone.
  • Forecast: the projection built by replaying the matched window's own changes from the latest bar, extended over the forecast horizon.
  • Detrend first: the method rewards detrended, periodic inputs, such as smooth or momentum oscillators, over raw trending price.

Beyond prediction, the drawing itself is useful: it highlights which stretch of history most resembles the present, a quick way to study how comparable conditions previously resolved.

The Echo Forecast Settings

  • Evaluation Window: the window used to hunt for similar or dissimilar history; the total evaluation span combines the Forecast Window and Evaluation Window.
  • Forecast Window: the forecast's time horizon.
  • Forecast Mode: match toward similarity or dissimilarity.
  • Forecast Construction: 'Cumulative' stacks the matched changes onto the latest price, 'Mean' blends them with the benchmark window's average, and 'Linreg' combines them with a linearly extrapolated regression fit.
  • Source: the series being forecast.

Frequently Asked Questions

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 strategy alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.