To provide a base class for option greeks indicator
More...
|
override void | Reset () |
| Resets this indicator and all sub-indicators More...
|
|
override void | Reset () |
| Resets this indicator and all sub-indicators More...
|
|
|
override bool | IsReady => ImpliedVolatility.IsReady |
| Gets a flag indicating when this indicator is ready and fully initialized More...
|
|
DateTime | Expiry => _optionSymbol.ID.Date |
| Gets the expiration time of the option More...
|
|
OptionRight | Right => _optionSymbol.ID.OptionRight |
| Gets the option right (call/put) of the option More...
|
|
decimal | Strike => _optionSymbol.ID.StrikePrice |
| Gets the strike price of the option More...
|
|
OptionStyle | Style => _optionSymbol.ID.OptionStyle |
| Gets the option style (European/American) of the option More...
|
|
bool | UseMirrorContract => _oppositeOptionSymbol != null |
| Flag if mirror option is implemented for parity type calculation More...
|
|
|
| OptionGreeksIndicatorBase (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType optionModel=OptionPricingModelType.BlackScholes, OptionPricingModelType? ivModel=null, int period=2) |
| Initializes a new instance of the OptionGreeksIndicatorBase class More...
|
|
| OptionGreeksIndicatorBase (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType optionModel=OptionPricingModelType.BlackScholes, OptionPricingModelType? ivModel=null, int period=2) |
| Initializes a new instance of the OptionGreeksIndicatorBase class More...
|
|
| OptionGreeksIndicatorBase (string name, Symbol option, decimal riskFreeRate=0.05m, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType optionModel=OptionPricingModelType.BlackScholes, OptionPricingModelType? ivModel=null, int period=2) |
| Initializes a new instance of the OptionGreeksIndicatorBase class More...
|
|
| OptionGreeksIndicatorBase (string name, Symbol option, PyObject riskFreeRateModel, PyObject dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType optionModel=OptionPricingModelType.BlackScholes, OptionPricingModelType? ivModel=null, int period=2) |
| Initializes a new instance of the OptionGreeksIndicatorBase class More...
|
|
| OptionGreeksIndicatorBase (string name, Symbol option, PyObject riskFreeRateModel, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType optionModel=OptionPricingModelType.BlackScholes, OptionPricingModelType? ivModel=null, int period=2) |
| Initializes a new instance of the OptionGreeksIndicatorBase class More...
|
|
override decimal | ComputeNextValue (IndicatorDataPoint input) |
| Computes the next value of the option greek indicator More...
|
|
virtual decimal | CalculateGreek (decimal timeTillExpiry) |
|
| OptionIndicatorBase (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType optionModel=OptionPricingModelType.BlackScholes, int period=2) |
| Initializes a new instance of the OptionIndicatorBase class More...
|
|
|
ImpliedVolatility | ImpliedVolatility [get, set] |
| Gets the implied volatility of the option More...
|
|
Symbol | _oppositeOptionSymbol [get] |
| Mirror option symbol (by option right), for implied volatility More...
|
|
Identity | RiskFreeRate [get, set] |
| Risk Free Rate More...
|
|
Identity | DividendYield [get, set] |
| Dividend Yield More...
|
|
IndicatorBase< IndicatorDataPoint > | Price [get] |
| Gets the option price level More...
|
|
IndicatorBase< IndicatorDataPoint > | OppositePrice [get] |
| Gets the mirror option price level, for implied volatility More...
|
|
IndicatorBase< IndicatorDataPoint > | UnderlyingPrice [get] |
| Gets the underlying's price level More...
|
|
int | WarmUpPeriod [get, set] |
| Required period, in data points, for the indicator to be ready and fully initialized. More...
|
|
int | WarmUpPeriod [get] |
| Required period, in data points, for the indicator to be ready and fully initialized. More...
|
|
To provide a base class for option greeks indicator
Definition at line 26 of file OptionGreekIndicatorBase.cs.
◆ OptionGreeksIndicatorBase() [1/5]
Initializes a new instance of the OptionGreeksIndicatorBase class
- Parameters
-
name | The name of this indicator |
option | The option to be tracked |
riskFreeRateModel | Risk-free rate model |
dividendYieldModel | Dividend yield model |
mirrorOption | The mirror option for parity calculation |
optionModel | The option pricing model used to estimate the Greek |
ivModel | The option pricing model used to estimate IV |
period | The lookback period of historical volatility |
Definition at line 49 of file OptionGreekIndicatorBase.cs.
◆ OptionGreeksIndicatorBase() [2/5]
Initializes a new instance of the OptionGreeksIndicatorBase class
- Parameters
-
name | The name of this indicator |
option | The option to be tracked |
riskFreeRateModel | Risk-free rate model |
dividendYield | Dividend yield, as a constant |
mirrorOption | The mirror option for parity calculation |
optionModel | The option pricing model used to estimate the Greek |
ivModel | The option pricing model used to estimate IV |
period | The lookback period of historical volatility |
Definition at line 69 of file OptionGreekIndicatorBase.cs.
◆ OptionGreeksIndicatorBase() [3/5]
Initializes a new instance of the OptionGreeksIndicatorBase class
- Parameters
-
name | The name of this indicator |
option | The option to be tracked |
riskFreeRate | Risk-free rate, as a constant |
dividendYield | Dividend yield, as a constant |
mirrorOption | The mirror option for parity calculation |
optionModel | The option pricing model used to estimate the Greek |
ivModel | The option pricing model used to estimate IV |
period | The lookback period of historical volatility |
Definition at line 86 of file OptionGreekIndicatorBase.cs.
◆ OptionGreeksIndicatorBase() [4/5]
Initializes a new instance of the OptionGreeksIndicatorBase class
- Parameters
-
name | The name of this indicator |
option | The option to be tracked |
riskFreeRateModel | Risk-free rate model |
dividendYieldModel | Dividend yield model |
mirrorOption | The mirror option for parity calculation |
optionModel | The option pricing model used to estimate the Greek |
ivModel | The option pricing model used to estimate IV |
period | The lookback period of historical volatility |
Definition at line 104 of file OptionGreekIndicatorBase.cs.
◆ OptionGreeksIndicatorBase() [5/5]
Initializes a new instance of the OptionGreeksIndicatorBase class
- Parameters
-
name | The name of this indicator |
option | The option to be tracked |
riskFreeRateModel | Risk-free rate model |
dividendYield | Dividend yield, as a constant |
mirrorOption | The mirror option for parity calculation |
optionModel | The option pricing model used to estimate the Greek |
ivModel | The option pricing model used to estimate IV |
period | The lookback period of historical volatility |
Definition at line 122 of file OptionGreekIndicatorBase.cs.
◆ ComputeNextValue()
override decimal QuantConnect.Indicators.OptionGreeksIndicatorBase.ComputeNextValue |
( |
IndicatorDataPoint |
input | ) |
|
|
protected |
Computes the next value of the option greek indicator
- Parameters
-
input | The input given to the indicator |
- Returns
- The input is returned unmodified.
Definition at line 139 of file OptionGreekIndicatorBase.cs.
◆ Reset()
override void QuantConnect.Indicators.OptionGreeksIndicatorBase.Reset |
( |
| ) |
|
◆ _greekValue
decimal QuantConnect.Indicators.OptionGreeksIndicatorBase._greekValue |
|
protected |
◆ IsReady
override bool QuantConnect.Indicators.OptionGreeksIndicatorBase.IsReady => ImpliedVolatility.IsReady |
◆ ImpliedVolatility
ImpliedVolatility QuantConnect.Indicators.OptionGreeksIndicatorBase.ImpliedVolatility |
|
getset |
The documentation for this class was generated from the following file: