MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / create_independent_backtesting

Function create_independent_backtesting

octobot/api/backtesting.py:21–56  ·  view source on GitHub ↗
(
    config,
    tentacles_setup_config,
    data_files,
    data_file_path=constants.BACKTESTING_FILE_PATH,
    join_backtesting_timeout=constants.BACKTESTING_DEFAULT_JOIN_TIMEOUT,
    run_on_common_part_only=True,
    start_timestamp=None,
    end_timestamp=None,
    enable_logs=True,
    stop_when_finished=False,
    name=None,
    enforce_total_databases_max_size_after_run=True,
    enable_storage=True,
    run_on_all_available_time_frames=False,
    backtesting_data=None,
    config_by_tentacle=None,
    services_config=None
)

Source from the content-addressed store, hash-verified

19
20
21def create_independent_backtesting(
22 config,
23 tentacles_setup_config,
24 data_files,
25 data_file_path=constants.BACKTESTING_FILE_PATH,
26 join_backtesting_timeout=constants.BACKTESTING_DEFAULT_JOIN_TIMEOUT,
27 run_on_common_part_only=True,
28 start_timestamp=None,
29 end_timestamp=None,
30 enable_logs=True,
31 stop_when_finished=False,
32 name=None,
33 enforce_total_databases_max_size_after_run=True,
34 enable_storage=True,
35 run_on_all_available_time_frames=False,
36 backtesting_data=None,
37 config_by_tentacle=None,
38 services_config=None
39) -> backtesting.independent_backtesting.IndependentBacktesting:
40 return backtesting.independent_backtesting.IndependentBacktesting(
41 config, tentacles_setup_config, data_files,
42 data_file_path,
43 run_on_common_part_only=run_on_common_part_only,
44 join_backtesting_timeout=join_backtesting_timeout,
45 start_timestamp=start_timestamp,
46 end_timestamp=end_timestamp,
47 enable_logs=enable_logs,
48 stop_when_finished=stop_when_finished,
49 name=name,
50 enforce_total_databases_max_size_after_run=enforce_total_databases_max_size_after_run,
51 enable_storage=enable_storage,
52 run_on_all_available_time_frames=run_on_all_available_time_frames,
53 backtesting_data=backtesting_data,
54 config_by_tentacle=config_by_tentacle,
55 services_config=services_config,
56 )
57
58
59async def initialize_and_run_independent_backtesting(independent_backtesting, log_errors=True) -> None:

Callers 2

_run_backtestingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected