From bc8e04283347be68064757e4bb8c213b355b5113 Mon Sep 17 00:00:00 2001 From: Azulinho Date: Sat, 9 Sep 2023 10:21:09 +0100 Subject: [PATCH] better logging on prove-backtesting --- utils/prove-backtesting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/prove-backtesting.py b/utils/prove-backtesting.py index 5624767..8478aa3 100644 --- a/utils/prove-backtesting.py +++ b/utils/prove-backtesting.py @@ -333,6 +333,7 @@ def write_optimized_strategy_config( z: Dict[str, Any] = x | _tickers _tickers = z + log_msg(f" tickers: {_tickers}") tmpl: Template = Template( """{ @@ -721,7 +722,8 @@ def run_optimized_config(self) -> float: # generate start_dates log_msg( f"running from {pv.start_dates[0]} to {pv.start_dates[-1]} " - + f"backtesting previous {pv.roll_backwards} days every {pv.roll_forward} days" + + f"backtesting previous {pv.roll_backwards} days " + + f"every {pv.roll_forward} days" ) final_investment: float = pv.initial_investment starting_investment: float = pv.initial_investment