Chart

StockSharp.Xaml.Charting

The graphic component of the candles charts display.

Hereda de: UserControl

Implementa: IWpfChart, IChart, IChartBuilder, IThemeableChart, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IComponentConnector

Constructores

Chart()

Initializes a new instance of the Chart.

Propiedades

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.

CrossHair : bool

Crosshair.

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.

Security : Security

Chart main security.

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

AddArea(IChartArea)

To add an area to the chart.

area
Chart area.
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.

Devuelve: IChartActiveOrdersElement instance.

CreateAnnotation() : IChartAnnotationElement

Create IChartAnnotationElement instance.

Devuelve: IChartAnnotationElement instance.

CreateArea() : IChartArea

Create IChartArea instance.

Devuelve: IChartArea instance.

CreateAxis() : IChartAxis

Create IChartAxis instance.

Devuelve: IChartAxis instance.

CreateBandElement() : IChartBandElement

Create IChartBandElement instance.

Devuelve: IChartBandElement instance.

CreateBubbleElement() : IChartLineElement

Create IChartLineElement instance.

Devuelve: IChartLineElement instance.

CreateCandleElement() : IChartCandleElement

Create IChartCandleElement instance.

Devuelve: IChartCandleElement instance.

CreateData() : IChartDrawData

Create IChartDrawData instance.

Devuelve: IChartDrawData instance.

CreateIndicatorElement() : IChartIndicatorElement

Create IChartIndicatorElement instance.

Devuelve: IChartIndicatorElement instance.

CreateLineElement() : IChartLineElement

Create IChartLineElement instance.

Devuelve: IChartLineElement instance.

CreateOrderElement() : IChartOrderElement

Create IChartOrderElement instance.

Devuelve: IChartOrderElement instance.

CreateTradeElement() : IChartTradeElement

Create IChartTradeElement instance.

Devuelve: IChartTradeElement instance.

Draw(IChartDrawData)

To process the new data.

data
New data.

Devuelve: if the data was successfully drawn, otherwise, returns .

GetIndicator(IChartIndicatorElement) : IIndicator

To get an indicator which is associated with IChartIndicatorElement.

element
The chart element.

Devuelve: Indicator.

InitializeComponent()

InitializeComponent

Load(SettingsStorage)

Load settings.

storage
Settings storage.
RemoveArea(IChartArea)

To remove the area from the chart.

area
Chart area.
Reset(IEnumerable<IChartElement>)

To reset the chart elements values drawn previously.

elements
Chart elements.
ReSubscribeElements()

To re-subscribe to getting data for all elements.

Save(SettingsStorage)

Save settings.

storage
Settings storage.
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.

Devuelve: Market-data source.

Eventos

AddCandles : Action<ChartArea>

The chart element creation event.

AddIndicator : Action<ChartArea>

The chart element creation event.

AddOrders : Action<ChartArea>

The chart element creation event.

AddTrades : Action<ChartArea>

The chart element creation event.

AnnotationCreated : Action<IChartAnnotationElement>

Annotation created event.

AnnotationDeleted : Action<IChartAnnotationElement>

Annotation deleted 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.

MoveOrder : Action<Order, decimal>

Move order 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.