Summary

Returns a double number, which is the maximum of a dataseries for a given period.

Syntax

Maximum(DataSeries series, int period)

Parameters

Example

SimpleMovingAverage sma;

protected override void Initialize()
{
    sma = Indicators.SimpleMovingAverage(source, period);
}

public override void Calculate(int index)
{
    if(Functions.Maximum(sma.Result,20)>MarketSeries.Close[index]){
    {
        //Do something
    }
}