mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-19 06:11:15 +00:00
fix(api): only write export when backtest happened
closes freqtrade/frequi#2282
This commit is contained in:
@@ -100,7 +100,9 @@ def __run_backtest_bg(btconfig: Config):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if btconfig.get("export", "none") == "trades":
|
if btconfig.get("export", "none") == "trades":
|
||||||
combined_res = combined_dataframes_with_rel_mean(ApiBG.bt["data"], min_date, max_date)
|
combined_res = combined_dataframes_with_rel_mean(
|
||||||
|
ApiBG.bt["data"], min_date, max_date
|
||||||
|
)
|
||||||
fn = store_backtest_results(
|
fn = store_backtest_results(
|
||||||
btconfig,
|
btconfig,
|
||||||
ApiBG.bt["bt"].results,
|
ApiBG.bt["bt"].results,
|
||||||
|
|||||||
Reference in New Issue
Block a user