# Monte Carlo Shuffled Projection

Monte Carlo Shuffled Projection is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Projects a fan of possible price paths by shuffling the open-to-close moves of the candles in a recent lookback window and adding them in sequence forward from the last close. Runs up to 1,000 simulations, distilling them into an Average Line with standard-deviation bands that frame probable territory. Built for traders who want probabilistic context instead of single-line forecasts.

- Indicator in the LuxAlgo Library, by LuxAlgo, published May 2, 2024.
- Access: free.
- Concepts: [Monte Carlo Price Paths](https://www.luxalgo.com/library/concept/monte-carlo-price-paths/) (primary), [Resampling Tests](https://www.luxalgo.com/library/concept/resampling-tests/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn3t5j005cvhsgogqopg3j
- Page: https://www.luxalgo.com/library/indicator/monte-carlo-shuffled-projection/

**Monte Carlo Shuffled Projection** turns recent history into a fan of hypothetical futures. It gathers each candle's open-to-close move from a user-set lookback window, shuffles their order, and adds each reshuffled sequence forward from the latest close, step by step: the [Monte Carlo](https://www.luxalgo.com/library/concept/monte-carlo-price-paths/) method applied to the exact changes your chart just produced. Up to 1,000 simulations are distilled into an Average Line, with standard-deviation lines framing probable territory, support, and resistance.

Because each path reuses the window's real changes, endpoints align with the lookback's slope; the Randomize Direction option flips values at intervals for a broader, less trend-biased range.

## How to Trade the Monte Carlo Shuffled Projection?

- **Average Line**: a straight slope from the last close to the midpoint of the highest and lowest simulated values at the final step, a central estimate of where price could drift if the window's trend and volatility persist.
- **Standard-deviation lines**: averaged across the full simulation set; treat them as a probabilistic envelope for targets and for judging when a move has outrun recent behavior.
- **Visualized paths**: enable the individual simulations (the last 99 are drawn) to see how widely outcomes disperse before leaning on the average.

The projection is [resampling](https://www.luxalgo.com/library/concept/resampling-tests/), not prophecy: it maps the range of outcomes the recent window could plausibly generate, better for stress-testing expectations than for timing entries on its own.

## Monte Carlo Shuffled Projection Settings

- **Lookback**: how many bars feed the simulation.
- **Simulation Count**: number of shuffled paths, up to 1,000. More runs steady the Average Line.
- **Randomize Direction**: inverts shuffled changes at intervals for a more normalized distribution of endpoints.
- **Visualize Simulations**: draws individual paths in randomly picked colors; only the last 99 show.
- **Standard Deviations** (default off) and **Multiplier** (default 2): show the deviation lines and set how far they sit from the central line.

## Frequently Asked Questions

### How is this different from the anchored version?
This build projects from the most recent close over a rolling lookback, refreshing as new bars print. The [Anchored Monte Carlo Shuffled Projection](https://www.luxalgo.com/library/indicator/anchored-monte-carlo-shuffled-projection/) anchors its runs to a starting bar you choose instead, better for studying a specific event or swing.

### Do the projected lines predict where price will go?
No. Every path is a random reordering of changes that already happened, so the tool maps plausible dispersion rather than a forecast, preparing you for a range of outcomes instead of a single guess.

### Is the Monte Carlo Shuffled Projection free?
Yes. It is part of the free LuxAlgo Library, and you can run it in Quant, our coding agent, directly from this page. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Monte Carlo Mean Reversion Heatmap](https://www.luxalgo.com/library/indicator/monte-carlo-mean-reversion-heatmap/) (Monte Carlo Price Paths): markdown at https://www.luxalgo.com/library/indicator/monte-carlo-mean-reversion-heatmap.md
- [Monte Carlo Expected Move Distribution](https://www.luxalgo.com/library/indicator/monte-carlo-expected-move-distribution/) (Monte Carlo Price Paths): markdown at https://www.luxalgo.com/library/indicator/monte-carlo-expected-move-distribution.md
- [Predictive Monte Carlo Engine](https://www.luxalgo.com/library/indicator/predictive-monte-carlo-engine/) (Monte Carlo Price Paths): markdown at https://www.luxalgo.com/library/indicator/predictive-monte-carlo-engine.md
- [Anchored Monte Carlo Shuffled Projection](https://www.luxalgo.com/library/indicator/anchored-monte-carlo-shuffled-projection/) (Monte Carlo Price Paths): markdown at https://www.luxalgo.com/library/indicator/anchored-monte-carlo-shuffled-projection.md
- [Probability Grid](https://www.luxalgo.com/library/indicator/probability-grid/) (Probability Cones): markdown at https://www.luxalgo.com/library/indicator/probability-grid.md
- [3D Opportunity Cone](https://www.luxalgo.com/library/indicator/3d-opportunity-cone/) (Probability Cones): markdown at https://www.luxalgo.com/library/indicator/3d-opportunity-cone.md
- [Spline Quantile Regression Channel](https://www.luxalgo.com/library/indicator/spline-quantile-regression-channel/) (Statistics): markdown at https://www.luxalgo.com/library/indicator/spline-quantile-regression-channel.md
- [Precision Market Entropy Heatmap](https://www.luxalgo.com/library/indicator/precision-market-entropy-heatmap/) (Statistics): markdown at https://www.luxalgo.com/library/indicator/precision-market-entropy-heatmap.md

---

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