Add export-filename support

This commit is contained in:
froggleston
2022-06-14 16:54:27 +01:00
parent be6e0813db
commit 6bb342f23a
4 changed files with 43 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ def _load_signal_candles(backtest_dir: Path):
Path(get_latest_backtest_filename(backtest_dir)).stem + "_signals.pkl"
)
else:
scpf = Path(Path(get_latest_backtest_filename(backtest_dir)).stem + "_signals.pkl")
scpf = Path(backtest_dir.parent / f"{backtest_dir.stem}_signals.pkl")
try:
scp = open(scpf, "rb")