Maximum (MAX)
Max (MAX) delivers the highest value for a predefined number of periods.
MAX(int period)
MAX (IDataSeries inSeries, int period)
MAX (int period)[int barsAgo]
MAX (IDataSeries inSeries, int period)[int barsAgo]
double
When using this method with an index (e.g. MAX(Close, 10)[int barsAgo] ), the value of the indicator will be issued for the referenced bar.
inSeries Input data series for the indicator
period Number of bars included in the calculations

Maximum (MAX)
// Output of the highest value of the last 20 periods
// The output is identical to high [GetSerieHighestValue(High,20)]
Print("The highest value of the last 20 periods is " + MAX(High, 20)[0]);
Last modified 2yr ago