ChartPanel

StockSharp.Xaml.Charting

The extended graphical component for candle charts displaying.

Erbt von: UserControl

Implementiert: IWpfChart, IChart, IChartBuilder, IThemeableChart, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IComponentConnector, IStyleConnector

Konstruktoren

ChartPanel()

Initializes a new instance of the ChartPanel.

Eigenschaften

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.

Areas : IEnumerable<IChartArea>

Chart areas.

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.

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.

OrderSettings : ChartPanelOrderSettings

Chart order registering settings.

SecurityProvider : ISecurityProvider

The provider of information about instruments.

ShareSettings : ChartPanelShareSettings

Chart share (upload image to web) settings.

ShowLegend : bool

To show the legend.

ShowNonFormedIndicators : bool

Show non formed indicators values.

ShowOverview : bool

To show the preview area.

ShowPerfStats : bool

Show FPS.

Subscriptions : IEnumerable<Subscription>

The list of subscriptions.

TimeFrames : ICollection<TimeSpan>

Available time-frames.

TimeZone : TimeZoneInfo

Local time zone for all DateTime values conversion.

UnderlyingChart : IChart

Underlying chart.

Methoden

AddArea(IChartArea)

To add an area to the chart.

area
Chart area.
AddElement(IChartArea, IChartOrderElement, Subscription)

To add an element to the chart.

area
Chart area.
element
The chart element.
subscription
Subscription.
AddElement(IChartArea, IChartElement)

To add an element to the chart.

area
Chart area.
element
The chart element.
AddElement(IChartArea, IChartCandleElement, Subscription)

To add a candle element to the chart.

area
Chart area.
element
The candle 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, IChartTradeElement, Subscription)

To add an element to the chart.

area
Chart area.
element
The chart element.
subscription
Subscription.
CancelOrders(Func<Order, bool>)

Cancel orders that were added to this instance of ChartPanel. This method does not cancel orders by itself. It just notifies subscribers with CancelOrder event.

CreateActiveOrdersElement() : IChartActiveOrdersElement

Create IChartActiveOrdersElement instance.

Rückgabe: IChartActiveOrdersElement instance.

CreateAnnotation() : IChartAnnotationElement

Create IChartAnnotationElement instance.

Rückgabe: IChartAnnotationElement instance.

CreateArea() : IChartArea

Create IChartArea instance.

Rückgabe: IChartArea instance.

CreateAxis() : IChartAxis

Create IChartAxis instance.

Rückgabe: IChartAxis instance.

CreateBandElement() : IChartBandElement

Create IChartBandElement instance.

Rückgabe: IChartBandElement instance.

CreateBubbleElement() : IChartLineElement

Create IChartLineElement instance.

Rückgabe: IChartLineElement instance.

CreateCandleElement() : IChartCandleElement

Create IChartCandleElement instance.

Rückgabe: IChartCandleElement instance.

CreateData() : IChartDrawData

Create IChartDrawData instance.

Rückgabe: IChartDrawData instance.

CreateIndicatorElement() : IChartIndicatorElement

Create IChartIndicatorElement instance.

Rückgabe: IChartIndicatorElement instance.

CreateLineElement() : IChartLineElement

Create IChartLineElement instance.

Rückgabe: IChartLineElement instance.

CreateOrderElement() : IChartOrderElement

Create IChartOrderElement instance.

Rückgabe: IChartOrderElement instance.

CreateTradeElement() : IChartTradeElement

Create IChartTradeElement instance.

Rückgabe: IChartTradeElement instance.

Draw(IChartDrawData)

To process the new data.

data
New data.

Rückgabe: if the data was successfully drawn, otherwise, returns .

InitializeComponent()

InitializeComponent

Load(SettingsStorage)

Load settings.

storage
Settings storage.
RegisterCandleStyle(string, Func<string>, ChartCandleDrawStyles)

Register candle style.

image
Image.
getName
Name.
style
Style of candles rendering.
RemoveArea(IChartArea)

To remove the area from the chart.

area
Chart area.
RemoveElement(IChartArea, IChartElement)

To remove the element from the chart.

area
Chart area.
element
The chart element.
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.

Rückgabe: Market-data source.

Ereignisse

AnnotationCreated : Action<IChartAnnotationElement>

Annotation created event.

AnnotationDeleted : Action<IChartAnnotationElement>

Annotation deleted event.

AreaAdded : Action<IChartArea>

Areas added event.

AreaRemoved : Action<IChartArea>

Areas removed event.

CancelOrder : Action<Order>

The event of the order cancellation.

MoveOrder : Action<Order, decimal>

The event of the order re-registration.

RegisterOrder : Action<IChartArea, Order>

The event of the order registration.

SettingsChanged : Action

The chart settings change event.

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.

Felder

AddAreaCommand : RoutedCommand

The command to add the area to the chart.

AddCandlesCommand : RoutedCommand

The command to add candles to the chart.

AddIndicatorCommand : RoutedCommand

The command to add the indicator to the chart.

PatternCommand : RoutedCommand

The command for the pattern creation.

RegisterOrderCommand : RoutedCommand

The command for the order registration.

ShareCommand : RoutedCommand

The command for share chart as an image.