Composer
Ancestors
systematica.portfolio.base.BaseComposer
Methods
run
| Name | Type | Default | Description |
|---|---|---|---|
data | vbt.Data | -- | Input data for the pipeline. |
s1 | str | -- | First symbol. |
s2 | str | -- | Second symbol. |
use_close | bool | True | Whether to use ‘Close’ prices. Defaults to True. |
| Type | Description |
|---|---|
PortfolioAnalyzer | Portfolio analyzer object with the pipeline results. |
SignalComposer
Ancestors
systematica.portfolio.base.BaseComposer
Methods
run
| Name | Type | Default | Description |
|---|---|---|---|
data | vbt.Data | -- | Input data for the pipeline. |
s1 | str | -- | First symbol. |
s2 | str | -- | Second symbol. |
use_close | bool | True | Whether to use ‘Close’ prices (default is True). |
| Type | Description |
|---|---|
PortfolioAnalyzer | Portfolio analyzer object with combined strategy results. |
ColumnStackComposer
Ancestors
systematica.portfolio.base.BaseComposer
Methods
run
| Name | Type | Default | Description |
|---|---|---|---|
data | vbt.Data | -- | Input data for the pipeline. |
s1 | str | -- | First symbol. |
s2 | str | -- | Second symbol. |
group_by | bool | True | Whether to group the results, by default True. |
use_close | bool | True | Whether to use ‘Close’ prices (default is True). |
| Type | Description |
|---|---|
PortfolioAnalyzer | Portfolio analyzer object with column-stacked strategy results. |
PortfolioComposer
Class variables
-
feature_config: Dict[str, Any]: Configuration for a feature calculation. -
model_params: Dict[str, Any]: A dictionary of optional keyword arguments needed to compose the portfolio.
Instance variables
all_params: Dict[str, Any]: All parameters.
Methods
get_data
| Name | Type | Default | Description |
|---|---|---|---|
loader | vbt.Data | -- | | tp.Callable, default None Data loader function or object. If None, uses load_clean_data. |
loader_kwargs | tp.Kwargs | None | Additional keyword arguments for the loader function. If None, uses systematica.registries.base.LOADER_PARAMS. |
| Type | Description |
|---|---|
tp.Kwargs | Data params. |
get_compose_params
| Type | Description |
|---|---|
tp.Kwargs | Compose params. |
get_symbol_params
| Type | Description |
|---|---|
tp.Kwargs | Symbol params.. |
run
model_params.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
column_stack | bool | True | Whether to use column stacking for the results. |
group_by | bool | True | Whether to group the results by the trial keys. |
loader | vbt.Data | -- | | tp.Callable, default None Data loader function or object. If None, uses load_clean_data. |
loader_kwargs | tp.Kwargs | None | Additional keyword arguments for the loader function. If None, uses systematica.regiesties.base.LOADER_PARAMS. |
| Type | Description |
|---|---|
PortfolioAnalyzer | Portfolio analyzer object with column-stacked strategy results. |

