Functions.Minimum
method · Functions · cAlgo.API
DesktopCLICloud
Finds the minimum of a data series for a given period.
Definition
public static double Minimum(DataSeries series, int period)
Functions.Minimum(series: DataSeries, period: int) -> float
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
series | DataSeries | DataSeries | Input data series |
period | int | int | Input period |
Returns double — The minimum value in the data series in this period
Examples
var lowestLow = Bars.LowPrices.Minimum(20);
Print("Lowest low of the last 20 bars: {0}", lowestLow);
lowestLow = Functions.Minimum(api.Bars.LowPrices, 20)
api.Print(f"Lowest low of the last 20 bars: {lowestLow}")