Table of Contents

Class ChartDrawData

Namespace
StockSharp.Xaml.Charting
Assembly
StockSharp.Xaml.Charting.dll

Chart drawing data.

public class ChartDrawData : IChartDrawData
Inheritance
ChartDrawData
Implements
Inherited Members
Extension Methods

Constructors

ChartDrawData()

Initializes a new instance of the ChartDrawData.

public ChartDrawData()

Methods

Add(IChartActiveOrdersElement, Order, bool?, bool, bool, bool?, decimal?, decimal?, OrderStates?)

Put the active order data.

public IChartDrawData Add(IChartActiveOrdersElement element, Order order, bool? isFrozen = null, bool autoRemoveFromChart = true, bool isHidden = false, bool? isError = null, decimal? price = null, decimal? balance = null, OrderStates? state = null)

Parameters

element IChartActiveOrdersElement

The chart element representing active orders.

order Order

The order. Can be null to draw just error animation without data.

isFrozen bool?

Do not allow user to edit the order from chart.

autoRemoveFromChart bool

Auto remove this order from chart when its state is final (Done, Failed).

isHidden bool

Whether an order operation has failed.

isError bool?

Whether an order operation has failed.

price decimal?

Order price.

balance decimal?

Balance.

state OrderStates?

Use this state to draw the order.

Returns

IChartDrawData

IChartDrawData instance.

Add(IChartAnnotation, IAnnotationData)

Put the annotation data.

public void Add(IChartAnnotation element, IAnnotationData data)

Parameters

element IChartAnnotation

The chart element representing an annotation.

data IAnnotationData

Annotation draw data.

Group(DateTimeOffset)

Initializes a new instance of the IChartDrawData.IChartDrawDataItem.

public IChartDrawData.IChartDrawDataItem Group(DateTimeOffset timeStamp)

Parameters

timeStamp DateTimeOffset

The time stamp of the new data generation.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Group(double)

Initializes a new instance of the IChartDrawData.IChartDrawDataItem.

public IChartDrawData.IChartDrawDataItem Group(double xValue)

Parameters

xValue double

Value of X coordinate for the data.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.