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
elementIChartBandElementThe chart element representing a band.
valuedecimalThe value.
Returns
Add(IChartBandElement, double, double)
Put the line data.
public IChartDrawData.IChartDrawDataItem Add(IChartBandElement element, double value1, double value2)
Parameters
elementIChartBandElementThe chart element representing a band.
value1doubleThe value1.
value2doubleThe 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
elementIChartCandleElementThe chart element representing a candle.
dataTypeDataTypesecIdSecurityIdopenPricedecimalOpening price.
highPricedecimalHighest price.
lowPricedecimalLowest price.
closePricedecimalClosing price.
priceLevelsCandlePriceLevel[]Price levels.
_CandleStates
Returns
Add(IChartCandleElement, Color?)
Put candle color data.
public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)
Parameters
elementIChartCandleElementThe chart element representing a candle.
colorColor?Candle draw color.
Returns
Add(IChartCandleElement, Color?)
public IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)
Parameters
elementIChartCandleElementcolorColor?
Returns
Add(IChartIndicatorElement, IIndicatorValue)
Put the indicator data.
public IChartDrawData.IChartDrawDataItem Add(IChartIndicatorElement element, IIndicatorValue value)
Parameters
elementIChartIndicatorElementThe chart element representing the indicator.
valueIIndicatorValueThe indicator value.
Returns
Add(IChartLineElement, double, double)
Put the line data.
public IChartDrawData.IChartDrawDataItem Add(IChartLineElement element, double value1, double value2 = NaN)
Parameters
elementIChartLineElementThe chart element representing a line.
value1doubleThe value1.
value2doubleThe value2.
Returns
Add(IChartOrderElement, long, string, Sides, decimal, decimal, string)
Put the order data.
public IChartDrawData.IChartDrawDataItem Add(IChartOrderElement element, long orderId, string orderStringId, Sides side, decimal price, decimal volume, string errorMessage = null)
Parameters
elementIChartOrderElementThe chart element representing orders.
orderIdlongOrder ID.
orderStringIdstringOrder ID (as string, if electronic board does not use numeric order ID representation).
sideSidesOrder side (buy or sell).
pricedecimalOrder price.
volumedecimalNumber of contracts in the order.
errorMessagestringError 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
elementIChartTradeElementThe chart element representing trades.
tradeIdlongTrade ID.
tradeStringIdstringTrade ID (as string, if electronic board does not use numeric order ID representation).
sideSidesOrder side (buy or sell).
pricedecimalTrade price.
volumedecimalNumber of contracts in the trade.