Skip to content

Commit

Permalink
remove stat_arb strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
javifalces committed Feb 13, 2024
1 parent 4c82742 commit 28fdcd3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions python/backtest/backtest_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,18 +326,18 @@ def run(self) -> dict:
algo_name = input_configuration.algorithm_configuration.algorithm_name
output[backtest_launcher.id] = None
instrument_pk = input_configuration.backtest_configuration.instrument_pk
if algo_name.startswith(AlgorithmEnum.stat_arb):
df, path = self._get_start_arb_trades_df(
backtest_launcher, algo_name, path
)
# if algo_name.startswith(AlgorithmEnum.stat_arb):
# df, path = self._get_start_arb_trades_df(
# backtest_launcher, algo_name, path
# )
# else:
csv_filename = 'trades_table_%s_%s.csv' % (algo_name, instrument_pk)
path = backtest_launcher.output_path + os.sep + csv_filename
if not os.path.exists(path):
print('%s output file %s not exist' % (backtest_launcher.id, path))
continue
else:
csv_filename = 'trades_table_%s_%s.csv' % (algo_name, instrument_pk)
path = backtest_launcher.output_path + os.sep + csv_filename
if not os.path.exists(path):
print('%s output file %s not exist' % (backtest_launcher.id, path))
continue
else:
df = pd.read_csv(path)
df = pd.read_csv(path)

if df['date'].iloc[0].startswith("1970"):
df = df.iloc[1:]
Expand Down

0 comments on commit 28fdcd3

Please sign in to comment.