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
IChartBandElementThe chart element representing a band.
value
decimalThe value.
Returns
Add(IChartBandElement, double, double)
Put the line data.
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.
IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, DataType dataType, SecurityId secId, decimal openPrice, decimal highPrice, decimal lowPrice, decimal closePrice, CandlePriceLevel[] priceLevels, CandleStates state)
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.
state
CandleStatesCandle state.
Returns
Add(IChartCandleElement, Color?)
Put candle color data.
IChartDrawData.IChartDrawDataItem Add(IChartCandleElement element, Color? color)
Parameters
element
IChartCandleElementThe chart element representing a candle.
color
Color?Candle draw color.
Returns
Add(IChartIndicatorElement, IIndicatorValue)
Put the indicator data.
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.
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.
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.
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.