Class EquityCurveChart
- Namespace
- StockSharp.Xaml.Charting
- Assembly
- StockSharp.Xaml.Charting.dll
The graphical component to display the equity curve.
public class EquityCurveChart : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IThemeableChart, IPersistable, IComponentConnector
- Inheritance
-
EquityCurveChart
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
EquityCurveChart()
Initializes a new instance of the EquityCurveChart.
public EquityCurveChart()
Properties
ChartTheme
The name of the graphic theme.
public string ChartTheme { get; set; }
Property Value
Elements
Elements.
public IEnumerable<IChartBandElement> Elements { get; }
Property Value
NoGapMode
To remove gaps (weekends, holidays) on the chart. When the mode is enabled and multiple curves are used then joint scaling will be lost. Enabled by default.
public bool NoGapMode { get; set; }
Property Value
Methods
Clear()
To remove yield curves from the chart.
public void Clear()
CreateCurve(string, Color, ChartIndicatorDrawStyles, Guid)
To create new curve to draw the yield.
public IChartBandElement CreateCurve(string title, Color color, ChartIndicatorDrawStyles style, Guid id = default)
Parameters
title
stringThe line title.
color
ColorThe line color.
style
ChartIndicatorDrawStylesThe line drawing style. The default is Line.
id
GuidUnique ID.
Returns
- IChartBandElement
Chart element representing a line.
CreateCurve(string, Color, Color, ChartIndicatorDrawStyles, Guid)
To create new curve to draw the yield.
public IChartBandElement CreateCurve(string title, Color color, Color secondColor, ChartIndicatorDrawStyles style, Guid id = default)
Parameters
title
stringThe line title.
color
ColorThe line color.
secondColor
ColorThe additional line color. It is used to draw Area.
style
ChartIndicatorDrawStylesThe line drawing style. The default is Line.
id
GuidUnique ID.
Returns
- IChartBandElement
Chart element representing a line.
CreateData()
Create IChartDrawData instance.
public IChartDrawData CreateData()
Returns
- IChartDrawData
IChartDrawData instance.
Draw(IChartDrawData)
To process the new data.
public void Draw(IChartDrawData data)
Parameters
data
IChartDrawDataNew data.
InitializeComponent()
InitializeComponent
public void InitializeComponent()
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
RemoveCurve(IChartBandElement)
To remove the yield curve from the chart.
public void RemoveCurve(IChartBandElement elem)
Parameters
elem
IChartBandElementThe chart element obtained from the method CreateCurve(string, Color, ChartIndicatorDrawStyles, Guid).
Reset()
To reset all chart elements.
public void Reset()
Reset(IEnumerable<IChartBandElement>)
To reset specified chart elements.
public void Reset(IEnumerable<IChartBandElement> elements)
Parameters
elements
IEnumerable<IChartBandElement>Elements to reset.
Reset(IEnumerable<ICollection<LineData<DateTime>>>)
To reset specified chart elements.
public void Reset(IEnumerable<ICollection<LineData<DateTime>>> items)
Parameters
items
IEnumerable<ICollection<LineData<DateTime>>>Elements to reset.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.