Table of Contents

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

string

Elements

Elements.

public IEnumerable<IChartBandElement> Elements { get; }

Property Value

IEnumerable<IChartBandElement>

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

bool

Methods

Clear()

To remove yield curves from the chart.

public void Clear()

CreateCurve(string, Color, DrawStyles, Guid)

To create new curve to draw the yield.

public IChartBandElement CreateCurve(string title, Color color, DrawStyles style, Guid id = default)

Parameters

title string

The line title.

color Color

The line color.

style DrawStyles

The line drawing style. The default is Ecng.Drawing.DrawStyles.Line.

id Guid

Unique ID.

Returns

IChartBandElement

Chart element representing a line.

CreateCurve(string, Color, Color, DrawStyles, Guid)

To create new curve to draw the yield.

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

Parameters

title string

The line title.

color Color

The line color.

secondColor Color

The additional line color. It is used to draw Ecng.Drawing.DrawStyles.Area.

style DrawStyles

The line drawing style. The default is Ecng.Drawing.DrawStyles.Line.

id Guid

Unique 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 IChartDrawData

New data.

InitializeComponent()

InitializeComponent

public void InitializeComponent()

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

RemoveCurve(IChartBandElement)

To remove the yield curve from the chart.

public void RemoveCurve(IChartBandElement elem)

Parameters

elem IChartBandElement

The chart element obtained from the method CreateCurve(string, Color, DrawStyles, 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 SettingsStorage

Settings storage.