OPEN-SOURCE SCRIPT
Forward Move Profile [AlgoNorth]

Forward Move Profile
🔶 Where does price usually end up 30 bars from now?
Forward Move Profile answers that from the chart's own history. It takes every past bar (up to 20,000 of them), measures where price closed 30 bars later in units of the 14-period ATR, and stacks those outcomes into a 3D profile beside the last candle. Around it sit a path fan with 20%, 50% and 80% bands, and four ghost profiles spaced 30 bars apart. It also runs a race: from every past bar, it checks whether price reached 1 ATR above or 1 ATR below first, and how long that took.
It is a context tool, not a standalone trading indicator. It shows what a normal move looks like on the chart in front of you and gives your own setups a second opinion.
🔶 USAGE
🔸 The profile
Each row is a price band. The longer the row, the more past samples finished there. The gold row is the most common outcome, with its size written inside. By default, rows above the current price are green and rows below are red.
🔸 Percentile labels
P90, Median and P10 mark the outcome lines. About 8 in 10 past samples ended between P10 and P90. A target inside that range is an ordinary move for this chart. A target beyond it needs something unusual to happen.
🔸 The path fan
The fan runs from the last candle to the profile. The centre line is the median outcome, and the shaded bands show how far outcomes spread around it. A fan that leans one way shows past moves drifted that way. A wide fan shows outcomes were spread out.
🔸 Ghost profiles
The faded profiles further back show what the tool looked like at earlier bars. The gold dot on each marks where price actually closed 30 bars later. Scroll back to see how often price landed in the busy middle of the profile and how often it ran to the edges.
🔸 The race
The table shows how often each level was hit first and the average number of bars each side took. If the down level is usually hit first, or reached faster, drops on this chart have tended to arrive quicker than rallies.
🔸 The table
It lists past samples, how many ended higher or lower, the average move each way, P90 / median / P10, the size of P10 against P90, which level was touched first, average bars to first touch, current ATR and last bar time.
🔶 DETAILS
🔸 Every sample is measured in ATRs at the bar it started on, then drawn using the current ATR. Calm and volatile periods end up on the same scale.
🔸 The profile range fits itself so almost every past sample is drawn. You can set a fixed range instead; samples beyond it are counted in the table as outside range.
🔸 "Size of P10 ÷ size of P90" above 1 means the typical large drop was bigger than the typical large rise. The row shows "–" when P90 is zero or below.
🔸 Units are picked automatically: ticks on futures, pips on forex, percent on crypto and points on everything else.
🔸 The profile appears once 30 past samples are collected.
🔸 Four alerts: median outcome turned positive, median outcome turned negative, up level now touched first more often, down level now touched first more often.
🔶 SETTINGS
🔸 Model: horizon, ATR length, max samples and race distance.
🔸 Profile: range, row count, width, gap from the fan and units.
🔸 Look: colour palette (Green / Red, Aurora or Heat), most common row highlight and colour, 3D depth, top edge highlight, path fan, number and spacing of ghost profiles, and percentile labels.
🔸 Table: show or hide, chart corner and text size.
🔶 LIMITATIONS
🔸 The profile is built entirely from past moves on this symbol and timeframe. It shows the likely spread of outcomes if price keeps behaving the way it has, and it can be caught out when conditions change: news, a new volatility regime or a sudden trend.
🔸 Samples next to each other share most of their bars, so the sample count is larger than the number of truly separate moves.
🔸 Ghost profiles use the ATR of their own bar, so they look taller after volatile stretches and shorter after quiet ones.
🔸 Pip units assume a 5-digit forex quote.
🔶 SUMMARY
Forward Move Profile turns the chart's history into a picture of where price usually finishes 30 bars later: a 3D profile, the paths leading to it, ghosts showing how earlier profiles played out, and a race between the up and down levels. Use it next to your own analysis to judge whether a move you're planning is ordinary or a stretch.
🔶 Where does price usually end up 30 bars from now?
Forward Move Profile answers that from the chart's own history. It takes every past bar (up to 20,000 of them), measures where price closed 30 bars later in units of the 14-period ATR, and stacks those outcomes into a 3D profile beside the last candle. Around it sit a path fan with 20%, 50% and 80% bands, and four ghost profiles spaced 30 bars apart. It also runs a race: from every past bar, it checks whether price reached 1 ATR above or 1 ATR below first, and how long that took.
It is a context tool, not a standalone trading indicator. It shows what a normal move looks like on the chart in front of you and gives your own setups a second opinion.
🔶 USAGE
🔸 The profile
Each row is a price band. The longer the row, the more past samples finished there. The gold row is the most common outcome, with its size written inside. By default, rows above the current price are green and rows below are red.
🔸 Percentile labels
P90, Median and P10 mark the outcome lines. About 8 in 10 past samples ended between P10 and P90. A target inside that range is an ordinary move for this chart. A target beyond it needs something unusual to happen.
🔸 The path fan
The fan runs from the last candle to the profile. The centre line is the median outcome, and the shaded bands show how far outcomes spread around it. A fan that leans one way shows past moves drifted that way. A wide fan shows outcomes were spread out.
🔸 Ghost profiles
The faded profiles further back show what the tool looked like at earlier bars. The gold dot on each marks where price actually closed 30 bars later. Scroll back to see how often price landed in the busy middle of the profile and how often it ran to the edges.
🔸 The race
The table shows how often each level was hit first and the average number of bars each side took. If the down level is usually hit first, or reached faster, drops on this chart have tended to arrive quicker than rallies.
🔸 The table
It lists past samples, how many ended higher or lower, the average move each way, P90 / median / P10, the size of P10 against P90, which level was touched first, average bars to first touch, current ATR and last bar time.
🔶 DETAILS
🔸 Every sample is measured in ATRs at the bar it started on, then drawn using the current ATR. Calm and volatile periods end up on the same scale.
🔸 The profile range fits itself so almost every past sample is drawn. You can set a fixed range instead; samples beyond it are counted in the table as outside range.
🔸 "Size of P10 ÷ size of P90" above 1 means the typical large drop was bigger than the typical large rise. The row shows "–" when P90 is zero or below.
🔸 Units are picked automatically: ticks on futures, pips on forex, percent on crypto and points on everything else.
🔸 The profile appears once 30 past samples are collected.
🔸 Four alerts: median outcome turned positive, median outcome turned negative, up level now touched first more often, down level now touched first more often.
🔶 SETTINGS
🔸 Model: horizon, ATR length, max samples and race distance.
🔸 Profile: range, row count, width, gap from the fan and units.
🔸 Look: colour palette (Green / Red, Aurora or Heat), most common row highlight and colour, 3D depth, top edge highlight, path fan, number and spacing of ghost profiles, and percentile labels.
🔸 Table: show or hide, chart corner and text size.
🔶 LIMITATIONS
🔸 The profile is built entirely from past moves on this symbol and timeframe. It shows the likely spread of outcomes if price keeps behaving the way it has, and it can be caught out when conditions change: news, a new volatility regime or a sudden trend.
🔸 Samples next to each other share most of their bars, so the sample count is larger than the number of truly separate moves.
🔸 Ghost profiles use the ATR of their own bar, so they look taller after volatile stretches and shorter after quiet ones.
🔸 Pip units assume a 5-digit forex quote.
🔶 SUMMARY
Forward Move Profile turns the chart's history into a picture of where price usually finishes 30 bars later: a 3D profile, the paths leading to it, ghosts showing how earlier profiles played out, and a race between the up and down levels. Use it next to your own analysis to judge whether a move you're planning is ordinary or a stretch.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.