Table of Contents

Class FilteredIdentity

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

Represents an indicator that is a ready after ingesting a single sample and always returns the same value as it is given if it passes a filter condition

public class FilteredIdentity : IndicatorBase, IIndicator, IUpdatable
Inheritance
FilteredIdentity
Implements
Inherited Members
Extension Methods

Constructors

FilteredIdentity(string, Func<DoubleArray, bool>)

Initializes a new instance of the FilteredIdentity indicator with the specified name

public FilteredIdentity(string name, Func<DoubleArray, bool> filter)

Parameters

name string

The name of the indicator

filter Func<DoubleArray, bool>

Filters the DoubleArray send into the indicator, if null defaults to true (x => true) which means no filter

Properties

IsReady

Gets a flag indicating when this indicator is ready and fully initialized

public override bool IsReady { get; }

Property Value

bool

Methods

Forward(long, DoubleArray)

Computes the next value of this indicator from the given state

protected override DoubleArray Forward(long time, DoubleArray input)

Parameters

time long
input DoubleArray

The input given to the indicator

Returns

DoubleArray

A new value for this indicator