Class MaximumDeltaIndicator
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
Calculates the delta between Maximum and current price.
public class MaximumDeltaIndicator : Indicator, IIndicator, IUpdatable
- Inheritance
-
MaximumDeltaIndicator
- Implements
- Inherited Members
- Extension Methods
Constructors
MaximumDeltaIndicator(int?)
public MaximumDeltaIndicator(int? period = null)
Parameters
periodint?
MaximumDeltaIndicator(string, int)
public MaximumDeltaIndicator(string name, int period)
Parameters
Properties
Delta
The delta between Maximum and current price.
public IndicatorBase Delta { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
Maximum
The maximum to calculate Delta based on.
public IIndicator Maximum { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
Methods
Forward(long, DoubleArray)
Computes the next value of this indicator from the given state
protected override DoubleArray Forward(long time, DoubleArray input)
Parameters
timelonginputDoubleArrayThe input given to the indicator
Returns
- DoubleArray
A new value for this indicator
Reset()
Resets this indicator to its initial state
public override void Reset()