Volatility Model Components
Volatility API Classes
RollingVolatilityFactor
- Mutliple Dynamic Window: Model is determines through three different time horizons — short, medium and long-term horizons.
- Volatility Insigths: The standard deviations (volatilities) over the defined dynamic windows.
- Scoring Mechanism: Relative scores between periods, trend and direction are encapsulated.
- Signal Calculation: Aggregates signals and applies a hyperbolic tangent (tanh)
- Calculate Returns: compute log returns from closing prices.
- Compute Volatility on Different Time Horizons: Derive signals through weighted average standard deviation calculated on multiple periods
- Aggregate Signals: Combine the individual signals using their mean and compute the hyperbolic tangent element-wise.
- Handling Multiple Symbols: The process is repeated for each pair, offering a broader market view.
Ancestors
systematica.models.base.BaseStatArbabc.ABC
Instance variables
-
long_term_weight: float: Long term weight coeff. Defaults to0.2. -
medium_term_weight: float: Medium term weight coeff. Defaults to0.5. -
min_periods: int: Mininim period for calculating volatility. Defaults to10. -
minp: int: Mininim period. Defaults toNone, which means no minimum period is applied. -
signal_impact_multiplier: float: Signal impact multiplier. Defaults to5.0. -
trend_weight: float: Trend weights. Defaults to0.3. -
vol_window: int: Volatility window size. Defaults to30. -
window: int: The size of the rolling window. Defaults to365.
VolatilityFactorCV
- Mutliple Dynamic Window: Model is determines through three different time horizons — short, medium and long-term horizons.
- Volatility Insigths: The standard deviations (volatilities) over the defined dynamic windows.
- Scoring Mechanism: Relative scores between periods, trend and direction are encapsulated.
- Signal Calculation: Aggregates signals and applies a hyperbolic tangent (tanh)
- Calculate Returns: compute log returns from closing prices.
- Compute Volatility on Different Time Horizons: Derive signals through weighted average standard deviation calculated on multiple periods
- Aggregate Signals: Combine the individual signals using their mean and compute the hyperbolic tangent element-wise.
- Handling Multiple Symbols: The process is repeated for each pair, offering a broader market view.
Ancestors
systematica.models.base.BaseStatArbabc.ABC
Instance variables
-
custom_splitter: str | None: Custom splitter to use for data partitioning. Defaults toNone, which means no custom splitter is used. -
custom_splitter_kwargs: dict | None: Additional keyword arguments for the custom splitter. Defaults toNone, which means no additional arguments are passed. -
long_term_weight: float: Long term weight coefficient. Defaults to0.2. This is the weight applied to the long-term volatility in the final score calculation. -
medium_term_weight: float: Medium term weight coefficient. Defaults to0.5. This is the weight applied to the medium-term volatility in the final score calculation. -
min_periods: int: Mininim period for calculating volatility. Defaults to10. This is the minimum number of periods required to calculate volatility. -
signal_impact_multiplier: float: Signal impact multiplier. Defaults to5.0. This factor amplifies the impact of the signals in the final score calculation. -
splitter: str: Default splitter to be used if custom_splitter is not passed. Choices arefrom_rolling,from_custom_rolling,from_expanding,from_custom_expanding. Defaults tofrom_custom_rolling. -
testing_window: int: The size of the testing window. Defaults to60. -
training_window: int: The size of the training window. Defaults to365. -
trend_weight: float: Trend weights. Defaults to0.3. This is the weight applied to the trend in the final score calculation. -
vol_window: int: Volatility window size. Defaults to30. This is the window size used for calculating volatility.

