Chart
The graphic component of the candles charts display.
Herda de: UserControl
Implementa: IWpfChart, IChart, IChartBuilder, IThemeableChart, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IComponentConnector
Construtores
Chart()
Initializes a new instance of the Chart.
Propriedades
AllowAddArea : bool
Allow user to add new chart area.
AllowAddAxis : bool
Allow user to add new chart axis.
AllowAddCandles : bool
Allow user to add new candles elements.
AllowAddIndicators : bool
Allow user to add new indicator elements.
AllowAddOrders : bool
Allow user to add new orders elements.
AllowAddOwnTrades : bool
Allow user to add new own trades elements.
AnnotationType : ChartAnnotationTypes
The prompt message type for drawing on the chart.
Areas : IEnumerable<IChartArea>
Chart areas.
AutoRangeByAnnotations : bool
To use annotations to define the visible range for the Y-axis.
AutoRangeInterval : TimeSpan
Chart range/scroll interval. Default is 200ms.
ChartTheme : string
The name of the graphic theme.
CrossHairAxisLabels : bool
To show values on the axis for the crosshair.
CrossHairTooltip : bool
To show the prompt message for the crosshair.
DefaultCandlesSettings : MarketDataMessage
Default settings for the candles subscription.
DisableIndicatorReset : bool
Disable tracking indicator reset.
IndicatorTypes : IList<IndicatorType>
The list of available indicators types.
IsAutoRange : bool
To use automatic range for the X-axis. The default is off.
IsAutoScroll : bool
To scroll Areas areas automatically when new data occurred. The default is enabled.
IsInteracted : bool
The interactive mode. The default is off.
MinimumRange : int
The minimum number of visible candles.
OrderCreationMode : bool
The order creation mode. The default is off.
SecurityProvider : ISecurityProvider
The provider of information about instruments.
ShowLegend : bool
To show the legend.
ShowNonFormedIndicators : bool
Show non formed indicators values.
ShowOverview : bool
To show the preview area.
ShowPerfStats : bool
Show FPS.
Subscription : Subscription
Chart main candle series.
Subscriptions : IEnumerable<Subscription>
The list of subscriptions.
TimeZone : TimeZoneInfo
Local time zone for all DateTime values conversion.
Métodos
AddElement(IChartArea, IChartCandleElement, Subscription)
To add a candle element to the chart.
- area
- Chart area.
- element
- The candle chart element.
- subscription
- Subscription.
AddElement(IChartArea, IChartTradeElement, Subscription)
To add an element to the chart.
- area
- Chart area.
- element
- The chart element.
- subscription
- Subscription.
AddElement(IChartArea, IChartOrderElement, Subscription)
To add an element to the chart.
- area
- Chart area.
- element
- The chart element.
- subscription
- Subscription.
AddElement(IChartArea, IChartIndicatorElement, Subscription, IIndicator)
To add an indicator element to the chart.
- area
- Chart area.
- element
- The indicator chart element.
- subscription
- Subscription.
- indicator
- Indicator.
AddElement(IChartArea, IChartElement)
To add an element to the chart.
- area
- Chart area.
- element
- The chart element.
CancelOrders(Func<Order, bool>)
Cancel orders that were added to this instance of Chart. This method does not cancel orders by itself. It just notifies subscribers with CancelOrder event.
CreateActiveOrdersElement() : IChartActiveOrdersElement
Create IChartActiveOrdersElement instance.
Retorna: IChartActiveOrdersElement instance.
CreateAnnotation() : IChartAnnotationElement
Create IChartAnnotationElement instance.
Retorna: IChartAnnotationElement instance.
CreateBandElement() : IChartBandElement
Create IChartBandElement instance.
Retorna: IChartBandElement instance.
CreateBubbleElement() : IChartLineElement
Create IChartLineElement instance.
Retorna: IChartLineElement instance.
CreateCandleElement() : IChartCandleElement
Create IChartCandleElement instance.
Retorna: IChartCandleElement instance.
CreateIndicatorElement() : IChartIndicatorElement
Create IChartIndicatorElement instance.
Retorna: IChartIndicatorElement instance.
CreateLineElement() : IChartLineElement
Create IChartLineElement instance.
Retorna: IChartLineElement instance.
CreateOrderElement() : IChartOrderElement
Create IChartOrderElement instance.
Retorna: IChartOrderElement instance.
CreateTradeElement() : IChartTradeElement
Create IChartTradeElement instance.
Retorna: IChartTradeElement instance.
Draw(IChartDrawData)
To process the new data.
- data
- New data.
Retorna: if the data was successfully drawn, otherwise, returns .
GetIndicator(IChartIndicatorElement) : IIndicator
To get an indicator which is associated with IChartIndicatorElement.
- element
- The chart element.
Retorna: Indicator.
InitializeComponent()
InitializeComponent
Reset(IEnumerable<IChartElement>)
To reset the chart elements values drawn previously.
- elements
- Chart elements.
ReSubscribeElements()
To re-subscribe to getting data for all elements.
SetSubscription(IChartElement, Subscription)
To set the source for the element.
- element
- The chart element.
- subscription
- Subscription.
TryGetSubscription(IChartElement) : Subscription
To get the data source for IChartElement.
- element
- The chart element.
Retorna: Market-data source.
Eventos
AddCandles : Action<ChartArea>
The chart element creation event.
AddIndicator : Action<ChartArea>
The chart element creation event.
AnnotationCreated : Action<IChartAnnotationElement>
Annotation created event.
AnnotationDeleted : Action<IChartAnnotationElement>
Annotation deleted event.
AnnotationModified : Action<IChartAnnotationElement, AnnotationData>
Annotation created event.
AnnotationSelected : Action<IChartAnnotationElement, AnnotationData>
Annotation selection event.
AreaAdded : Action<IChartArea>
Areas added event.
AreaAdding : Action
The chart area creation event.
AreaRemoved : Action<IChartArea>
Areas removed event.
CancelOrder : Action<Order>
Cancel order event.
CreateOrder : Action<ChartArea, Order>
The new order creation event.
RebuildCandles : Action<IChartElement, Subscription>
Rebuild candles event.
RemoveElement : Action<IChartElement>
The chart element removal event.
SecurityChanged : Action
The event indicates that chart's main security was changed.
SubscribeCandleElement : Action<IChartCandleElement, Subscription>
The event of the subscription to getting data for the element.
SubscribeIndicatorElement : Action<IChartIndicatorElement, Subscription, IIndicator>
The event of the subscription to getting data for the element.
SubscribeOrderElement : Action<IChartOrderElement, Subscription>
The event of the subscription to getting data for the element.
SubscribeTradeElement : Action<IChartTradeElement, Subscription>
The event of the subscription to getting data for the element.
UnSubscribeElement : Action<IChartElement>
The event of the unsubscribe from getting data for the element.