mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 03:33:50 +00:00
Reorder results
This commit is contained in:
parent
c3344363dd
commit
a1eac7a14c
|
@ -70,18 +70,6 @@ export default class BacktestResultView extends Vue {
|
||||||
)} ${this.backtestResult.stake_currency}`,
|
)} ${this.backtestResult.stake_currency}`,
|
||||||
},
|
},
|
||||||
{ metric: 'Trades per day', value: this.backtestResult.trades_per_day },
|
{ 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: 'Best day', value: formatPercent(this.backtestResult.backtest_best_day, 2) },
|
||||||
{ metric: 'Worst day', value: formatPercent(this.backtestResult.backtest_worst_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 start', value: this.backtestResult.drawdown_start },
|
||||||
{ metric: 'Drawdown end', value: this.backtestResult.drawdown_end },
|
{ metric: 'Drawdown end', value: this.backtestResult.drawdown_end },
|
||||||
{ metric: 'Market change', value: formatPercent(this.backtestResult.market_change) },
|
{ 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,
|
||||||
|
)}`,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,7 @@ export default class Backtesting extends Vue {
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasBacktestResult() {
|
get hasBacktestResult() {
|
||||||
return Object.keys(this.backtestResult).length !== 0;
|
return this.backtestResult ? Object.keys(this.backtestResult).length !== 0 : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get selectedBacktestResult(): StrategyBacktestResult {
|
// get selectedBacktestResult(): StrategyBacktestResult {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user