Historical Price Projection [LuxAlgo]

LuxAlgo Wizard Aggiornato   
The Historical Price Projection tool aims to project future price behavior based on historical price behavior plus a user defined growth factor.

The main feature of this tool is to plot a future price forecast with a surrounding area that exactly matches the price behavior of the selected period, with or without added drift.

Other features of the tool include:

  • User-selected period up to 500 bars anywhere on the chart within 5000 bars
  • User selected growth factor from 0 (no growth) to 100, this is the percentage of drift to be used in the forecast.
  • User selected area wide
  • Show/hide forecast area


This tool generates a price projection with exactly the same price behavior over the period selected by the user, plus a growth factor.

The user must confirm the selection of the anchor point in order for the tool to be executed; this can be done directly on the chart by clicking on any bar, or via the date field in the settings panel.

As we can see on this chart, the four phases of the market cycle are clearly defined and marked, so we choose the distribution phase as our anchor point because in our analysis, we want to see how the market would behave if we were currently at the same point in the cycle.

In the image above, the growth factor parameter is set to 0 so that the projection matches the selection. The tool will use up to 500 bars after the selection point.

The growth factor is defined as the percentage of drift that the tool will use.

Drift is defined as follows:

  • For periods with a positive return: average negative return within the period
  • For negative return periods: average positive return within the period

On the chart above, we have selected the same period but added a growth factor of 10, so that the tool uses a 10% drift in its calculations of future prices.

As the return in the selected period is negative, the added drift will make the projection more bearish than the prices from the selection.

On this chart we have changed the selected period, we have chosen the accumulation phase of the last cycle as the anchor point, again with a growth factor of 10%.

As we can see, prices explode higher, making the projection very bullish, as the added effect of both the bullish selected period and the 10% drift is taken into account.

This last chart is a long-term chart, a quarterly chart of the Dow, and it will serve as a review exercise.

What if... everything goes south and the crash of '29 is repeated?

The answer is in the chart, and it is not for the faint of heart

In this case we have chosen a growth factor of 0 to see exactly the same price behaviour projected into the future.


🔹 Data Gathering

  • Anchor point: Starting point for data collection, up to 500 bars will be used.

🔹 Data Transformation

  • Growth Factor: Values from 0 to 100, is the amount of drift used to calculate the next price in the series.
  • Area Width: Values from 0 to 100, controls the width of the area around the forecast as an increment/decrement of the growth factor.

🔹 Style

  • Price line width: Size of the price line.
  • Bullish color
  • Bearish color
  • Show Area: Show forecast area.
  • Area color
Note di rilascio:
- Added option to disable the "Execution Window Line"
- Removed minimum "Growth Factor" value requirement
Note di rilascio:
- Fixed candles reference bug

Get access to our exclusive tools:

Join our 150k+ community:

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?