BollingerPercentB

StockSharp.Algo.Indicators

Bollinger %b indicator.

Inherits: BaseIndicator

Constructors

BollingerPercentB
public BollingerPercentB()
bollingerPercentB = BollingerPercentB()

Initializes a new instance of the BollingerPercentB.

Properties

Length
public int Length { get; set; }
value = bollingerPercentB.Length
bollingerPercentB.Length = value

Period length.

Measure
public override IndicatorMeasures Measure { get; }
value = bollingerPercentB.Measure

IndicatorMeasures.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = bollingerPercentB.NumValuesToInitialize

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.

StdDevMultiplier
public decimal StdDevMultiplier { get; set; }
value = bollingerPercentB.StdDevMultiplier
bollingerPercentB.StdDevMultiplier = value

Standard deviation multiplier.

Methods

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = bollingerPercentB.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = bollingerPercentB.OnProcess(input)

To handle the input value.

input
The input value.

Returns: The resulting value.

Reset
public override void Reset()
bollingerPercentB.Reset()

To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = bollingerPercentB.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

ToString
public override string ToString()
result = bollingerPercentB.ToString()

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.