OptionVolatilitySmileChart

StockSharp.Xaml.Charting

Options volatility smile chart.

Inherits: UserControl

Implements: IThemeableChart, IPersistable, IComponentConnector

Constructors

OptionVolatilitySmileChart
public OptionVolatilitySmileChart()
optionVolatilitySmileChart = OptionVolatilitySmileChart()

Initializes a new instance of the OptionVolatilitySmileChart.

Properties

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

The name of the graphic theme.

Elements
public IEnumerable<KeyValuePair<ICollection<LineData<double>>, IChartVolatilitySmileElement>> Elements { get; }
value = optionVolatilitySmileChart.Elements

Elements.

SmileStep
public double SmileStep { get; set; }
value = optionVolatilitySmileChart.SmileStep
optionVolatilitySmileChart.SmileStep = value

Volatility smile draw step.

Methods

Clear
public void Clear()
optionVolatilitySmileChart.Clear()

To remove yield curves from the chart.

CreateSmile
public ICollection<LineData<double>> CreateSmile(string title, Color color, DrawStyles style, Guid id)
result = optionVolatilitySmileChart.CreateSmile(title, color, style, id)

To create new smile.

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

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

CreateSmile
public ICollection<LineData<double>> CreateSmile(string title, Color color, Color secondColor, DrawStyles style, Guid id)
result = optionVolatilitySmileChart.CreateSmile(title, color, secondColor, style, id)

To create new smile.

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: The collection of data that should be filled for the line drawing.

InitializeComponent
public void InitializeComponent()
optionVolatilitySmileChart.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
RemoveSmile
public void RemoveSmile(ICollection<LineData<double>> items)
optionVolatilitySmileChart.RemoveSmile(items)

To remove the yield curve from the chart.

items
The collection of data obtained from the method Guid).
Save
public void Save(SettingsStorage storage)
optionVolatilitySmileChart.Save(storage)

Save settings.

storage
Settings storage.

Fields

SmileStepProperty
public static readonly DependencyProperty SmileStepProperty
value = OptionVolatilitySmileChart.SmileStepProperty

Step size for volatility smile calculation.