IsRising


Summary

Checks if the last value in a dataseries is greater than the previous.

Syntax

public static bool IsRising(DataSeries series)

Parameters

NameDescription

Example 1

SimpleMovingAverage sma;
//...
public override void Calculate(int index)
{
    if (Functions.IsRising(sma.Result))
    {
        //Do something
    }
    //May be invoked as an extension method
    if (sma.Result.IsRising())  
    {
        //Do something
    }
}
//...