Skip to content

Commit

Permalink
Improve backtest layout
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Jul 6, 2021
1 parent 6f98ea1 commit 98aa287
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
20 changes: 6 additions & 14 deletions src/components/ftbot/BacktestResultView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,18 @@ export default class BacktestResultView extends Vue {
get backtestResultStats() {
// Transpose Result into readable format
return [
{
metric: 'Total trades / Daily Avg Trades',
value: `${this.backtestResult.total_trades} / ${this.backtestResult.trades_per_day}`,
},
// { metric: 'First trade', value: this.backtestResult.backtest_fi },
// { metric: 'First trade Pair', value: this.backtestResult.backtest_best_day },
{
metric: 'Total Profit',
value: `${formatPercent(this.backtestResult.profit_total)} | ${this.formatPriceStake(
this.backtestResult.profit_total_abs,
)}`,
},
{
metric: 'Total trades / Daily Avg Trades',
value: `${this.backtestResult.total_trades} / ${this.backtestResult.trades_per_day}`,
},
// { metric: 'First trade', value: this.backtestResult.backtest_fi },
// { metric: 'First trade Pair', value: this.backtestResult.backtest_best_day },
{
metric: 'Best day',
value: `${formatPercent(
Expand Down Expand Up @@ -152,13 +151,6 @@ export default class BacktestResultView extends Vue {
metric: 'Avg. Duration Losers',
value: humanizeDurationFromSeconds(this.backtestResult.loser_holding_avg),
},
{
metric: 'Zero duration trades',
value: `${formatPercent(
(1 / this.backtestResult.total_trades) * this.backtestResult.zero_duration_trades,
2,
)} (${this.backtestResult.zero_duration_trades})`,
},
{ metric: 'Rejected buy signals', value: this.backtestResult.rejected_signals },
{ metric: '___', value: '___' },
Expand Down
1 change: 0 additions & 1 deletion src/types/backtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export interface StrategyBacktestResult {
use_sell_signal: boolean;
sell_profit_only: boolean;
sell_profit_offset: number;
zero_duration_trades: number;
rejected_signals: number;

// Daily stats ...
Expand Down

0 comments on commit 98aa287

Please sign in to comment.