ChartPanel

StockSharp.Xaml.Charting

蜡烛图表显示的扩展图形组件 。

继承自: UserControl

实现: IWpfChart, IChart, IChartBuilder, IThemeableChart, IPersistable, INotifyPropertyChangedEx, INotifyPropertyChanged, IComponentConnector, IStyleConnector

构造函数

ChartPanel
public ChartPanel()
chartPanel = ChartPanel()

初始化了 & ##ChartPanel+#的新实例.

属性

AllowAddArea
public bool AllowAddArea { get; set; }
value = chartPanel.AllowAddArea
chartPanel.AllowAddArea = value

允许用户添加新图表区域 。

AllowAddAxis
public bool AllowAddAxis { get; set; }
value = chartPanel.AllowAddAxis
chartPanel.AllowAddAxis = value

允许用户添加新图表轴 。

AllowAddCandles
public bool AllowAddCandles { get; set; }
value = chartPanel.AllowAddCandles
chartPanel.AllowAddCandles = value

允许用户添加新的蜡烛元素 。

AllowAddIndicators
public bool AllowAddIndicators { get; set; }
value = chartPanel.AllowAddIndicators
chartPanel.AllowAddIndicators = value

允许用户添加新的指标元素.

AllowAddOrders
public bool AllowAddOrders { get; set; }
value = chartPanel.AllowAddOrders
chartPanel.AllowAddOrders = value

允许用户添加新命令元素 。

AllowAddOwnTrades
public bool AllowAddOwnTrades { get; set; }
value = chartPanel.AllowAddOwnTrades
chartPanel.AllowAddOwnTrades = value

允许用户添加新的自有交易元素 。

Areas
public IEnumerable<IChartArea> Areas { get; }
value = chartPanel.Areas

图表区域.

ChartTheme
public string ChartTheme { get; set; }
value = chartPanel.ChartTheme
chartPanel.ChartTheme = value

图形主题的名称 。

CrossHair
public bool CrossHair { get; set; }
value = chartPanel.CrossHair
chartPanel.CrossHair = value

十字花纹.

CrossHairAxisLabels
public bool CrossHairAxisLabels { get; set; }
value = chartPanel.CrossHairAxisLabels
chartPanel.CrossHairAxisLabels = value

要显示横轴上的值 。

CrossHairTooltip
public bool CrossHairTooltip { get; set; }
value = chartPanel.CrossHairTooltip
chartPanel.CrossHairTooltip = value

显示横纹的快讯 。

DisableIndicatorReset
public bool DisableIndicatorReset { get; set; }
value = chartPanel.DisableIndicatorReset
chartPanel.DisableIndicatorReset = value

禁用跟踪指示器重置 。

IndicatorTypes
public IList<IndicatorType> IndicatorTypes { get; }
value = chartPanel.IndicatorTypes

现有指标类型列表.

IsAutoRange
public bool IsAutoRange { get; set; }
value = chartPanel.IsAutoRange
chartPanel.IsAutoRange = value

要使用 X 轴的自动范围。 默认关闭 。

IsAutoScroll
public bool IsAutoScroll { get; set; }
value = chartPanel.IsAutoScroll
chartPanel.IsAutoScroll = value

当新数据发生时自动滚动区域。 默认启用 。

IsInteracted
public bool IsInteracted { get; set; }
value = chartPanel.IsInteracted
chartPanel.IsInteracted = value

交互模式 默认关闭 。

MinimumRange
public int MinimumRange { get; set; }
value = chartPanel.MinimumRange
chartPanel.MinimumRange = value

明烛所出之最低.

OrderCreationMode
public bool OrderCreationMode { get; set; }
value = chartPanel.OrderCreationMode
chartPanel.OrderCreationMode = value

命令创建模式。 默认已关闭 。

OrderSettings
public ChartPanelOrderSettings OrderSettings { get; }
value = chartPanel.OrderSettings

图表顺序注册设置 。

SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = chartPanel.SecurityProvider
chartPanel.SecurityProvider = value

提供各种文书的信息。

ShareSettings
public ChartPanelShareSettings ShareSettings { get; }
value = chartPanel.ShareSettings

图表共享( 上载图像到网络) 设置 。

ShowLegend
public bool ShowLegend { get; set; }
value = chartPanel.ShowLegend
chartPanel.ShowLegend = value

以示出世传.

ShowNonFormedIndicators
public bool ShowNonFormedIndicators { get; set; }
value = chartPanel.ShowNonFormedIndicators
chartPanel.ShowNonFormedIndicators = value

显示非成型指标值。

ShowOverview
public bool ShowOverview { get; set; }
value = chartPanel.ShowOverview
chartPanel.ShowOverview = value

显示预览区域 。

ShowPerfStats
public bool ShowPerfStats { get; set; }
value = chartPanel.ShowPerfStats
chartPanel.ShowPerfStats = value

显示 FPS.

Subscriptions
public IEnumerable<Subscription> Subscriptions { get; }
value = chartPanel.Subscriptions

订阅列表.

TimeFrames
public ICollection<TimeSpan> TimeFrames { get; }
value = chartPanel.TimeFrames

现有时限。

TimeZone
public TimeZoneInfo TimeZone { get; set; }
value = chartPanel.TimeZone
chartPanel.TimeZone = value

本地时区所有%%%%DateTime%%%值转换.

UnderlyingChart
public IChart UnderlyingChart { get; }
value = chartPanel.UnderlyingChart

地底图.

方法

AddArea
public void AddArea(IChartArea area)
chartPanel.AddArea(area)

以图中添加一个区域.

area
图表区域.
AddElement
public void AddElement(IChartArea area, IChartOrderElement element, Subscription subscription)
chartPanel.AddElement(area, element, subscription)

将元素添加到图表中。

area
图表区域.
element
图表元素.
subscription
订阅.
AddElement
public void AddElement(IChartArea area, IChartElement element)
chartPanel.AddElement(area, element)

将元素添加到图表中。

area
图表区域.
element
图表元素.
AddElement
public void AddElement(IChartArea area, IChartCandleElement element, Subscription subscription)
chartPanel.AddElement(area, element, subscription)

以入一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一

area
图表区域.
element
蜡烛图元素.
subscription
订阅.
AddElement
public void AddElement(IChartArea area, IChartIndicatorElement element, Subscription subscription, IIndicator indicator)
chartPanel.AddElement(area, element, subscription, indicator)

将指标元素添加到图表中。

area
图表区域.
element
指标图表元素.
subscription
订阅.
indicator
指标。
AddElement
public void AddElement(IChartArea area, IChartTradeElement element, Subscription subscription)
chartPanel.AddElement(area, element, subscription)

将元素添加到图表中。

area
图表区域.
element
图表元素.
subscription
订阅.
CancelOrders
public void CancelOrders(Func<Order, bool> predicate)
chartPanel.CancelOrders(predicate)

取消添加到此实例的 & ###ChartPanel\\\\\\ 命令。 这种方法本身并不取消命令, 它只是通知订阅者 & ##CancelOrder\\ 事件 。

CreateActiveOrdersElement
public IChartActiveOrdersElement CreateActiveOrdersElement()
result = chartPanel.CreateActiveOrdersElement()

创建 IChartActiveOrdersElement 实例 。

返回值: IChartActiveOrdersElement例.

CreateAnnotation
public IChartAnnotationElement CreateAnnotation()
result = chartPanel.CreateAnnotation()

Create IChartAnnotationElement instance.

返回值: IChartAnnotationElement例.

CreateArea
public IChartArea CreateArea()
result = chartPanel.CreateArea()

Create IChartArea instance.

返回值: IChartArea例.

CreateAxis
public IChartAxis CreateAxis()
result = chartPanel.CreateAxis()

Create IChartAxis instance.

返回值: IChartAxis例.

CreateBandElement
public IChartBandElement CreateBandElement()
result = chartPanel.CreateBandElement()

Create IChartBandElement instance.

返回值: IChartBandElement例.

CreateBubbleElement
public IChartLineElement CreateBubbleElement()
result = chartPanel.CreateBubbleElement()

Create IChartLineElement instance.

返回值: IChartLineElement例.

CreateCandleElement
public IChartCandleElement CreateCandleElement()
result = chartPanel.CreateCandleElement()

Create IChartCandleElement instance.

返回值: IChartCandleElement例.

CreateData
public IChartDrawData CreateData()
result = chartPanel.CreateData()

Create IChartDrawData instance.

返回值: IChartDrawData例.

CreateIndicatorElement
public IChartIndicatorElement CreateIndicatorElement()
result = chartPanel.CreateIndicatorElement()

Create IChartIndicatorElement instance.

返回值: IChartIndicatorElement例.

CreateLineElement
public IChartLineElement CreateLineElement()
result = chartPanel.CreateLineElement()

Create IChartLineElement instance.

返回值: IChartLineElement例.

CreateOrderElement
public IChartOrderElement CreateOrderElement()
result = chartPanel.CreateOrderElement()

Create IChartOrderElement instance.

返回值: IChartOrderElement例.

CreateTradeElement
public IChartTradeElement CreateTradeElement()
result = chartPanel.CreateTradeElement()

Create IChartTradeElement instance.

返回值: IChartTradeElement例.

Draw
public void Draw(IChartDrawData data)
chartPanel.Draw(data)

处理新数据。

data
新数据.

返回值: 如果数据已成功绘制,否则返回。

InitializeComponent
public void InitializeComponent()
chartPanel.InitializeComponent()

InitializeComponent

Load
public void Load(SettingsStorage storage)
chartPanel.Load(storage)

装入设置 。

storage
设置存储 。
RegisterCandleStyle
public static void RegisterCandleStyle(string image, Func<string> getName, ChartCandleDrawStyles style)
ChartPanel.RegisterCandleStyle(image, getName, style)

登记蜡烛风格。

image
图像。
getName
名曰为相.
style
蜡烛的作风
RemoveArea
public void RemoveArea(IChartArea area)
chartPanel.RemoveArea(area)

以去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去去的去去去去去去的去去去去去去去去去去去去去去去去去去去的去去去去去去去去去去去去去去去

area
图表区域.
RemoveElement
public void RemoveElement(IChartArea area, IChartElement element)
chartPanel.RemoveElement(area, element)

要删除图表中的元素。

area
图表区域.
element
图表元素.
Reset
public void Reset(IEnumerable<IChartElement> elements)
chartPanel.Reset(elements)

重置先前绘制的图表元素值 。

elements
图表元素。
ReSubscribeElements
public void ReSubscribeElements()
chartPanel.ReSubscribeElements()

重新订阅获取所有元素的数据。

Save
public void Save(SettingsStorage storage)
chartPanel.Save(storage)

保存设置 。

storage
设置存储 。
SetSubscription
public void SetSubscription(IChartElement element, Subscription subscription)
chartPanel.SetSubscription(element, subscription)

设置元素的来源 。

element
图表元素.
subscription
订阅.
TryGetSubscription
public Subscription TryGetSubscription(IChartElement element)
result = chartPanel.TryGetSubscription(element)

获取 IChartElement 的数据源 。

element
图表元素.

返回值: 市场数据来源.

事件

AnnotationCreated
public event Action<IChartAnnotationElement> AnnotationCreated
chartPanel.AnnotationCreated += handler

注释创建事件 。

AnnotationDeleted
public event Action<IChartAnnotationElement> AnnotationDeleted
chartPanel.AnnotationDeleted += handler

注释已删除事件 。

AnnotationModified
public event Action<IChartAnnotationElement, AnnotationData> AnnotationModified
chartPanel.AnnotationModified += handler

注释修改事件 。

AnnotationSelected
public event Action<IChartAnnotationElement, AnnotationData> AnnotationSelected
chartPanel.AnnotationSelected += handler

注释选择事件.

AreaAdded
public event Action<IChartArea> AreaAdded
chartPanel.AreaAdded += handler

地区增加的活动。

AreaRemoved
public event Action<IChartArea> AreaRemoved
chartPanel.AreaRemoved += handler

区域已删除事件 。

CancelOrder
public event Action<Order> CancelOrder
chartPanel.CancelOrder += handler

取消订单事件.

MoveOrder
public event Action<Order, decimal> MoveOrder
chartPanel.MoveOrder += handler

令事再入户.

RegisterOrder
public event Action<IChartArea, Order> RegisterOrder
chartPanel.RegisterOrder += handler

订单注册事件.

SettingsChanged
public event Action SettingsChanged
chartPanel.SettingsChanged += handler

图表设置更改事件 。

SubscribeCandleElement
public event Action<IChartCandleElement, Subscription> SubscribeCandleElement
chartPanel.SubscribeCandleElement += handler

订阅获取元素数据的事件 。

SubscribeIndicatorElement
public event Action<IChartIndicatorElement, Subscription, IIndicator> SubscribeIndicatorElement
chartPanel.SubscribeIndicatorElement += handler

订阅获取元素数据的事件 。

SubscribeOrderElement
public event Action<IChartOrderElement, Subscription> SubscribeOrderElement
chartPanel.SubscribeOrderElement += handler

订阅获取元素数据的事件 。

SubscribeTradeElement
public event Action<IChartTradeElement, Subscription> SubscribeTradeElement
chartPanel.SubscribeTradeElement += handler

订阅获取元素数据的事件 。

UnSubscribeElement
public event Action<IChartElement> UnSubscribeElement
chartPanel.UnSubscribeElement += handler

获取元素数据时未订阅的事件 。

字段

AddAreaCommand
public static readonly RoutedCommand AddAreaCommand
value = ChartPanel.AddAreaCommand

将区域添加到图表中的命令 。

AddCandlesCommand
public static readonly RoutedCommand AddCandlesCommand
value = ChartPanel.AddCandlesCommand

令入出道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道道

AddIndicatorCommand
public static readonly RoutedCommand AddIndicatorCommand
value = ChartPanel.AddIndicatorCommand

命令将指示器添加到图表中 。

PatternCommand
public static readonly RoutedCommand PatternCommand
value = ChartPanel.PatternCommand

模式创建的命令 。

RegisterOrderCommand
public static readonly RoutedCommand RegisterOrderCommand
value = ChartPanel.RegisterOrderCommand

命令注册的命令.

ShareCommand
public static readonly RoutedCommand ShareCommand
value = ChartPanel.ShareCommand

共享图表作为图像的命令 。