Merge pull request #7795 from froggleston/entry_exit_date_print

Add date selection arguments to backtest-analysis printout
This commit is contained in:
Matthias
2022-11-29 16:56:58 +01:00
committed by GitHub
7 changed files with 94 additions and 45 deletions

View File

@@ -189,3 +189,10 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
assert '0.5' in captured.out
assert '1' in captured.out
assert '2.5' in captured.out
# test date filtering
args = get_args(base_args + ['--timerange', "20180129-20180130"])
start_analysis_entries_exits(args)
captured = capsys.readouterr()
assert 'enter_tag_long_a' in captured.out
assert 'enter_tag_long_b' not in captured.out