Table of Contents

Class CountSelector

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

A selector that calls DoubleArray.SliceIndex(int) on given SelectedIndex.

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

Constructors

CountSelector(int, string)

Initializes a new instance of the Indicator class using the specified name.

public CountSelector(int index, string name)

Parameters

index int

The index to get from OutputCount.

name string

The name of this indicator

Properties

IsReady

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

public override bool IsReady { get; }

Property Value

bool

SelectedIndex

The index to get from OutputCount.

public int SelectedIndex { get; }

Property Value

int

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