EquityCurveChart

StockSharp.Xaml.Charting

The graphical component to display the equity curve.

Inherits: UserControl

Implements: IThemeableChart, IPersistable, IComponentConnector

Constructors

EquityCurveChart
public EquityCurveChart()
equityCurveChart = EquityCurveChart()

Initializes a new instance of the EquityCurveChart.

Properties

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

The name of the graphic theme.

Elements
public IEnumerable<IChartBandElement> Elements { get; }
value = equityCurveChart.Elements

Elements.

NoGapMode
public bool NoGapMode { get; set; }
value = equityCurveChart.NoGapMode
equityCurveChart.NoGapMode = value

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.

Methods

Clear
public void Clear()
equityCurveChart.Clear()

To remove yield curves from the chart.

CreateCurve
public IChartBandElement CreateCurve(string title, Color color, DrawStyles style, Guid id)
result = equityCurveChart.CreateCurve(title, color, style, id)

To create new curve to draw the yield.

title
The line title.
color
The line color.
style
The line drawing style. The default is Line.
id
Unique ID.

Returns: Chart element representing a line.

CreateCurve
public IChartBandElement CreateCurve(string title, Color color, Color secondColor, DrawStyles style, Guid id)
result = equityCurveChart.CreateCurve(title, color, secondColor, style, id)

To create new curve to draw the yield.

title
The line title.
color
The line color.
secondColor
The additional line color. It is used to draw Area.
style
The line drawing style. The default is Line.
id
Unique ID.

Returns: Chart element representing a line.

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

Create IChartDrawData instance.

Returns: IChartDrawData instance.

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

To process the new data.

data
New data.
InitializeComponent
public void InitializeComponent()
equityCurveChart.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
RemoveCurve
public void RemoveCurve(IChartBandElement elem)
equityCurveChart.RemoveCurve(elem)

To remove the yield curve from the chart.

elem
The chart element obtained from the method Guid).
Reset
public void Reset()
equityCurveChart.Reset()

To reset all chart elements.

Reset
public void Reset(IEnumerable<ICollection<LineData<DateTime>>> items)
equityCurveChart.Reset(items)

To reset specified chart elements.

items
Elements to reset.
Reset
public void Reset(IEnumerable<IChartBandElement> elements)
equityCurveChart.Reset(elements)

To reset specified chart elements.

elements
Elements to reset.
Save
public void Save(SettingsStorage storage)
equityCurveChart.Save(storage)

Save settings.

storage
Settings storage.