BasketBlackScholes

StockSharp.Algo.Derivatives

Portfoliomodell zur Berechnung der Werte der Griechen nach der Black-Scholes-Formel.

Erbt von: BlackScholes

Konstruktoren

BasketBlackScholes
public BasketBlackScholes(IMarketDataProvider dataProvider, IPositionProvider positionProvider, DateTime? expirationTime)
basketBlackScholes = BasketBlackScholes(dataProvider, positionProvider, expirationTime)

Initialisiert eine neue Instanz von BasketBlackScholes.

dataProvider
Der Marktdatenanbieter.
positionProvider
Der Positionsanbieter.
expirationTime
Wenn null, werden die Einstellungen der Modelle selbst verwendet.
BasketBlackScholes
public BasketBlackScholes(Security underlyingAsset, IMarketDataProvider dataProvider, IPositionProvider positionProvider, DateTime? expirationTime)
basketBlackScholes = BasketBlackScholes(underlyingAsset, dataProvider, positionProvider, expirationTime)

Initialisiert eine neue Instanz des BasketBlackScholes mit explizitem Basiswert.

underlyingAsset
Basiswert.
dataProvider
Der Marktdatenanbieter.
positionProvider
Der Positionsanbieter.
expirationTime
Explizite Optionen Ablaufmoment für den gesamten Korb.

Eigenschaften

ExpirationTime
public override DateTime? ExpirationTime { get; set; }
value = basketBlackScholes.ExpirationTime
basketBlackScholes.ExpirationTime = value

Explicit expiration moment. If null, ExpiryDate is used when available: with its time of day, or at the board's expiry time for a date alone.

InnerModels
public IInnerModelList InnerModels { get; }
value = basketBlackScholes.InnerModels

Informationen über Optionen.

Option
public override Security Option { get; }
value = basketBlackScholes.Option

Optionskontrakt.

PositionProvider
public IPositionProvider PositionProvider { get; set; }
value = basketBlackScholes.PositionProvider
basketBlackScholes.PositionProvider = value

Der Positionsanbieter.

RoundDecimals
public override int RoundDecimals { set; }
basketBlackScholes.RoundDecimals = value

Die Anzahl der Dezimalstellen bei berechneten Werten ist -1, was bedeutet, dass keine Werte gerundet werden.

UnderlyingAsset
public override Security UnderlyingAsset { get; }
value = basketBlackScholes.UnderlyingAsset

Basiswert.

Methoden

Delta
public override decimal? Delta(DateTime currentTime, decimal? deviation, decimal? assetPrice)
result = basketBlackScholes.Delta(currentTime, deviation, assetPrice)

Um die Option Delta zu berechnen.

currentTime
Die aktuelle Zeit.
deviation
Standardabweichung.
assetPrice
Basiswert des Vermögens.

Rückgabe: Wenn der Wert gleich , dann ist die Wertberechnung derzeit unmöglich.

Gamma
public override decimal? Gamma(DateTime currentTime, decimal? deviation, decimal? assetPrice)
result = basketBlackScholes.Gamma(currentTime, deviation, assetPrice)

Um die Option Gamma zu berechnen.

currentTime
Die aktuelle Zeit.
deviation
Standardabweichung.
assetPrice
Basiswert des Vermögens.

Rückgabe: Wenn der Wert gleich ist, ist die Berechnung des Wertes derzeit unmöglich.

GetExpirationTimeLine
public override double? GetExpirationTimeLine(DateTime currentTime)
result = basketBlackScholes.GetExpirationTimeLine(currentTime)

The time before expiration calculation.

currentTime
The current time.

Rückgabe: The time remaining until expiration. If the value is equal to , then the value calculation currently is impossible.

ImpliedVolatility
public override decimal? ImpliedVolatility(DateTime currentTime, decimal premium, decimal? assetPrice)
result = basketBlackScholes.ImpliedVolatility(currentTime, premium, assetPrice)

To calculate the implied volatility.

currentTime
The current time.
premium
The option premium.
assetPrice
Underlying asset price.

Rückgabe: The implied volatility. If the value is equal to , then the value calculation currently is impossible.

Premium
public override decimal? Premium(DateTime currentTime, decimal? deviation, decimal? assetPrice)
result = basketBlackScholes.Premium(currentTime, deviation, assetPrice)

Um die Optionsprämie zu berechnen.

currentTime
Die aktuelle Zeit.
deviation
Standardabweichung.
assetPrice
Basiswert des Vermögens.

Rückgabe: Wenn der Wert gleich , dann ist die Wertberechnung derzeit unmöglich.

ProcessOptions
private decimal? ProcessOptions(Func<BlackScholes, decimal?> func)
result = basketBlackScholes.ProcessOptions(func)

To sum a value over the options of the basket, each weighted by the position in it.

func
The value of one option.

Rückgabe: The sum; when an option the book holds cannot be valued, for the sum of the others is not the book's.

Rho
public override decimal? Rho(DateTime currentTime, decimal? deviation, decimal? assetPrice)
result = basketBlackScholes.Rho(currentTime, deviation, assetPrice)

Um die Option rho zu berechnen.

currentTime
Die aktuelle Zeit.
deviation
Standardabweichung.
assetPrice
Basiswert des Vermögens.

Rückgabe: Wenn der Wert gleich , ist die Berechnung des Wertes derzeit unmöglich.

Theta
public override decimal? Theta(DateTime currentTime, decimal? deviation, decimal? assetPrice)
result = basketBlackScholes.Theta(currentTime, deviation, assetPrice)

Um die Option Theta zu berechnen.

currentTime
Die aktuelle Zeit.
deviation
Standardabweichung.
assetPrice
Basiswert des Vermögens.

Rückgabe: Wenn der Wert gleich , dann ist die Wertberechnung derzeit unmöglich.

Vega
public override decimal? Vega(DateTime currentTime, decimal? deviation, decimal? assetPrice)
result = basketBlackScholes.Vega(currentTime, deviation, assetPrice)

Um die Option vega zu berechnen.

currentTime
Die aktuelle Zeit.
deviation
Standardabweichung.
assetPrice
Basiswert des Vermögens.

Rückgabe: Wenn der Wert gleich , ist die Berechnung des Wertes derzeit unmöglich.