Table of Contents

Class WindowIdentity

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

Represents an indicator that is a ready after ingesting enough samples (# samples > period) and always returns the same value as it is given.

public class WindowIdentity : WindowIndicator, IIndicator, IUpdatable
Inheritance
WindowIdentity
Implements
Inherited Members
Extension Methods

Constructors

WindowIdentity(int)

Initializes a new instance of the WindowIdentity class with the default name and period

public WindowIdentity(int period)

Parameters

period int

The period of the WindowIdentity

WindowIdentity(string, int)

Initializes a new instance of the WindowIdentity class with the specified name and period

public WindowIdentity(string name, int period)

Parameters

name string

The name of this indicator

period int

The period of the WindowIdentity

Properties

IsReady

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

public override bool IsReady { get; }

Property Value

bool

Methods

Forward(IReadOnlyWindow<long>, IReadOnlyWindow<DoubleArray>, long, DoubleArray)

Computes the next value for this indicator from the given state.

protected override DoubleArray Forward(IReadOnlyWindow<long> timeWindow, IReadOnlyWindow<DoubleArray> window, long time, DoubleArray input)

Parameters

timeWindow IReadOnlyWindow<long>
window IReadOnlyWindow<DoubleArray>

The window of data held in this indicator

time long
input DoubleArray

The input value to this indicator on this time step

Returns

DoubleArray

A new value for this indicator