Reorder results

This commit is contained in:
Matthias 2021-01-16 11:05:44 +01:00
parent c3344363dd
commit a1eac7a14c
2 changed files with 14 additions and 13 deletions

View File

@ -70,18 +70,6 @@ export default class BacktestResultView extends Vue {
)} ${this.backtestResult.stake_currency}`,
},
{ metric: 'Trades per day', value: this.backtestResult.trades_per_day },
{
metric: 'Best Pair',
value: `${this.backtestResult.best_pair.key} ${formatPercent(
this.backtestResult.best_pair.profit_sum,
)}`,
},
{
metric: 'Worst Pair',
value: `${this.backtestResult.worst_pair.key} ${formatPercent(
this.backtestResult.worst_pair.profit_sum,
)}`,
},
{ metric: 'Best day', value: formatPercent(this.backtestResult.backtest_best_day, 2) },
{ metric: 'Worst day', value: formatPercent(this.backtestResult.backtest_worst_day, 2) },
@ -102,6 +90,19 @@ export default class BacktestResultView extends Vue {
{ metric: 'Drawdown start', value: this.backtestResult.drawdown_start },
{ metric: 'Drawdown end', value: this.backtestResult.drawdown_end },
{ metric: 'Market change', value: formatPercent(this.backtestResult.market_change) },
{
metric: 'Best Pair',
value: `${this.backtestResult.best_pair.key} ${formatPercent(
this.backtestResult.best_pair.profit_sum,
)}`,
},
{
metric: 'Worst Pair',
value: `${this.backtestResult.worst_pair.key} ${formatPercent(
this.backtestResult.worst_pair.profit_sum,
)}`,
},
];
}

View File

@ -309,7 +309,7 @@ export default class Backtesting extends Vue {
}
get hasBacktestResult() {
return Object.keys(this.backtestResult).length !== 0;
return this.backtestResult ? Object.keys(this.backtestResult).length !== 0 : false;
}
// get selectedBacktestResult(): StrategyBacktestResult {