Lean  $LEAN_TAG$
QuantConnect.Indicators.Rho Class Reference

Option Rho indicator that calculate the rho of an option More...

Inheritance diagram for QuantConnect.Indicators.Rho:
[legend]

Public Member Functions

 Rho (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (string name, Symbol option, PyObject riskFreeRateModel, PyObject dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (Symbol option, PyObject riskFreeRateModel, PyObject dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (string name, Symbol option, PyObject riskFreeRateModel, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (Symbol option, PyObject riskFreeRateModel, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (string name, Symbol option, decimal riskFreeRate=0.05m, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
 Rho (Symbol option, decimal riskFreeRate=0.05m, decimal dividendYield=0.0m, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the Rho class More...
 
- Public Member Functions inherited from QuantConnect.Indicators.OptionGreeksIndicatorBase
override void Reset ()
 Resets this indicator and all sub-indicators More...
 
- Public Member Functions inherited from QuantConnect.Indicators.OptionIndicatorBase
override void Reset ()
 Resets this indicator and all sub-indicators More...
 

Protected Member Functions

override decimal CalculateGreek (decimal timeTillExpiry)
 Calculate the Rho of the option More...
 
- Protected Member Functions inherited from QuantConnect.Indicators.OptionGreeksIndicatorBase
 OptionGreeksIndicatorBase (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 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=null, OptionPricingModelType? ivModel=null)
 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=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the OptionGreeksIndicatorBase class More...
 
 OptionGreeksIndicatorBase (string name, Symbol option, PyObject riskFreeRateModel, PyObject dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, OptionPricingModelType? ivModel=null)
 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=null, OptionPricingModelType? ivModel=null)
 Initializes a new instance of the OptionGreeksIndicatorBase class More...
 
override decimal Calculate (IndicatorDataPoint input)
 Computes the next value of the option greek indicator More...
 
- Protected Member Functions inherited from QuantConnect.Indicators.OptionIndicatorBase
 OptionIndicatorBase (string name, Symbol option, IRiskFreeInterestRateModel riskFreeRateModel, IDividendYieldModel dividendYieldModel, Symbol mirrorOption=null, OptionPricingModelType? optionModel=null, int period=2)
 Initializes a new instance of the OptionIndicatorBase class More...
 
override decimal ComputeNextValue (IndicatorDataPoint input)
 Computes the next value of this indicator from the given state. This will round the result to 7 decimal places. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from QuantConnect.Indicators.OptionIndicatorBase
static OptionPricingModelType GetOptionModel (OptionPricingModelType? optionModel, OptionStyle optionStyle)
 Gets the option pricing model based on the option style, if not specified More...
 
- Public Attributes inherited from QuantConnect.Indicators.OptionGreeksIndicatorBase
override bool IsReady => ImpliedVolatility.IsReady
 Gets a flag indicating when this indicator is ready and fully initialized More...
 
- Public Attributes inherited from QuantConnect.Indicators.OptionIndicatorBase
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...
 
- Protected Attributes inherited from QuantConnect.Indicators.OptionIndicatorBase
Symbol _underlyingSymbol => OptionSymbol.Underlying
 Underlying security's symbol object More...
 
- Properties inherited from QuantConnect.Indicators.OptionGreeksIndicatorBase
decimal _greekValue [get, set]
 Cache of the current value of the greek More...
 
ImpliedVolatility ImpliedVolatility [get, set]
 Gets the implied volatility of the option More...
 
- Properties inherited from QuantConnect.Indicators.OptionIndicatorBase
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< IndicatorDataPointPrice [get]
 Gets the option price level More...
 
IndicatorBase< IndicatorDataPointOppositePrice [get]
 Gets the mirror option price level, for implied volatility More...
 
IndicatorBase< IndicatorDataPointUnderlyingPrice [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...
 
- Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider
int WarmUpPeriod [get]
 Required period, in data points, for the indicator to be ready and fully initialized. More...
 

Detailed Description

Option Rho indicator that calculate the rho of an option

sensitivity of option price on interest rate changes

Definition at line 27 of file Rho.cs.

Constructor & Destructor Documentation

◆ Rho() [1/10]

QuantConnect.Indicators.Rho.Rho ( string  name,
Symbol  option,
IRiskFreeInterestRateModel  riskFreeRateModel,
IDividendYieldModel  dividendYieldModel,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
nameThe name of this indicator
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldModelDividend yield model
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 39 of file Rho.cs.

◆ Rho() [2/10]

QuantConnect.Indicators.Rho.Rho ( Symbol  option,
IRiskFreeInterestRateModel  riskFreeRateModel,
IDividendYieldModel  dividendYieldModel,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldModelDividend yield model
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 54 of file Rho.cs.

◆ Rho() [3/10]

QuantConnect.Indicators.Rho.Rho ( string  name,
Symbol  option,
PyObject  riskFreeRateModel,
PyObject  dividendYieldModel,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
nameThe name of this indicator
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldModelDividend yield model
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 71 of file Rho.cs.

◆ Rho() [4/10]

QuantConnect.Indicators.Rho.Rho ( Symbol  option,
PyObject  riskFreeRateModel,
PyObject  dividendYieldModel,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldModelDividend yield model
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 86 of file Rho.cs.

◆ Rho() [5/10]

QuantConnect.Indicators.Rho.Rho ( string  name,
Symbol  option,
IRiskFreeInterestRateModel  riskFreeRateModel,
decimal  dividendYield = 0.0m,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
nameThe name of this indicator
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldDividend yield, as a constant
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 103 of file Rho.cs.

◆ Rho() [6/10]

QuantConnect.Indicators.Rho.Rho ( Symbol  option,
IRiskFreeInterestRateModel  riskFreeRateModel,
decimal  dividendYield = 0.0m,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldDividend yield, as a constant
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 118 of file Rho.cs.

◆ Rho() [7/10]

QuantConnect.Indicators.Rho.Rho ( string  name,
Symbol  option,
PyObject  riskFreeRateModel,
decimal  dividendYield = 0.0m,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
nameThe name of this indicator
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldDividend yield, as a constant
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 135 of file Rho.cs.

◆ Rho() [8/10]

QuantConnect.Indicators.Rho.Rho ( Symbol  option,
PyObject  riskFreeRateModel,
decimal  dividendYield = 0.0m,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
optionThe option to be tracked
riskFreeRateModelRisk-free rate model
dividendYieldDividend yield, as a constant
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 150 of file Rho.cs.

◆ Rho() [9/10]

QuantConnect.Indicators.Rho.Rho ( string  name,
Symbol  option,
decimal  riskFreeRate = 0.05m,
decimal  dividendYield = 0.0m,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
nameThe name of this indicator
optionThe option to be tracked

am>

Parameters
riskFreeRateRisk-free rate, as a constant
dividendYieldDividend yield, as a constant
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 167 of file Rho.cs.

◆ Rho() [10/10]

QuantConnect.Indicators.Rho.Rho ( Symbol  option,
decimal  riskFreeRate = 0.05m,
decimal  dividendYield = 0.0m,
Symbol  mirrorOption = null,
OptionPricingModelType optionModel = null,
OptionPricingModelType ivModel = null 
)

Initializes a new instance of the Rho class

Parameters
optionThe option to be tracked
riskFreeRateRisk-free rate, as a constant
dividendYieldDividend yield, as a constant
mirrorOptionThe mirror option for parity calculation
optionModelThe option pricing model used to estimate Rho
ivModelThe option pricing model used to estimate IV

Definition at line 182 of file Rho.cs.

Member Function Documentation

◆ CalculateGreek()

override decimal QuantConnect.Indicators.Rho.CalculateGreek ( decimal  timeTillExpiry)
protectedvirtual

Calculate the Rho of the option

Implements QuantConnect.Indicators.OptionGreeksIndicatorBase.

Definition at line 192 of file Rho.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file: