IsFalling


Summary

Checks if the last value in a dataseries is less than the previous

Syntax

public static bool IsFalling(DataSeries series)

Parameters

NameDescription

Example 1

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