Lean
$LEAN_TAG$
|
Represents a base model that computes the volatility of a security More...
Public Member Functions | |
virtual void | SetSubscriptionDataConfigProvider (ISubscriptionDataConfigProvider subscriptionDataConfigProvider) |
Sets the ISubscriptionDataConfigProvider instance to use. More... | |
virtual void | Update (Security security, BaseData data) |
Updates this model using the new price information in the specified security instance More... | |
virtual IEnumerable< HistoryRequest > | GetHistoryRequirements (Security security, DateTime utcTime) |
Returns history requirements for the volatility model expressed in the form of history request 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 | |
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... | |
Represents a base model that computes the volatility of a security
Definition at line 29 of file BaseVolatilityModel.cs.
|
virtual |
Sets the ISubscriptionDataConfigProvider instance to use.
subscriptionDataConfigProvider | Provides access to registered SubscriptionDataConfig |
Reimplemented in QuantConnect.Python.VolatilityModelPythonWrapper.
Definition at line 45 of file BaseVolatilityModel.cs.
|
virtual |
Updates this model using the new price information in the specified security instance
security | The security to calculate volatility for |
data | The new data used to update the model |
Implements QuantConnect.Securities.IVolatilityModel.
Reimplemented in QuantConnect.Securities.StandardDeviationOfReturnsVolatilityModel, QuantConnect.Securities.RelativeStandardDeviationVolatilityModel, QuantConnect.Securities.IndicatorVolatilityModel, and QuantConnect.Python.VolatilityModelPythonWrapper.
Definition at line 57 of file BaseVolatilityModel.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 |
Implements QuantConnect.Securities.IVolatilityModel.
Reimplemented in QuantConnect.Securities.StandardDeviationOfReturnsVolatilityModel, QuantConnect.Securities.RelativeStandardDeviationVolatilityModel, and QuantConnect.Python.VolatilityModelPythonWrapper.
Definition at line 67 of file BaseVolatilityModel.cs.
IEnumerable<HistoryRequest> QuantConnect.Securities.Volatility.BaseVolatilityModel.GetHistoryRequirements | ( | Security | security, |
DateTime | utcTime, | ||
Resolution? | resolution, | ||
int | barCount | ||
) |
Gets history requests required for warming up the greeks with the provided resolution
security | Security to get history for |
utcTime | UTC time of the request (end time) |
resolution | Resolution of the security |
barCount | Number of bars to lookback for the start date |
InvalidOperationException | The SubscriptionDataConfigProvider has not been set |
Definition at line 81 of file BaseVolatilityModel.cs.
|
getsetprotected |
Provides access to registered SubscriptionDataConfig
Definition at line 34 of file BaseVolatilityModel.cs.
|
get |
Gets the volatility of the security as a percentage
Definition at line 39 of file BaseVolatilityModel.cs.