mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
test: small adjustment to test
(simplifying future usage)
This commit is contained in:
@@ -180,27 +180,19 @@ def test_loss_functions_better_profits(default_conf, hyperopt_results, lossfunct
|
||||
]
|
||||
pair_results_over = [
|
||||
{
|
||||
"key": "ETH/USDT",
|
||||
"max_drawdown_abs": 25.0,
|
||||
"profit_total_abs": 200.0,
|
||||
},
|
||||
{
|
||||
"key": "BTC/USDT",
|
||||
"max_drawdown_abs": 25.0,
|
||||
"profit_total_abs": 200.0,
|
||||
},
|
||||
**p,
|
||||
"max_drawdown_abs": p["max_drawdown_abs"] * 0.5,
|
||||
"profit_total_abs": p["profit_total_abs"] * 2,
|
||||
}
|
||||
for p in pair_results
|
||||
]
|
||||
pair_results_under = [
|
||||
{
|
||||
"key": "ETH/USDT",
|
||||
"max_drawdown_abs": 100.0,
|
||||
"profit_total_abs": 50.0,
|
||||
},
|
||||
{
|
||||
"key": "BTC/USDT",
|
||||
"max_drawdown_abs": 100.0,
|
||||
"profit_total_abs": 50.0,
|
||||
},
|
||||
**p,
|
||||
"max_drawdown_abs": p["max_drawdown_abs"] * 2,
|
||||
"profit_total_abs": p["profit_total_abs"] * 0.5,
|
||||
}
|
||||
for p in pair_results
|
||||
]
|
||||
|
||||
default_conf.update({"hyperopt_loss": lossfunction})
|
||||
|
||||
Reference in New Issue
Block a user