Variables
-
DATE_FORMAT: Default date format used in the systematica package. -
SIGNAL_PARAMS: Signal parameters used in the systematica package. These parameters are used to define the trading signals and their behavior. -
DATA_SELECTION_PARAMS: Data selection parameters used in the systematica package. These parameters are used to select the data for the trading signals. -
LOADER_PARAMS: Loader parameters used in the systematica package. These parameters are used to load the data for the trading signals. -
VBT_PORT_KWARGS: VectorBT portfolio keyword arguments used in the systematica package. These parameters are used to define the portfolio simulation and its behavior. -
NON_TUNABLE_VBT_PORT_KWARGS: Non-tunable VectorBT portfolio keyword arguments used in the systematica package. These parameters are not tunable and are used to define the portfolio simulation and its behavior. -
TUNABLE_VBT_PORT_KWARGS: Tunable VectorBT portfolio keyword arguments used in the systematica package. These parameters are tunable and are used to define the portfolio simulation and its behavior. -
ALL_PARAMS: All parameters used in the systematica package. These parameters are used to define the trading signals, data selection, and portfolio simulation. -
REGISTRED_SIGNAL_MODELS: Registered signal models used in the systematica package. These models are used to compute trading signals based on different strategies such as crossover, spread, and mixed strategies. -
DEFAULT_PORTFOLIO_PARAMS: Default VectorBT portfolio parameters used in the systematica package. These parameters are used to define the portfolio simulation and its behavior. The default values are set to None or specific values as per the requirements of the systematica package. -
SPLITTER_KWARGS_MAP: Dict[str, Callable[..., Dict[str, Any]]]: Mapping of splitters to their respective functions and required parameters. Each key corresponds to a splitter type, and the value is a function that generates the required keyword arguments for that splitter type. -
SPLITTER_REQUIRED_PARAMS: Dict[str, set]: Required parameters for each splitter type. Each key corresponds to a splitter type, and the value is a set of required parameters for that splitter. -
DEFAULT_NEPTUNE_INIT_RUN: Default Neptune predefinedinit_runfields and metadata. Please find more information about theinit_runmethod in the Neptune Documentation. -
DEFAULT_NEPTUNE_LOG_KWARGS: Default Neptune predefinedlog_kwargsfields and metadata. -
DEFAULT_NEPTUNE_LOG_LIVE_STREAM_KWARGS: Default Neptune predefinedlog_kwargsfields and metadata inlive_streammodel.
set_bfc_theme
- Initialize the theme once for all figures.
- Apply the theme to specific figures.
- Use the theme with
vectorbtpro.
default_splitter_kwargs
Raises:
Returns:
default_create_study_kwargs
optuna.create_study.
Parameters:
Returns:
default_optimize_kwargs
study.optimize.
Parameters:
Returns:
NeptuneSelector
Instance variables
-
model: str: The model name, which is the run ID of the Neptune run. -
column_stack: bool: Computevbt.PF.column_stackto combine portfolio when several trial numbers are passed. Default toFalse. -
group_by: bool: Group strategy whencolumn_stackisTrue. IfFalse, compute individual backtests. Combined all strategy into a single run otherwise. Defaults toTrue. -
run_id: str: The ID of the Neptune run to fetch. -
trial_selector: str | int | BaseTrialSelector: Custom parameter selection. IfNone, retrievebest/paramsfrom neptune. ifint, retrieve trial number. IfBaseTrialSelector, retrieve params based on algorithm. Defaults toNone.
FeatureConfig
Instance variables
-
model_name: str: Model name. -
frequency: str: Frequency. -
symbols: Dict[str, Any]: Function parameters. -
loader_name: str: Loader name. -
data_selection_params: Dict[str, Any]: Function parameters. -
signal_params: Dict[str, Any]: Signal parameters. -
tunable_params: Dict[str, Any]: Tunable parameters. -
accumulate: bool | str | numpy.ndarray: Whether to accumulate orders. Defaults toNone. -
allow_partial: float | numpy.ndarray: Whether to allow partial fills. Defaults toNone. -
call_seq: str | bool: Call sequence. Defaults toauto. -
cash_sharing: bool: Whether to share cash between assets. Defaults toTrue. -
constant_params: Dict[str, Any]: -
data: vectorbtpro.data.base.Data: -
distributed_params: Dict[str, Any]: -
end: str: The end date for the data in string format (e.g.,YYYY-MM UTC). If None, usedatetie.utcnow()to fetch the latest data possible. Default toNone. -
fees: float | numpy.ndarray: Fees per order. Defaults toNone. -
fill_pos_info: bool: Whether to fill position info. Defaults toFalse. -
fixed_fees: float | numpy.ndarray: Fixed fees per order. Defaults toNone. -
freq: str: Frequency of the data. Used whencross_validateis True. Defaults toNone. -
group_by: bool: Whether to group by symbol. Defaults toTrue. -
id: str: Custom searchable id. -
init_cash: float | numpy.ndarray: Initial cash. Defaults toNone. -
loader_or_data: Callable: Default loader or data. If loader, it must accept timeframe as retriever. More information indata/loader. Defaults toload_clean_data. -
loader_params: Dict[str, Any]: -
log: bool | numpy.ndarray: Whether to log orders. Defaults toNone. -
long_entries: float: Long entry signals. -
long_exits: float: Long exit signals. -
max_size: float | numpy.ndarray: Maximum size of each order. Defaults toNone. -
metadata: Dict[str, Any]: -
min_size: float | numpy.ndarray: Minimum size of each order. Defaults toNone. -
model: Any: Compute model, which defines the method to compute the feature. -
model_params: Dict[str, Any]: A dictionary of optional keyword arguments needed to compute the model. -
non_tunable_portfolio_params: Dict[str, Any]: -
portfolio_kwargs: Dict[str, Any]: Additional keyword arguments for the portfolio simulation. -
s1: str: First symbol. -
s2: str: Second symbol. -
select_symbols: str | int | List[str | int]: Symbol name (e.g.,BTCUSDTorETHUSDT) or column index (e.g.,0or1) to keep. If None, no filtering. -
short_entries: float: Short entry signals. -
short_exits: float: Short exit signals. -
signal_model: str: Signal model used for generating signals. -
size: float | numpy.ndarray: Size of each order. Defaults to50. -
size_granularity: float | numpy.ndarray: Granularity of size. Defaults toNone. -
size_type: str | numpy.ndarray: Type of size (default is “valuepercent100”). -
sl_stop: float | numpy.ndarray: Stop-loss level. Defaults toNone. -
slippage: float | numpy.ndarray: Slippage per order. Defaults toNone. -
start: str: The start date for the data in string format (e.g.,YYYY-MM UTC). -
study_name: str: The name of the (optuna and tracker) study. -
suffix: str: Extension (suffix) of the file to load. Defaults toh5. -
timeframe: str: Timeframe of the file to be loaded. -
tp_stop: float | numpy.ndarray: Take-profit level. Defaults toNone. -
tsl_stop: float | numpy.ndarray: Trailing stop-loss level. Defaults toNone. -
tunable_portfolio_params: Dict[str, Any]: -
use_close: bool: Use close price if set to True. Otherwise, use open price.

