VolumeProfileIndicator

StockSharp.Algo.Indicators

Volume profile.

Inherits: BaseIndicator

Constructors

VolumeProfileIndicator
public VolumeProfileIndicator()
volumeProfileIndicator = VolumeProfileIndicator()

Initializes a new instance of the VolumeProfileIndicator.

Properties

Step
public decimal Step { get; set; }
value = volumeProfileIndicator.Step
volumeProfileIndicator.Step = value

The grouping increment.

UseTotalVolume
public bool UseTotalVolume { get; set; }
value = volumeProfileIndicator.UseTotalVolume
volumeProfileIndicator.UseTotalVolume = value

To use aggregate volume in calculations (when candles do not contain VolumeProfile).

Methods

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

To handle the input value.

input
The input value.

Returns: The resulting value.

Reset
public override void Reset()
volumeProfileIndicator.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 = volumeProfileIndicator.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

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

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

Returns: A string representing the tuple's values.