Fractal Nesting
By LuxAlgoApr 24, 2026
Fractal Nesting is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Fractal Nesting draws market structure at three degrees at once: a short-term zigzag built from raw swing pivots, an intermediate-term path assembled from short-term swings, and a long-term path assembled from intermediate ones. It is the definitive clean build of fractal nesting: one recursive rule applied degree over degree, with ST/IT/LT tags, an alignment tint and a per-degree dashboard. Each higher degree is assembled from confirmed pivots of the degree below, so the three paths nest by construction.
How to Trade the Fractal Nesting?
- Full bullish or bearish alignment: when all three degrees are in same-direction legs the background tints and an alert fires, the trend-following condition.
- Mixed alignment: a short-term leg turning against the higher degrees is where pullbacks end or reversals begin; the alignment-broken alert flags the moment agreement fails.
- New IT and LT pivots: each confirmation (alertable) updates the dashboard's Last High and Last Low, tiered invalidation for the entry idea and the wider thesis.
Fractal Nesting Settings
- Base Pivot Length (default 1): bars required on each side of a raw pivot. 1 reproduces the classic recursive definition; larger values pre-filter noise at the cost of later confirmation.
- Short-Term / Intermediate-Term / Long-Term (all enabled by default): draw each degree's zigzag; the inline Labels toggles tag confirmed pivots (off for short-term, on for the higher degrees).
- Highlight Full Alignment (default enabled): background tint while every degree points the same way.
- Show Dashboard (default enabled), Position (default Top Right), Size (default Small): leg direction and latest confirmed high/low per degree, plus the combined alignment state.
- Degree colors, line widths and Label Size (default Tiny) are cosmetic.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom 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
Related indicators
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.





