Table of Contents

Class OptionPositionChart

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

The chart showing the position and options Greeks regarding to the underlying asset.

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

Constructors

OptionPositionChart()

Initializes a new instance of the OptionPositionChart.

public OptionPositionChart()

Properties

ChartParam

The parameter type in the chart. The default is Premium.

public BlackScholesGreeks ChartParam { get; set; }

Property Value

BlackScholesGreeks

ChartTheme

The name of the graphic theme.

public string ChartTheme { get; set; }

Property Value

string

Model

Portfolio model for calculating the values of Greeks by the Black-Scholes formula.

public BasketBlackScholes Model { get; set; }

Property Value

BasketBlackScholes

ShowExpiration

To show the position chart at the time of expiration. The default is enabled.

public bool ShowExpiration { get; set; }

Property Value

bool

ShowSeparated

To show position charts separately or as a single position. By default, it is displayed as a single position.

public bool ShowSeparated { get; set; }

Property Value

bool

UseBlackModel

Whether to use the model Black. By default, the model is not used.

public bool UseBlackModel { get; set; }

Property Value

bool

Methods

InitializeComponent()

InitializeComponent

public void InitializeComponent()

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Refresh(decimal?, DateTimeOffset?, DateTimeOffset?)

To redraw the chart.

public void Refresh(decimal? assetPrice = null, DateTimeOffset? currentTime = null, DateTimeOffset? expiryDate = null)

Parameters

assetPrice decimal?

The current price of the underlying asset.

currentTime DateTimeOffset?

The current time.

expiryDate DateTimeOffset?

The expiration date.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.