Table of Contents

Class CandlesDiagramElement

Namespace
StockSharp.Diagram.Elements
Assembly
StockSharp.Diagram.Core.dll

Candles source element.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Candles", Description = "CandleSourceElementDescription", GroupName = "Sources")]
public sealed class CandlesDiagramElement : SubscriptionDiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable
Inheritance
CandlesDiagramElement
Implements
INotifyPropertiesChanged
IPersistable
Inherited Members
Extension Methods

Constructors

CandlesDiagramElement()

Initializes a new instance of the CandlesDiagramElement.

public CandlesDiagramElement()

Properties

AllowBuildFromSmallerTimeFrame

Allow build candles from smaller timeframe.

public bool AllowBuildFromSmallerTimeFrame { get; set; }

Property Value

bool

BuildCandlesField

Extra info for the BuildCandlesFrom.

public Level1Fields? BuildCandlesField { get; set; }

Property Value

Level1Fields?

BuildCandlesFrom

Which market-data type is used as a source value.

public DataType BuildCandlesFrom { get; set; }

Property Value

DataType

BuildCandlesMode

Build mode.

public MarketDataBuildModes BuildCandlesMode { get; set; }

Property Value

MarketDataBuildModes

IconName

Icon resource name.

public override string IconName { get; }

Property Value

string

IsCalcVolumeProfile

To perform the calculation PriceLevels. By default, it is disabled.

public bool IsCalcVolumeProfile { get; set; }

Property Value

bool

IsFinishedOnly

Send only formed candles.

public bool IsFinishedOnly { get; set; }

Property Value

bool

IsRegularTradingHours

Use only the regular trading hours for which data will be requested.

public bool? IsRegularTradingHours { get; set; }

Property Value

bool?

Series

Candles series.

public CandleSeries Series { get; set; }

Property Value

CandleSeries

TypeId

The unique identifier of the diagram element type.

public override Guid TypeId { get; }

Property Value

Guid

Methods

OnCreateSubscription(Security)

The method is called at the subscribing to market data.

protected override Subscription OnCreateSubscription(Security security)

Parameters

security Security

Security

Returns

Subscription

Subscription.