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
XValue
Value of X coordinate for ChartLineElement.
public double XValue { get; }
Property Value
Methods
Add(IChartBandElement, decimal)
Put the line data.
public IChartDrawData.IChartDrawDataItem Add(IChartBandElement element, decimal value)
Parameters
element
IChartBandElementThe chart element representing a band.
value
decimalThe value.
Returns
Add(IChartBandElement, double, double)
Put the line data.
public IChartDrawData.IChartDrawDataItem Add(IChartBandElement element, double value1, double value2)
Parameters
element
IChartBandElementThe chart element representing a band.
value1
doubleThe value1.
value2
doubleThe value2.
Returns
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
IChartCandleElementThe chart element representing a candle.
dataType
DataTypesecId
SecurityIdopenPrice
decimalOpening price.
highPrice
decimalHighest price.
lowPrice
decimalLowest price.
closePrice
decimalClosing price.
priceLevels
CandlePriceLevel[]Price levels.
_
CandleStates
Returns
Add(IChartCandleElement, Color?)
Put candle color data.
public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)
Parameters
element
IChartCandleElementThe chart element representing a candle.
color
Color?Candle draw color.
Returns
Add(IChartCandleElement, Color?)
public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)
Parameters
element
IChartCandleElementcolor
Color?
Returns
Add(IChartIndicatorElement, IIndicatorValue)
Put the indicator data.
public IChartDrawData.IChartDrawDataItem Add(IChartIndicatorElement element, IIndicatorValue value)
Parameters
element
IChartIndicatorElementThe chart element representing the indicator.
value
IIndicatorValueThe indicator value.
Returns
Add(IChartLineElement, double, double)
Put the line data.
public IChartDrawData.IChartDrawDataItem Add(IChartLineElement element, double value1, double value2 = NaN)
Parameters
element
IChartLineElementThe chart element representing a line.
value1
doubleThe value1.
value2
doubleThe value2.
Returns
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
IChartOrderElementThe chart element representing orders.
orderId
longOrder ID.
orderStringId
stringOrder ID (as string, if electronic board does not use numeric order ID representation).
side
SidesOrder side (buy or sell).
price
decimalOrder price.
volume
decimalNumber of contracts in the order.
errorMessage
stringError registering/cancelling order.
Returns
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
IChartTradeElementThe chart element representing trades.
tradeId
longTrade ID.
tradeStringId
stringTrade ID (as string, if electronic board does not use numeric order ID representation).
side
SidesOrder side (buy or sell).
price
decimalTrade price.
volume
decimalNumber of contracts in the trade.