To provide a base class for option indicator
More...
|
| override void | Reset () |
| | Resets this indicator and all sub-indicators More...
|
| |
| override void | Reset () |
| | Resets this indicator to its initial state More...
|
| |
|
| | OptionIndicatorBase (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, int period=1) |
| | Initializes a new instance of the OptionIndicatorBase class More...
|
| |
| override decimal | ComputeNextValue (IBaseData input) |
| | Computes the next value of this indicator from the given state. This will round the result to 7 decimal places. More...
|
| |
| | MultiSymbolIndicator (string name, IEnumerable< Symbol > symbols, int period) |
| | Initializes the dual symbol indicator. More...
|
| |
| override decimal | ComputeNextValue (TInput input) |
| | Checks and computes the indicator if the input data matches. This method ensures the input data points are from matching time periods and different symbols. More...
|
| |
| abstract decimal | ComputeIndicator () |
| | Computes the next value of this indicator from the given state. This will be called only when the indicator is ready, that is, when data for all symbols at a given time is available. More...
|
| |
|
| Symbol | OptionSymbol [get] |
| | Option's symbol object More...
|
| |
| Symbol | _oppositeOptionSymbol [get] |
| | Mirror option symbol (by option right), for implied volatility More...
|
| |
| OptionPricingModelType | _optionModel [get, set] |
| | Option pricing model used to calculate indicator More...
|
| |
| IRiskFreeInterestRateModel | _riskFreeInterestRateModel [get] |
| | Risk-free rate model More...
|
| |
| IDividendYieldModel | _dividendYieldModel [get] |
| | Dividend yield model, for continuous dividend yield More...
|
| |
| DateTime | Expiry [get] |
| | Gets the expiration time of the option 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...
|
| |
| Dictionary< Symbol, SymbolData > | DataBySymbol [get] |
| | Relevant data for each symbol the indicator works on, including all inputs and actual data points used for calculation. More...
|
| |
| decimal | IndicatorValue [get, set] |
| | The most recently computed value of the indicator. More...
|
| |
| int | WarmUpPeriod [get, set] |
| | Required period, in data points, for the indicator to be ready and fully initialized. More...
|
| |
To provide a base class for option indicator
Definition at line 24 of file OptionIndicatorBase.cs.
◆ OptionIndicatorBase()
Initializes a new instance of the OptionIndicatorBase 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 |
| period | The lookback period of volatility |
| optionModel | The option pricing model used to estimate the Greek/IV |
Definition at line 128 of file OptionIndicatorBase.cs.
◆ ComputeNextValue()
| override decimal QuantConnect.Indicators.OptionIndicatorBase.ComputeNextValue |
( |
IBaseData |
input | ) |
|
|
protected |
Computes the next value of this indicator from the given state. This will round the result to 7 decimal places.
- Parameters
-
| input | The input given to the indicator |
- Returns
- A new value for this indicator
Definition at line 165 of file OptionIndicatorBase.cs.
◆ Reset()
| override void QuantConnect.Indicators.OptionIndicatorBase.Reset |
( |
| ) |
|
◆ GetOptionModel()
Gets the option pricing model based on the option style, if not specified
- Parameters
-
| optionModel | The optional option pricing model, which will be returned if not null |
| optionStyle | The option style |
- Returns
- The option pricing model based on the option style, if not specified
Definition at line 193 of file OptionIndicatorBase.cs.
◆ _underlyingSymbol
| Symbol QuantConnect.Indicators.OptionIndicatorBase._underlyingSymbol => OptionSymbol.Underlying |
|
protected |
◆ Right
| OptionRight QuantConnect.Indicators.OptionIndicatorBase.Right => OptionSymbol.ID.OptionRight |
◆ Strike
| decimal QuantConnect.Indicators.OptionIndicatorBase.Strike => OptionSymbol.ID.StrikePrice |
◆ Style
| OptionStyle QuantConnect.Indicators.OptionIndicatorBase.Style => OptionSymbol.ID.OptionStyle |
◆ UseMirrorContract
◆ OptionSymbol
| Symbol QuantConnect.Indicators.OptionIndicatorBase.OptionSymbol |
|
get |
◆ _oppositeOptionSymbol
| Symbol QuantConnect.Indicators.OptionIndicatorBase._oppositeOptionSymbol |
|
getprotected |
◆ _optionModel
◆ _riskFreeInterestRateModel
◆ _dividendYieldModel
◆ Expiry
| DateTime QuantConnect.Indicators.OptionIndicatorBase.Expiry |
|
get |
◆ RiskFreeRate
| Identity QuantConnect.Indicators.OptionIndicatorBase.RiskFreeRate |
|
getset |
◆ DividendYield
| Identity QuantConnect.Indicators.OptionIndicatorBase.DividendYield |
|
getset |
◆ Price
◆ OppositePrice
◆ UnderlyingPrice
The documentation for this class was generated from the following file: