ChartVolatilitySmileElement
StockSharp.Xaml.Charting
The chart element representing a volatility smile.
Inherits: ChartElement<ChartVolatilitySmileElement>
Implements: IChartVolatilitySmileElement, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable
Constructors
ChartVolatilitySmileElement
public ChartVolatilitySmileElement()
chartVolatilitySmileElement = ChartVolatilitySmileElement()
Create instance.
Properties
Smile
public IChartLineElement Smile { get; }
value = chartVolatilitySmileElement.Smile
Line that displays approximated volatility smile.
Values
public IChartLineElement Values { get; }
value = chartVolatilitySmileElement.Values
Points that displays source volatility values.
Methods
CheckAxesCompatible
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartVolatilitySmileElement.CheckAxesCompatible(xType, yType)
Check if the element can be drawn using supplied axis types.
- xType
- X axis type.
- yType
- Y axis type.
Returns: if supplied types are supported.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartVolatilitySmileElement.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartVolatilitySmileElement.OnDraw(data)
Draw on root element.
- data
- Chart drawing data.
Returns: if the data was successfully drawn, otherwise, returns .
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartVolatilitySmileElement.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task