Table of Contents

Class SliceSelector

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

A selector that calls Slice(int, int) on given Start and Stop.

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

Constructors

SliceSelector(int, int, string)

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

public SliceSelector(int start, int stop, string name)

Parameters

start int

Start of interval. The interval includes this value. The default start value is 0.

stop int

End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.

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

Start

Start of interval. The interval includes this value. The default start value is 0.

public int Start { get; }

Property Value

int

Stop

End of interval. The interval does not include this value, except in some cases where step is not an integer and floating point round-off affects the length of out.

public int Stop { 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