RollingSpreadModel
Ancestors
systematica.models.base.BaseStatArbabc.ABC
Static methods
get_feature_expression
| Type | Description |
|---|---|
StatArbExprModel | The expression model containing the PTS expression and included packages. |
Instance variables
-
lower: float: Lower threshold. Defaults to -0.2. -
minp: int: Mininim period. Defaults toNone, which means no minimum period is applied. -
upper: float: Upper threshold. Defaults to 0.2. -
window: int: The size of the rolling window. Defaults to365.
Methods
plot
| Name | Type | Default | Description |
|---|---|---|---|
data | vbt.Data | -- | Input data containing time series data. |
s1 | str | -- | Column name for the first symbol. |
s2 | str | -- | Column name for the second symbol. |
use_close | bool | True | Use close price if set to True. Otherwise, use open price. Defaults to True. |
clean | bool | True | Whether to clean the entry and exit signals. Defaults to True. |
| Type | Description |
|---|---|
vbt.Figure | Figure object with the plot. |
RollingZscoreModel
Ancestors
systematica.models.base.BaseStatArbabc.ABC
Static methods
get_feature_expression
| Type | Description |
|---|---|
StatArbExprModel | The expression model containing the PTS expression and included packages. |
Instance variables
-
lower_alpha: float: Lower tail probability used to compute percent point function (inverse ofcdf) at q of the given RV. Defaults to 0.05. -
minp: int: Mininim period. Defaults toNone, which means no minimum period is applied. -
upper_alpha: float: Upper tail probability used to compute percent point function (inverse ofcdf) at q of the given RV. Defaults to 0.05. -
use_returns: bool: Flag to explicitly use returns as input ifTrue. Otherwise, use log prices Defaults to `False. -
window: int: The size of the rolling window. Defaults to365.
Methods
plot
| Name | Type | Default | Description |
|---|---|---|---|
data | vbt.Data | -- | Input data containing time series data. |
s1 | str | -- | Column name for the first symbol. |
s2 | str | -- | Column name for the second symbol. |
use_close | bool | True | Use close price if set to True. Otherwise, use open price. Defaults to True. |
clean | bool | True | Whether to clean the entry and exit signals. Defaults to True. |
| Type | Description |
|---|---|
vbt.Figure | Figure object with the plot. |

