Lean
$LEAN_TAG$
|
Provides an implementation of IVolatilityModel that computes the relative standard deviation as the volatility of the security More...
Public Member Functions | |
RelativeStandardDeviationVolatilityModel (TimeSpan periodSpan, int periods) | |
Initializes a new instance of the RelativeStandardDeviationVolatilityModel class More... | |
override void | Update (Security security, BaseData data) |
Updates this model using the new price information in the specified security instance More... | |
override IEnumerable< HistoryRequest > | GetHistoryRequirements (Security security, DateTime utcTime) |
Returns history requirements for the volatility model expressed in the form of history request More... | |
Public Member Functions inherited from QuantConnect.Securities.Volatility.BaseVolatilityModel | |
virtual void | SetSubscriptionDataConfigProvider (ISubscriptionDataConfigProvider subscriptionDataConfigProvider) |
Sets the ISubscriptionDataConfigProvider instance to use. More... | |
IEnumerable< HistoryRequest > | GetHistoryRequirements (Security security, DateTime utcTime, Resolution? resolution, int barCount) |
Gets history requests required for warming up the greeks with the provided resolution More... | |
Properties | |
override decimal | Volatility [get] |
Gets the volatility of the security as a percentage More... | |
Properties inherited from QuantConnect.Securities.Volatility.BaseVolatilityModel | |
ISubscriptionDataConfigProvider | SubscriptionDataConfigProvider [get, set] |
Provides access to registered SubscriptionDataConfig More... | |
virtual decimal | Volatility [get] |
Gets the volatility of the security as a percentage More... | |
Properties inherited from QuantConnect.Securities.IVolatilityModel | |
decimal | Volatility [get] |
Gets the volatility of the security as a percentage More... | |
Provides an implementation of IVolatilityModel that computes the relative standard deviation as the volatility of the security
Definition at line 32 of file RelativeStandardDeviationVolatilityModel.cs.
QuantConnect.Securities.RelativeStandardDeviationVolatilityModel.RelativeStandardDeviationVolatilityModel | ( | TimeSpan | periodSpan, |
int | periods | ||
) |
Initializes a new instance of the RelativeStandardDeviationVolatilityModel class
periodSpan | The time span representing one 'period' length |
periods | The number of 'period' lengths to wait until updating the value |
Definition at line 76 of file RelativeStandardDeviationVolatilityModel.cs.
|
virtual |
Updates this model using the new price information in the specified security instance
security | The security to calculate volatility for |
data |
Reimplemented from QuantConnect.Securities.Volatility.BaseVolatilityModel.
Definition at line 92 of file RelativeStandardDeviationVolatilityModel.cs.
|
virtual |
Returns history requirements for the volatility model expressed in the form of history request
security | The security of the request |
utcTime | The date/time of the request |
Reimplemented from QuantConnect.Securities.Volatility.BaseVolatilityModel.
Definition at line 112 of file RelativeStandardDeviationVolatilityModel.cs.
|
get |
Gets the volatility of the security as a percentage
Definition at line 45 of file RelativeStandardDeviationVolatilityModel.cs.