Table of Contents

Interface IChartDrawData.IChartDrawDataItem

Namespace
StockSharp.Charting
Assembly
StockSharp.Charting.Interfaces.dll

Chart drawing data item.

public interface IChartDrawData.IChartDrawDataItem
Extension Methods

Methods

Add(IChartBandElement, decimal)

Put the line data.

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.

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[])

Put the candle data.

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

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.

Returns

IChartDrawData.IChartDrawDataItem

IChartDrawData.IChartDrawDataItem instance.

Add(IChartCandleElement, Color?)

Put candle color data.

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(IChartIndicatorElement, IIndicatorValue)

Put the indicator data.

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.

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.

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.

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.