charting
Open chart
DoveeDocumentation
LanguageFunction reference

Home/Dovee/Function reference

max

Larger of two series, bar by bar.

Reference/Math & comparisons/Function

max(a, b)

Not a rolling window — that is highest. max compares two series on the same bar.

Parameters

NameTypeDescription
aseriesFirst value.
bseriesSecond value.

Return value

series

Example

plot max(close, ema(21)) as "Close or EMA"

See also

  • abs
  • min
  • round
  • floor
  • ceil
  • sqrt
  • log
  • sign
← absmin →