Technical AnalysisIntermediatešŸ“– 8 min read

Indexes of Lowest & Highest Values (ILV & IHV)

The Time-Stamp Duo That Ages Your Market Peaks and Troughs

IHV Output
Bars since highest high (0 to Nāˆ’1)
ILV Output
Bars since lowest low (0 to Nāˆ’1)
0 Means
Fresh extreme this bar
Nāˆ’1 Means
Extreme about to roll off window

While most traders focus on *how high* or *how low* price has gone, the Indexes of Lowest & Highest Values (ILV & IHV) add the missing piece: *how long ago* those extremes happened. For a rolling window of N bars, IHV tells you how many bars back the highest high occurred, and ILV does the same for the lowest low. Output is a simple integer 0 to Nāˆ’1 – zero means 'fresh extreme today!' while higher numbers mean the peak/trough is getting stale. It's the perfect freshness meter for breakouts, trailing exits, and spotting when momentum is running out of gas.

Table of Contents

The Clean Formulas

Pure index lookup:

IHV_t = N - 1 - \text{index of max}(High_{t-N+1 \to t})

ILV_t = N - 1 - \text{index of min}(Low_{t-N+1 \to t})

Can apply to any series – close, volume, indicators.

Interpreting the Age Values

Market messages:

  • 0: Fresh extreme today – momentum alive.
  • 1–3: Extreme very recent – trend healthy.
  • ā‰ˆ N/2: Extreme aging – watch for weakness.
  • > N/2: Extreme stale – momentum fading.
  • Nāˆ’1: Oldest bar holds extreme – reset imminent.

Combined: fresh high + old low = bullish bias; reverse for bearish.

Parameter Choices

N sets the window:

  • Short (5–10): Sensitive – intraday micro extremes.
  • Medium (20–50): Balanced – daily swing freshness.
  • Long (100–252): Macro – 52-week extreme age.

Pro Trading Applications

Smart uses:

  • Fresh breakouts: Enter only when corresponding index = 0.
  • Trailing exits: Exit long if IHV > threshold (no new high too long).
  • Mean reversion: High index = old extreme → fade in ranges.
  • Volatility timing: Indexes on ATR nearing N → compression.
šŸ’”

Turtle-style: fresh extremes only for entries.

Strategy Templates

Quick setups:

  • Fresh momentum: Long when price > HHV and IHV = 0.
  • Stale reversal: High ILV + bullish divergence → long fading dip.
  • Volatility squeeze: Both indexes high on ATR → prep expansion.

Strengths and Limitations

The Wins

  • Instant age of extremes – zero lag timing.
  • Versatile on any series.
  • Sharpens entries/exits and filters.
  • Simple freshness check.

The Gotchas

  • Flips on spikes – filter needed.
  • Descriptive – pair with action rules.
  • Oscillates in tight ranges.
  • No magnitude – use with HHV/LLV.

Your ILV & IHV Checklist

  • Choose series and N.
  • Plot with HHV/LLV for context.
  • Backtest freshness thresholds.
  • Combine with trend/volume confirmation.
  • Alert on resets (0) or stale values.
  • Review N across volatility regimes.

Key Takeaways

1

ILV & IHV count bars since recent low/high – extreme freshness duo.

2

0 = new extreme today, high values = stale momentum.

3

Perfect for fresh breakouts, trailing exits, and spotting exhaustion.

4

Adds time dimension to HHV/LLV – crucial timing layer.

5

Simple stopwatch for peaks/troughs – trade fresh moves, fade old ones. Stay timed and trade strong!

Related Terms

Apply This Knowledge

Ready to put Indexes of Lowest & Highest Values (ILV & IHV) into practice? Use our tools to analyze your portfolio and explore market opportunities.

This content is also available on our main website for public access.

0:00 / 0:00