ChartDrawData
StockSharp.Xaml.Charting
Chart drawing data.
Implements: IChartDrawData
Constructors
ChartDrawData
public ChartDrawData()
chartDrawData = ChartDrawData()
Initializes a new instance of the ChartDrawData.
Methods
Add
public IChartDrawData Add(IChartAnnotationElement element, IAnnotationData data)
result = chartDrawData.Add(element, data)
Put the annotation data.
- element
- The chart element representing an annotation.
- data
- Annotation draw data.
Returns: IChartDrawData instance.
Add
public IChartDrawData Add(IChartActiveOrdersElement element, Order order, bool? isFrozen, bool autoRemoveFromChart, bool isHidden, bool? isError, decimal? price, decimal? balance, OrderStates? state)
result = chartDrawData.Add(element, order, isFrozen, autoRemoveFromChart, isHidden, isError, price, balance, state)
Put the active order data.
- element
- The chart element representing active orders.
- order
- The order. Can be null to draw just error animation without data.
- isFrozen
- Do not allow user to edit the order from chart.
- autoRemoveFromChart
- Auto remove this order from chart when its state is final (Done, Failed).
- isHidden
- Whether the order element should be hidden.
- isError
- Whether an order operation has failed.
- price
- Order price.
- balance
- Balance.
- state
- Use this state to draw the order.
Returns: IChartDrawData instance.
Group
public IChartDrawDataItem Group(DateTime timeStamp)
result = chartDrawData.Group(timeStamp)
Initializes a new instance of the IChartDrawDataItem.
- timeStamp
- The time stamp of the new data generation.
Returns: IChartDrawDataItem instance.
Group
public IChartDrawDataItem Group(double xValue)
result = chartDrawData.Group(xValue)
Initializes a new instance of the IChartDrawDataItem.
- xValue
- Value of X coordinate for the data.
Returns: IChartDrawDataItem instance.