Small formatting improvements

This commit is contained in:
Matthias 2020-11-28 17:52:29 +01:00
parent 5d3f59df90
commit e40d97e05e
2 changed files with 12 additions and 11 deletions

View File

@ -168,10 +168,10 @@ A backtesting result will look like that:
| Total Profit % | 152.41% | | Total Profit % | 152.41% |
| Trades per day | 3.575 | | Trades per day | 3.575 |
| | | | | |
| Best Pair | LSK/BTC - 26.26% | | Best Pair | LSK/BTC 26.26% |
| Worst Pair | ZEC/BTC - -10.18% | | Worst Pair | ZEC/BTC -10.18% |
| Best Trade | LSK/BTC - 4.25% | | Best Trade | LSK/BTC 4.25% |
| Worst Trade | ZEC/BTC - -10.25% | | Worst Trade | ZEC/BTC -10.25% |
| Best day | 25.27% | | Best day | 25.27% |
| Worst day | -30.67% | | Worst day | -30.67% |
| Avg. Duration Winners | 4:23:00 | | Avg. Duration Winners | 4:23:00 |
@ -244,10 +244,10 @@ It contains some useful key metrics about performance of your strategy on backte
| Total Profit % | 152.41% | | Total Profit % | 152.41% |
| Trades per day | 3.575 | | Trades per day | 3.575 |
| | | | | |
| Best Pair | LSK/BTC - 26.26% | | Best Pair | LSK/BTC 26.26% |
| Worst Pair | ZEC/BTC - -10.18% | | Worst Pair | ZEC/BTC -10.18% |
| Best Trade | LSK/BTC - 4.25% | | Best Trade | LSK/BTC 4.25% |
| Worst Trade | ZEC/BTC - -10.25% | | Worst Trade | ZEC/BTC -10.25% |
| Best day | 25.27% | | Best day | 25.27% |
| Worst day | -30.67% | | Worst day | -30.67% |
| Avg. Duration Winners | 4:23:00 | | Avg. Duration Winners | 4:23:00 |

View File

@ -411,12 +411,13 @@ def text_table_add_metrics(strat_results: Dict) -> str:
('Total Profit %', f"{round(strat_results['profit_total'] * 100, 2)}%"), ('Total Profit %', f"{round(strat_results['profit_total'] * 100, 2)}%"),
('Trades per day', strat_results['trades_per_day']), ('Trades per day', strat_results['trades_per_day']),
('', ''), # Empty line to improve readability ('', ''), # Empty line to improve readability
('Best Pair', f"{strat_results['best_pair']['key']} - " ('Best Pair', f"{strat_results['best_pair']['key']} "
f"{round(strat_results['best_pair']['profit_sum_pct'], 2)}%"), f"{round(strat_results['best_pair']['profit_sum_pct'], 2)}%"),
('Worst Pair', f"{strat_results['worst_pair']['key']} - " ('Worst Pair', f"{strat_results['worst_pair']['key']} "
f"{round(strat_results['worst_pair']['profit_sum_pct'], 2)}%"), f"{round(strat_results['worst_pair']['profit_sum_pct'], 2)}%"),
('Best trade', f"{best_trade['pair']} {round(best_trade['profit_percent'] * 100, 2)}%"), ('Best trade', f"{best_trade['pair']} {round(best_trade['profit_percent'] * 100, 2)}%"),
('Worst trade', f"{worst_trade['pair']} {round(worst_trade['profit_percent'] * 100, 2)}%"), ('Worst trade', f"{worst_trade['pair']} "
f"{round(worst_trade['profit_percent'] * 100, 2)}%"),
('Best day', f"{round(strat_results['backtest_best_day'] * 100, 2)}%"), ('Best day', f"{round(strat_results['backtest_best_day'] * 100, 2)}%"),
('Worst day', f"{round(strat_results['backtest_worst_day'] * 100, 2)}%"), ('Worst day', f"{round(strat_results['backtest_worst_day'] * 100, 2)}%"),