Table of Contents

Class FunctionalComparingIndicator

Namespace
FinanceSharp.Indicators
Assembly
FinanceSharp.dll

A functional ComparingIndicatorBase. Pretty much saves time writing new classes.

public class FunctionalComparingIndicator : ComparingIndicatorBase, IIndicator, IUpdatable
Inheritance
FunctionalComparingIndicator
Implements
Inherited Members
Extension Methods

Constructors

FunctionalComparingIndicator(DoubleArrayComparingHandler, string)

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

public FunctionalComparingIndicator(DoubleArrayComparingHandler comparer, string name = "FUNC")

Parameters

comparer DoubleArrayComparingHandler
name string

The name of this indicator

Methods

Comparer((long time, DoubleArray Array), (long Time, DoubleArray Array))

Compares current against input returning the new Current and CurrentTime values.

protected override (long Time, DoubleArray Array) Comparer((long time, DoubleArray Array) current, (long Time, DoubleArray Array) input)

Parameters

current (long time, DoubleArray Array)

The Current from the handling indicator.

input (long time, DoubleArray Array)

The new input to compare against.

Returns

(long time, DoubleArray Array)

The new Current and CurrentTime to set.

Remarks