ChartDrawDataItem
StockSharp.Xaml.Charting.ChartDrawData
Chart drawing data item.
Implements: IChartDrawDataItem
Properties
TimeStamp
public DateTime TimeStamp { get; }
value = chartDrawDataItem.TimeStamp
The time stamp of the new data generation.
XValue
public double XValue { get; }
value = chartDrawDataItem.XValue
Value of X coordinate for ChartLineElement.
Methods
Add
public IChartDrawDataItem Add(IChartCandleElement element, Color? color)
result = chartDrawDataItem.Add(element, color)
Put candle color data.
- element
- The chart element representing a candle.
- color
- Candle draw color.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartCandleElement element, Color? color)
result = chartDrawDataItem.Add(element, color)
Add
public IChartDrawDataItem Add(IChartCandleElement element, DataType dataType, SecurityId secId, decimal openPrice, decimal highPrice, decimal lowPrice, decimal closePrice, CandlePriceLevel[] priceLevels, CandleStates _)
result = chartDrawDataItem.Add(element, dataType, secId, openPrice, highPrice, lowPrice, closePrice, priceLevels, _)
Put the candle data.
- element
- The chart element representing a candle.
- dataType
- DataType.
- secId
- SecurityId.
- openPrice
- Opening price.
- highPrice
- Highest price.
- lowPrice
- Lowest price.
- closePrice
- Closing price.
- priceLevels
- Price levels.
- state
- Candle state.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartIndicatorElement element, IIndicatorValue value)
result = chartDrawDataItem.Add(element, value)
Put the indicator data.
- element
- The chart element representing the indicator.
- value
- The indicator value.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartOrderElement element, long orderId, string orderStringId, Sides side, decimal price, decimal volume, string errorMessage)
result = chartDrawDataItem.Add(element, orderId, orderStringId, side, price, volume, errorMessage)
Put the order data.
- element
- The chart element representing orders.
- orderId
- Order ID.
- orderStringId
- Order ID (as string, if electronic board does not use numeric order ID representation).
- side
- Order side (buy or sell).
- price
- Order price.
- volume
- Number of contracts in the order.
- errorMessage
- Error registering/cancelling order.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartTradeElement element, long tradeId, string tradeStringId, Sides side, decimal price, decimal volume)
result = chartDrawDataItem.Add(element, tradeId, tradeStringId, side, price, volume)
Put the trade data.
- element
- The chart element representing trades.
- tradeId
- Trade ID.
- tradeStringId
- Trade ID (as string, if electronic board does not use numeric order ID representation).
- side
- Order side (buy or sell).
- price
- Trade price.
- volume
- Number of contracts in the trade.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartLineElement element, double value1, double value2)
result = chartDrawDataItem.Add(element, value1, value2)
Put the line data.
- element
- The chart element representing a line.
- value1
- The value1.
- value2
- The value2.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartBandElement element, decimal value)
result = chartDrawDataItem.Add(element, value)
Put the line data.
- element
- The chart element representing a band.
- value
- The value.
Returns: IChartDrawDataItem instance.
Add
public IChartDrawDataItem Add(IChartBandElement element, double value1, double value2)
result = chartDrawDataItem.Add(element, value1, value2)
Put the line data.
- element
- The chart element representing a band.
- value1
- The value1.
- value2
- The value2.
Returns: IChartDrawDataItem instance.