Table of Contents

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

max IndicatorBase

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.

min IndicatorBase

The indicator that represents the minimal value of the price in a certain period of time. Can be anything but must be relative to max.

softningPeriod int

The period of ExponentialMovingAverage applied on the Min and Max.

regressionPeriod int?

Regression period of LeastSquaresMovingAverage.

softeningMovingAverage MovingAverageType

The moving average to soften the price using softningPeriod, max and min.

Belash(int, int, int?)

public Belash(int period, int softningPeriod, int? regressionPeriod = null)

Parameters

period int

The Min and Max period.

softningPeriod int

The period of ExponentialMovingAverage applied on the Min and Max.

regressionPeriod int?

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

bool

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

IndicatorBase

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

IndicatorBase

Remarks

Updated internally in Forward(long, DoubleArray).

Regressed

A regressed version of this's Indicator.Current.

public LeastSquaresMovingAverage Regressed { get; }

Property Value

LeastSquaresMovingAverage

Remarks

Updated internally in Forward(long, DoubleArray).

SoftenedInput

A softned version of Min.

public IndicatorBase SoftenedInput { get; }

Property Value

IndicatorBase

Remarks

Updated internally in Forward(long, DoubleArray).

SoftenedMax

A softned version of Max.

public IndicatorBase SoftenedMax { get; }

Property Value

IndicatorBase

Remarks

Updated internally in Forward(long, DoubleArray).

SoftenedMin

A softned version of Min.

public IndicatorBase SoftenedMin { get; }

Property Value

IndicatorBase

Remarks

Updated internally in Forward(long, DoubleArray).

SoftningPeriod

Softning Period of all softened indicators in this class.

public int SoftningPeriod { 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

Reset()

Resets this indicator to its initial state

public override void Reset()