# Historical Price Projection

Pick any stretch of past price action and this tool replays its behavior forward from an anchor you set, producing a projected path plus a configurable forecast area. A growth factor from 0 to 100 injects drift drawn from the anchored period's own returns, shifting the projection's expectancy. For traders who study how market phases rhyme.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Mar 7, 2024.
- Access: free.
- Concepts: [kNN Analog Forecasting](https://www.luxalgo.com/library/concept/knn-analog-forecasting/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn21fq002svhsgwyxenxq0
- Page: https://www.luxalgo.com/library/indicator/historical-price-projection/

**Historical Price Projection** plots a forward price path that mimics the behavior of a historical window you choose, anchored by clicking a bar on the chart or entering a date in the settings. It is a hands-on relative of [analog forecasting](https://www.luxalgo.com/library/concept/knn-analog-forecasting/), but instead of an algorithm hunting for the closest match, you select the analog yourself: an accumulation phase, a distribution, a crash, any period whose rhythm you expect the market to echo. Up to 500 bars from the anchor feed the projection, and an optional growth factor layers drift on top of the raw replay.

## How to Trade the Historical Price Projection?

- **Growth Factor at 0**: the cleanest configuration. The projection aligns tightly with the anchored period, replaying its behavior without added drift.
- **Raising the Growth Factor**: injects a drift percentage derived from the anchored span's returns, shifting the projection's expectancy. Anchoring an accumulation phase can tilt the path decisively higher, while drift over a weak stretch deepens the bearish case.
- **The forecast area**: read it as a scenario band around the projected line, not a boundary price is obliged to respect.

Long-horizon studies work too. Anchoring a historical downturn on a quarterly chart lets you visualize what a comparable decline would look like from today's prices: scenario planning rather than prophecy.

## Historical Price Projection Settings

- **Anchor Point**: the starting bar of the source window; up to 500 bars are used.
- **Growth Factor** (0 to 100): how much drift influences the projected trajectory.
- **Area Width** (0 to 100): the breadth of the forecast zone relative to the growth factor.
- **Style inputs**: price line width, bullish and bearish colors, forecast-area visibility and color.

## Frequently Asked Questions

### Is the projection a prediction?

No. It is a structured what-if: the market's own past behavior, replayed from the present with adjustable drift. Markets are under no obligation to repeat themselves, so treat the output as one scenario worth preparing for rather than a signal to follow blindly.

### How does it compare to the Echo Forecast?

[The Echo Forecast](https://www.luxalgo.com/library/indicator/the-echo-forecast/) automates the choice of reference window, while this tool hands that decision to you. It is the better fit when you have a specific phase in mind, such as a prior accumulation or a historic crash.

### How can I start using it?

The tool is free in the LuxAlgo Library. Quant, our coding agent, can run it straight from this page, so exploring scenarios takes no setup. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [The Echo Forecast](https://www.luxalgo.com/library/indicator/the-echo-forecast/) (kNN Analog Forecasting): markdown at https://www.luxalgo.com/library/indicator/the-echo-forecast.md
- [kNN Market Architecture](https://www.luxalgo.com/library/indicator/knn-market-architecture/) (kNN Analog Forecasting): markdown at https://www.luxalgo.com/library/indicator/knn-market-architecture.md
- [Indicator Configuration Forecasting](https://www.luxalgo.com/library/indicator/indicator-configuration-forecasting/) (kNN Analog Forecasting): markdown at https://www.luxalgo.com/library/indicator/indicator-configuration-forecasting.md
- [KNN Supertrend Horizon](https://www.luxalgo.com/library/indicator/knn-supertrend-horizon/) (kNN Analog Forecasting): markdown at https://www.luxalgo.com/library/indicator/knn-supertrend-horizon.md
- [Neighboring Trailing Stop](https://www.luxalgo.com/library/indicator/neighboring-trailing-stop/) (kNN Analog Forecasting): markdown at https://www.luxalgo.com/library/indicator/neighboring-trailing-stop.md
- [MACD Based Price Forecasting](https://www.luxalgo.com/library/indicator/macd-based-price-forecasting/) (kNN Analog Forecasting): markdown at https://www.luxalgo.com/library/indicator/macd-based-price-forecasting.md
- [Dynamic Time Warping Similarity](https://www.luxalgo.com/library/indicator/dynamic-time-warping-similarity/) (Machine Learning): markdown at https://www.luxalgo.com/library/indicator/dynamic-time-warping-similarity.md
- [Matrix Profile](https://www.luxalgo.com/library/indicator/matrix-profile/) (Machine Learning): markdown at https://www.luxalgo.com/library/indicator/matrix-profile.md

---

Source: https://www.luxalgo.com/library/indicator/historical-price-projection/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
