Table of Contents

Class ChartDrawData.ChartDrawDataItem

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

Chart drawing data item.

public sealed class ChartDrawData.ChartDrawDataItem : IChartDrawData.IChartDrawDataItem
Inheritance
ChartDrawData.ChartDrawDataItem
Implements
Inherited Members
Extension Methods

Properties

TimeStamp

The time stamp of the new data generation.

public DateTimeOffset TimeStamp { get; }

Property Value

DateTimeOffset

XValue

Value of X coordinate for ChartLineElement.

public double XValue { get; }

Property Value

double

Methods

Add(IChartBandElement, decimal)

Put the line data.

public IChartDrawData.IChartDrawDataItem Add(IChartBandElement element, decimal value)

Parameters

element IChartBandElement

The chart element representing a band.

value decimal

The value.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartBandElement, double, double)

Put the line data.

public IChartDrawData.IChartDrawDataItem Add(IChartBandElement element, double value1, double value2)

Parameters

element IChartBandElement

The chart element representing a band.

value1 double

The value1.

value2 double

The value2.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartCandleElement, DataType, SecurityId, decimal, decimal, decimal, decimal, CandlePriceLevel[], CandleStates)

Put the candle data.

public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, DataType dataType, SecurityId secId, decimal openPrice, decimal highPrice, decimal lowPrice, decimal closePrice, CandlePriceLevel[] priceLevels, CandleStates _)

Parameters

element IChartCandleElement

The chart element representing a candle.

dataType DataType

DataType.

secId SecurityId

SecurityId.

openPrice decimal

Opening price.

highPrice decimal

Highest price.

lowPrice decimal

Lowest price.

closePrice decimal

Closing price.

priceLevels CandlePriceLevel[]

Price levels.

_ CandleStates

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartCandleElement, Color?)

Put candle color data.

public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)

Parameters

element IChartCandleElement

The chart element representing a candle.

color Color?

Candle draw color.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartCandleElement, Color?)

public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)

Parameters

element IChartCandleElement
color Color?

Returns

IChartDrawData.IChartDrawDataItem

Add(IChartIndicatorElement, IIndicatorValue)

Put the indicator data.

public IChartDrawData.IChartDrawDataItem Add(IChartIndicatorElement element, IIndicatorValue value)

Parameters

element IChartIndicatorElement

The chart element representing the indicator.

value IIndicatorValue

The indicator value.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartLineElement, double, double)

Put the line data.

public IChartDrawData.IChartDrawDataItem Add(IChartLineElement element, double value1, double value2 = NaN)

Parameters

element IChartLineElement

The chart element representing a line.

value1 double

The value1.

value2 double

The value2.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartOrderElement, long, string, Sides, decimal, decimal, string)

Put the trade data.

public IChartDrawData.IChartDrawDataItem Add(IChartOrderElement element, long orderId, string orderStringId, Sides side, decimal price, decimal volume, string errorMessage = null)

Parameters

element IChartOrderElement

The chart element representing orders.

orderId long

Order ID.

orderStringId string

Order ID (as string, if electronic board does not use numeric order ID representation).

side Sides

Order side (buy or sell).

price decimal

Order price.

volume decimal

Number of contracts in the order.

errorMessage string

Error registering/cancelling order.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartTradeElement, long, string, Sides, decimal, decimal)

Put the trade data.

public IChartDrawData.IChartDrawDataItem Add(IChartTradeElement element, long tradeId, string tradeStringId, Sides side, decimal price, decimal volume)

Parameters

element IChartTradeElement

The chart element representing trades.

tradeId long

Trade ID.

tradeStringId string

Trade ID (as string, if electronic board does not use numeric order ID representation).

side Sides

Order side (buy or sell).

price decimal

Trade price.

volume decimal

Number of contracts in the trade.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.