Table of Contents

Class TimeWeightedAveragePrice

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

Time Weighted Average Price (TWAP) indicator.

[Display(ResourceType = typeof(LocalizedStrings), Name = "TWAP", Description = "TimeWeightedAveragePrice")]
[IndicatorIn(typeof(CandleIndicatorValue))]
public class TimeWeightedAveragePrice : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
TimeWeightedAveragePrice
Implements
IPersistable
ICloneable<IIndicator>
Derived
Inherited Members
Extension Methods

Constructors

TimeWeightedAveragePrice()

Initializes a new instance of the TimeWeightedAveragePrice.

public TimeWeightedAveragePrice()

Methods

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

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).

public override void Reset()