Previous Highs & Lows
By LuxAlgoJul 22, 2024
Previous Highs & Lows is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Previous Highs & Lows keeps the market's reference points on screen: the developing high and low of the current interval (level 0, dashed) and the high and low of each completed interval, plotted as numbered prior-period highs and lows that remain visible as new periods form, one of the most direct tools in the levels family. Alongside the individual levels, two shaded areas built from the percentile ranks of those highs and lows outline broader zones where reactions tend to cluster.
How to Trade the Previous Highs & Lows?
- Level tests: previous highs and lows are pivotal decision points. Watch for reactions there, and treat clean breaks as information about who controls the market.
- Numbering and gradient: recent levels carry lower numbers and brighter colors, so the freshest references stand out from stale ones.
- Position filtering: enable it and only highs above the current close and lows below it remain, precisely the levels price can run into next.
- Upper and lower areas: the percentile-based zones give a wider engagement region than any single level; a wider area reflects a more dispersed collection of past extremes.
Interval choice matters. Daily is the common habit, but hourly through yearly are available. Just note that high intervals viewed on low timeframes can place levels far from current price.
Previous Highs & Lows Settings
- Show Last: how many previous high and low levels to display alongside the current period's level 0; the areas are toggled separately with Show Areas in the Style settings.
- Frequency: the period defining each high and low (Hour, Day, Week, Month or Year; Day by default).
- Areas Width: widens or narrows the percentile-based top and bottom areas.
- Filter Based On Position: shows only highs above and lows below the current closing price.
- Minimum Gradient Transparency: fades the oldest levels so recent ones dominate visually.
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
Also works on
Related indicators
All 3 Prior Period Levels indicatorsRun 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.





