Small style improvements, always show Graph link

This commit is contained in:
Matthias 2021-06-24 07:26:49 +02:00
parent 7b68d9ce7a
commit 1616c10602
3 changed files with 14 additions and 12 deletions

View File

@ -76,6 +76,14 @@
@click="savePlotConfig"
>Save</b-button
>
<b-button
class="ml-1"
variant="primary"
size="sm"
title="Load configuration from text box below"
@click="resetConfig"
>Reset</b-button
>
<b-button
id="showButton"
class="ml-1"
@ -85,15 +93,7 @@
@click="showConfig = !showConfig"
>Show</b-button
>
<b-button
v-if="showConfig"
class="ml-1"
variant="primary"
size="sm"
title="Load configuration from text box below"
@click="resetConfig"
>Reset</b-button
>
<b-button
v-if="showConfig"
class="ml-1"

View File

@ -154,7 +154,10 @@ export default class BacktestResultView extends Vue {
get backtestResultStats() {
// Transpose Result into readable format
return [
{ metric: 'Total trades', value: this.backtestResult.total_trades },
{
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 },
{
@ -163,7 +166,6 @@ export default class BacktestResultView extends Vue {
this.backtestResult.profit_total_abs,
)}`,
},
{ metric: 'Trades per day', value: this.backtestResult.trades_per_day },
{
metric: 'Best day',

View File

@ -12,7 +12,7 @@
<b-navbar-nav>
<b-nav-item v-if="!canRunBacktest" to="/trade">Trade</b-nav-item>
<b-nav-item v-if="!canRunBacktest" to="/dashboard">Dashboard</b-nav-item>
<b-nav-item v-if="canRunBacktest" to="/graph">Graph</b-nav-item>
<b-nav-item to="/graph">Graph</b-nav-item>
<b-nav-item v-if="canRunBacktest" to="/backtest">Backtest</b-nav-item>
<BootswatchThemeSelect />
</b-navbar-nav>