Class Belash
- Namespace
- FinanceSharp.Indicators
- Assembly
- FinanceSharp.dll
Belash is a softned oscillator (0 to 100) that shows how strongly the direction of the price is heading. If 100 then price is rising at full speed. If 0 the price is falling at full speed.
public class Belash : Indicator, IIndicator, IUpdatable
- Inheritance
-
Belash
- Implements
- Inherited Members
- Extension Methods
Constructors
Belash(IndicatorBase, IndicatorBase, int, int?, MovingAverageType)
public Belash(IndicatorBase max, IndicatorBase min, int softningPeriod, int? regressionPeriod = null, MovingAverageType softeningMovingAverage = MovingAverageType.Exponential)
Parameters
maxIndicatorBaseThe indicator that represents the maximal value of the price in a certain period of time. Can be anything but must be relative to
min.minIndicatorBaseThe indicator that represents the minimal value of the price in a certain period of time. Can be anything but must be relative to
max.softningPeriodintThe period of ExponentialMovingAverage applied on the Min and Max.
regressionPeriodint?Regression period of LeastSquaresMovingAverage.
softeningMovingAverageMovingAverageTypeThe moving average to soften the price using
softningPeriod,maxandmin.
Belash(int, int, int?)
public Belash(int period, int softningPeriod, int? regressionPeriod = null)
Parameters
periodintsoftningPeriodintThe period of ExponentialMovingAverage applied on the Min and Max.
regressionPeriodint?Regression period of LeastSquaresMovingAverage.
Properties
IsReady
Gets a flag indicating when this indicator is ready and fully initialized
public override bool IsReady { get; }
Property Value
Max
The indicator that represents the maximal value of the price in a certain period of time. Can be anything but must be relative to Min.
public IndicatorBase Max { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
Min
The indicator that represents the maximal value of the price in a certain period of time. Can be anything but must be relative to Max.
public IndicatorBase Min { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
Regressed
A regressed version of this's Indicator.Current.
public LeastSquaresMovingAverage Regressed { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
SoftenedInput
A softned version of Min.
public IndicatorBase SoftenedInput { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
SoftenedMax
A softned version of Max.
public IndicatorBase SoftenedMax { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
SoftenedMin
A softned version of Min.
public IndicatorBase SoftenedMin { get; }
Property Value
Remarks
Updated internally in Forward(long, DoubleArray).
SoftningPeriod
Softning Period of all softened indicators in this class.
public int SoftningPeriod { get; }
Property Value
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()