Skip to content

MINMAX

Summary

Returns both the lowest and highest values of the input over a rolling window of the last optInTimePeriod bars. An overlap-study companion to MIN and MAX that computes both extrema in one pass.

Inputs

  • inReal — Values scanned for the window min and max

Outputs

  • outMin — Lowest value in each rolling window
  • outMax — Highest value in each rolling window

Parameters

  • optInTimePeriod — Rolling window length

Implementation

TA-Lib Definition: minmax.c · minmax.yaml

Native File
C ta_MINMAX.c
Rust minmax.rs
Java Core.java

TA-Lib is also available for Python, R and more using a wrapper.

Aliases

Highest Lowest

See Also

MIN · MAX · MINMAXINDEX · MININDEX · MAXINDEX