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
- 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
ChartTheme
The name of the graphic theme.
public string ChartTheme { get; set; }Property Value
Model
Portfolio model for calculating the values of Greeks by the Black-Scholes formula.
public BasketBlackScholes Model { get; set; }Property Value
ShowExpiration
To show the position chart at the time of expiration. The default is enabled.
public bool ShowExpiration { get; set; }Property Value
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
UseBlackModel
Whether to use the model Black. By default, the model is not used.
public bool UseBlackModel { get; set; }Property Value
Methods
InitializeComponent()
InitializeComponent
public void InitializeComponent()Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)Parameters
- storageSettingsStorage
- Settings storage. 
Refresh(decimal?, DateTimeOffset?, DateTimeOffset?)
To redraw the chart.
public void Refresh(decimal? assetPrice = null, DateTimeOffset? currentTime = null, DateTimeOffset? expiryDate = null)Parameters
- assetPricedecimal?
- The current price of the underlying asset. 
- currentTimeDateTimeOffset?
- The current time. 
- expiryDateDateTimeOffset?
- The expiration date. 
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)Parameters
- storageSettingsStorage
- Settings storage.