Lowest
[[lowest]] returns, on each candle, the lowest value observed over the last length bars of the selected series. You use it to track a recent lower bound, define a moving support, detect a downside breakdown, or compare the current level with its lowest recent extreme over a given period.
Unlike an average, Lowest does not smooth the market and does not try to summarize price with a central value. It keeps the minimum of the current window, then changes only when a more recent low appears or when the previous minimum leaves the window. The result is a simple, stable reference that describes the lower limit of the recent move rather than an average trend.
The output depends entirely on the input series. Applied to low, the block tracks the lowest value among recent candles. Applied to close or to the output of another indicator, it tracks the recent minimum of that series. That makes it useful for building a channel, expressing a downside-break condition, or reusing a recent extreme in other strategy blocks.
Block declaration
A strategy can contain multiple [[lowest]] blocks. Each block outputs one numeric series: the rolling minimum value.
Examples
Minimal setup
This block uses the implicit "low" source, so it tracks the lowest value observed over the last 20 bars.
[[lowest]]
id = "lowest"
length = 20Custom source and finding the optimal length
This block explores a range of values for length on the close series to identify the best-performing length.
[[lowest]]
id = "lowest"
source = "close"
length.start = 10
length.stop = 30Parameters
| Parameter | Description |
|---|---|
idString Required | Unique identifier for the resulting series. |
sourceString or Array Optional | Input series used for the calculation. Accepted forms: source = "hl2" or source = ["close", "hl2"].Each value can be either a standard price source ( open, close, high, low, hl2, hlc3, ohlc4, hlcc4, volume) or the id of another indicator.Default value: "low" |
lengthInteger Required | Window length; must be ≥ 1. Usage: • Fixed: length = value• Grid search: – length.start = min_value– length.stop = max_value– length.step = value (optional, default 1) |
symbolString or Array Optional | Market symbol(s) used when source only consists of standard prices (open, close, high, low, hl2, hlc3, ohlc4, hlcc4, volume).If source mixes standard prices and indicator ids, symbol is applied only to combinations based on standard prices.If source contains only indicator ids, symbol is ignored.When omitted, the block inherits the [backtest] symbol.For symbol format, arrays, and alignment rules, see Exchanges, Symbols and Timeframes. |
timeframeString or Array Optional | Timeframe on which this indicator is computed. If timeframe is omitted, the computation uses the grid’s main timeframe defined in [backtest].For accepted formats and timeframe alignment rules, see Exchanges, Symbols and Timeframes. |
Available variables
Use the identifiers below directly in your expressions. The lowest block exposes one numeric series and its parameters (length, source, symbol, timeframe).
Assume the block is configured as:
[[lowest]]
id = "lowest"
length = 20Then:
| Variable | Description |
|---|---|
lowest or lowest[0]Decimal | Current rolling minimum. First valid sample appears after length - 1 candles. |
lowest[n]Decimal | Value n candles ago (e.g. lowest[1] for the previous bar). |
lowest.lengthDecimal | Effective window size used during the current combination. |
lowest.sourceString | Actual source id (low, close, another indicator). |
lowest.symbolString | Display name of the symbol feeding this block. |
lowest.timeframeString | Timeframe used for the computation. |