Add docstring to store_backtest_result

This commit is contained in:
Matthias 2020-03-15 15:38:26 +01:00
parent fe50a0f3a1
commit e1b08ad76c

View File

@ -12,7 +12,11 @@ logger = logging.getLogger(__name__)
def store_backtest_result(recordfilename: Path, all_results: Dict[str, DataFrame]) -> None:
"""
Stores backtest results to file (one file per strategy)
:param recordfilename: Destination filename
:param all_results: Dict of Dataframes, one results dataframe per strategy
"""
for strategy, results in all_results.items():
records = [(t.pair, t.profit_percent, t.open_time.timestamp(),
t.close_time.timestamp(), t.open_index - 1, t.trade_duration,