Table of Contents

Class OptionVolatilitySmileChart

Namespace
StockSharp.Xaml.Charting
Assembly
StockSharp.Xaml.Charting.dll

Options volatility smile chart.

public class OptionVolatilitySmileChart : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IThemeableChart, IPersistable, IComponentConnector
Inheritance
OptionVolatilitySmileChart
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

OptionVolatilitySmileChart()

Initializes a new instance of the OptionVolatilitySmileChart.

public OptionVolatilitySmileChart()

Fields

SmileStepProperty

Step size for volatility smile calculation.

public static readonly DependencyProperty SmileStepProperty

Field Value

DependencyProperty

Properties

ChartTheme

The name of the graphic theme.

public string ChartTheme { get; set; }

Property Value

string

Elements

Elements.

public IEnumerable<KeyValuePair<ICollection<LineData<double>>, IChartVolatilitySmileElement>> Elements { get; }

Property Value

IEnumerable<KeyValuePair<ICollection<LineData<double>>, IChartVolatilitySmileElement>>

SmileStep

Volatility smile draw step.

public double SmileStep { get; set; }

Property Value

double

Methods

Clear()

To remove yield curves from the chart.

public void Clear()

CreateSmile(string, Color, DrawStyles, Guid)

To create new smile.

public ICollection<LineData<double>> CreateSmile(string title, Color color, DrawStyles style = 0, 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

ICollection<LineData<double>>

The collection of data that should be filled for the line drawing.

CreateSmile(string, Color, Color, DrawStyles, Guid)

To create new smile.

public ICollection<LineData<double>> CreateSmile(string title, Color color, Color secondColor, DrawStyles style = 0, 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

ICollection<LineData<double>>

The collection of data that should be filled for the line drawing.

InitializeComponent()

InitializeComponent

public void InitializeComponent()

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

RemoveSmile(ICollection<LineData<double>>)

To remove the yield curve from the chart.

public void RemoveSmile(ICollection<LineData<double>> items)

Parameters

items ICollection<LineData<double>>

The collection of data obtained from the method CreateSmile(string, Color, DrawStyles, Guid).

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.