Minimum


Summary

Finds the minimum of a dataseries for a given period.

Syntax

public static double Minimum(DataSeries series, int period)

Parameters

NameDescription

Example 1

public override void Calculate(int index)
{
    if(Functions.Minimum(sma.Result, 20) > MarketSeries.Close[index])
    {
        //Do something
    }
    // May be invoked as an extension method
    
    if (sma.Result.Minimum(20) > MarketSeries.Close[index])
    {
        //Do something
    }
}

Example 2

var minLow = MarketSeries.Low.Minimum(periods);