Lean
$LEAN_TAG$
|
Pricing model used to determine the fair price or theoretical value for a call or a put option price by default using the Black-Scholes-Merton model More...
Public Member Functions | |
OptionPriceModelPriceGenerator (Security security) | |
Creates instance of OptionPriceModelPriceGenerator More... | |
decimal | NextValue (decimal maximumPercentDeviation, DateTime referenceDate) |
For Black-Scholes-Merton model price calculation relies IOptionPriceModel of the security More... | |
Public Attributes | |
bool | WarmedUp => _option.PriceModel is QLOptionPriceModel optionPriceModel && optionPriceModel.VolatilityEstimatorWarmedUp || _option.PriceModel is not QLOptionPriceModel |
RandomPriceGenerator is always ready to generate new price values as it does not depend on volatility model More... | |
Additional Inherited Members | |
Properties inherited from QuantConnect.ToolBox.RandomDataGenerator.IPriceGenerator | |
bool | WarmedUp [get] |
Indicates Price generator warmed up and ready to generate new values More... | |
Pricing model used to determine the fair price or theoretical value for a call or a put option price by default using the Black-Scholes-Merton model
Definition at line 27 of file OptionPriceModelPriceGenerator.cs.
QuantConnect.ToolBox.RandomDataGenerator.OptionPriceModelPriceGenerator.OptionPriceModelPriceGenerator | ( | Security | security | ) |
Creates instance of OptionPriceModelPriceGenerator
param name="security">Security object for which to generate price data
Definition at line 40 of file OptionPriceModelPriceGenerator.cs.
decimal QuantConnect.ToolBox.RandomDataGenerator.OptionPriceModelPriceGenerator.NextValue | ( | decimal | maximumPercentDeviation, |
DateTime | referenceDate | ||
) |
For Black-Scholes-Merton model price calculation relies IOptionPriceModel of the security
maximumPercentDeviation | The maximum percent deviation. This value is in percent space, so a value of 1m is equal to 1%. |
referenceDate | current reference date |
Implements QuantConnect.ToolBox.RandomDataGenerator.IPriceGenerator.
Definition at line 62 of file OptionPriceModelPriceGenerator.cs.
bool QuantConnect.ToolBox.RandomDataGenerator.OptionPriceModelPriceGenerator.WarmedUp => _option.PriceModel is QLOptionPriceModel optionPriceModel && optionPriceModel.VolatilityEstimatorWarmedUp || _option.PriceModel is not QLOptionPriceModel |
RandomPriceGenerator is always ready to generate new price values as it does not depend on volatility model
Definition at line 34 of file OptionPriceModelPriceGenerator.cs.