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
elementIChartBandElementThe chart element representing a band.
valuedecimalThe value.
Returns
Add(IChartBandElement, double, double)
Put the line data.
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.
IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, DataType dataType, SecurityId secId, decimal openPrice, decimal highPrice, decimal lowPrice, decimal closePrice, CandlePriceLevel[] priceLevels, CandleStates state)
Parameters
elementIChartCandleElementThe chart element representing a candle.
dataTypeDataTypesecIdSecurityIdopenPricedecimalOpening price.
highPricedecimalHighest price.
lowPricedecimalLowest price.
closePricedecimalClosing price.
priceLevelsCandlePriceLevel[]Price levels.
stateCandleStatesCandle state.
Returns
Add(IChartCandleElement, Color?)
Put candle color data.
IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)
Parameters
elementIChartCandleElementThe chart element representing a candle.
colorColor?Candle draw color.
Returns
Add(IChartIndicatorElement, IIndicatorValue)
Put the indicator data.
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.
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.
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.
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.