Table of Contents

Class CandlePatternIndicator

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

Indicator, based on ICandlePattern.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Pattern", Description = "Pattern")]
[IndicatorIn(typeof(CandleIndicatorValue))]
[IndicatorOut(typeof(CandlePatternIndicatorValue))]
[Doc("topics/api/patterns.html")]
public class CandlePatternIndicator : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
CandlePatternIndicator
Implements
Inherited Members
Extension Methods

Remarks

Constructors

CandlePatternIndicator()

Initializes a new instance of the CandlePatternIndicator.

public CandlePatternIndicator()

Properties

NumValuesToInitialize

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

public override int NumValuesToInitialize { get; }

Property Value

int

Pattern

Candle pattern.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Pattern", Description = "Pattern", GroupName = "General")]
public ICandlePattern Pattern { get; set; }

Property Value

ICandlePattern

Methods

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

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 sealed void Reset()

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.