Table of Contents

Class TrueRange

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

This indicator computes the True Range (TR). The True Range is the greatest of the following values: value1 = distance from today's high to today's low. value2 = distance from yesterday's close to today's high. value3 = distance from yesterday's close to today's low.

public class TrueRange : BarIndicator, IIndicator, IUpdatable
Inheritance
TrueRange
Implements
Inherited Members
Extension Methods

Constructors

TrueRange()

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

public TrueRange()

TrueRange(string)

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

public TrueRange(string name)

Parameters

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

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(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