Table of Contents

Class Delay

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

An indicator that delays its input for a certain period

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

Constructors

Delay(int)

Creates a new Delay indicator that delays its input by the specified period

public Delay(int period)

Parameters

period int

The period to delay input, must be greater than zero

Delay(string, int)

Creates a new Delay indicator that delays its input by the specified period

public Delay(string name, int period)

Parameters

name string

Name of the delay window indicator

period int

The period to delay input, must be greater than zero

Properties

IsReady

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

public override bool IsReady { get; }

Property Value

bool

WarmUpPeriod

Required period, in data points, for the indicator to be ready and fully initialized.

public override int WarmUpPeriod { get; }

Property Value

int

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