Trading-range Position
By LuxAlgoJul 20, 2026
Trading-range Position is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Trading-range Position makes location inside a range a first-class reading: when a compressed window confirms a range, the build splits it into a grid and reports where every close sits, the first dedicated build of trading-range position. Buy territory fills the lowest subdivision, sell territory the highest, the no-trade zone the middle; a live label states position as a percentage of the range plus its territory.
How to Trade the Trading-range Position?
- Territory entries: alerts fire when price enters the lower or upper subdivision, where structural stops are smallest relative to the ride across the range.
- No-trade zone: a return to the middle is alerted too. Neither location nor information favors range entries there.
- Edge resets: a recovered penetration resets the effective extreme the way a spring resets a working low; sustained closes beyond an edge resolve the range.
Edge bands span the swings that tested each side, a companion to the other Wyckoff range studies.
Trading-range Position Settings
- Formation Length (default 20): detection window whose extremes seed support and resistance.
- Maximum Range Height (default 3) with Volatility Baseline (default 200): compression ceiling in ATR multiples, and the ATR length behind it.
- Swing Length (default 5): bars each side confirming edge-test swings.
- Breakout Confirmation (default 2): consecutive closes beyond an effective extreme that resolve the range.
- Edge Reset Sensitivity % (default 5): minimum penetration depth (share of range height) reported as a reset.
- Subdivision (default Thirds): Thirds or Quarters as the position grid.
- Show Dashboard (on, Top Right, Small); style: Territory Fills, Edge Test Bands, Position Label, Keep Previous Ranges (all on), Edge Reset Markers (off).
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.





