StratBase.aiStratBase.ai
DashboardCreate BacktestMy BacktestsCatalogBlogNewsToolsHelp

Products

  • Researcher Dashboard
  • Create Backtest
  • My Backtests
  • Catalog
  • Blog
  • News

Alerts

  • Calendar
  • OI Screener
  • Funding Rate
  • REKT
  • Pump/Dump

Company

  • About Us
  • Pricing
  • Affiliate
  • AI Widget
  • Contact

Legal

  • Privacy
  • Terms
  • Refund Policy

Support

  • Help Center
  • Reviews
StratBase.aiStratBase.ai

Think it. Test it.

StratBase.ai does not provide financial advice or trading recommendations. AI only formalizes user ideas into testable strategy configurations for research purposes. Past backtesting performance does not guarantee future results. All trading decisions and associated risks are the sole responsibility of the user. This platform is not a broker and does not facilitate real trading.

© 2026 StratBase.ai · AI-powered strategy research and backtesting platform

support@stratbase.ai
Help Center/Indicators/Highest / Lowest

Highest / Lowest

📈Indicators
📌

Highest / Lowest

📋

What is Highest/Lowest?

Highest and Lowest are relative extreme indicators that find the maximum or minimum value of a price series over the last N bars. They are essential building blocks for breakout strategies, channel detection, and range analysis.

📌

How they work

HIGHEST(N) = Maximum value of the source over the last N bars
LOWEST(N)  = Minimum value of the source over the last N bars

By default, HIGHEST uses the high price and LOWEST uses the low price:

  • HIGHEST(20) — the highest high of the last 20 bars
  • LOWEST(20) — the lowest low of the last 20 bars

These values update on each bar as the rolling window moves forward.

📌

Parameters

| Parameter | Default | Description | |-----------|---------|-------------| | Period | 20 | Number of bars for the lookback window |

📌

Common use cases

Donchian Channel breakout

A classic breakout strategy — buy when price exceeds the highest high, sell when it falls below the lowest low:

Entry Long:  close > HIGHEST(20)
Entry Short: close < LOWEST(20)

Volatility measurement

The difference between HIGHEST and LOWEST gives the price range:

Range = HIGHEST(20) - LOWEST(20)

A narrow range suggests consolidation; a wide range suggests trending or volatile conditions.

Support/Resistance identification

Recent highs and lows act as natural support and resistance:

  • HIGHEST(50) represents a significant recent resistance level
  • LOWEST(50) represents a significant recent support level
💡

Example conditions

| Condition | Meaning | |-----------|---------| | close > HIGHEST(20) | Price breaks above 20-bar high (breakout buy) | | close < LOWEST(20) | Price breaks below 20-bar low (breakout sell) | | high > HIGHEST(50) | New 50-bar high — strong momentum | | low < LOWEST(10) | New 10-bar low — short-term weakness | | close > HIGHEST(5) | Price above last 5 bars' high — micro breakout |

💡

Tips

  • The Donchian Channel (HIGHEST/LOWEST over N bars) is one of the most robust breakout strategies — used by the famous Turtle Traders
  • Short periods (5-10) capture micro breakouts — good for scalping
  • Medium periods (20-50) are standard for swing trading
  • Long periods (100-200) identify major support/resistance levels
  • Combine breakouts with volume confirmation to filter false breakouts
  • Use HIGHEST/LOWEST as trailing stop levels: exit long when price falls below LOWEST(10)
  • Narrowing of HIGHEST - LOWEST range often precedes explosive moves (Bollinger Band squeeze analogy)
Related Resources|Fibonacci CalculatorPivot Points CalculatorTrading Blog