Small improvements to backtest layout

This commit is contained in:
Matthias 2020-12-05 16:32:44 +01:00
parent b17382f04f
commit e288167570

View File

@ -1,10 +1,8 @@
<template>
<div class="container">
<div class="container-fluid">
<h2>Backtesting</h2>
<div class="container">
<div class="row mx-5 d-flex flex-wrap justify-space-between mb-4">
<b-form-radio v-model="btFormMode" name="bt-form-radios" button value="strategy"
>Select Strategy</b-form-radio
>
<b-form-radio
v-model="btFormMode"
name="bt-form-radios"
@ -38,11 +36,13 @@
>Visualize result</b-form-radio
>
</div>
<div v-if="btFormMode == 'strategy'" class="row">
<StrategyList v-model="strategy" show-details="true"></StrategyList>
</div>
<div v-if="btFormMode == 'strategy'" class="row"></div>
<div v-if="btFormMode == 'run'" class="row">
<StrategyList v-model="strategy"></StrategyList>
<b-card bg-variant="light" class="w-60" :disabled="backtestRunning">
<!-- Backtesting parameters -->
<b-form-group
label-cols-lg="2"
label="Backtest params"
@ -119,6 +119,7 @@
<b-button variant="primary" @click="removeBacktest">Reset Backtest</b-button>
</div>
</div>
</div>
<div v-if="hasBacktestResult && btFormMode == 'results'" class="text-center w-100 mt-2">
<BacktestResultView :strategy="strategy" :backtest-result="selectedBacktestResult" />
</div>
@ -204,7 +205,7 @@ export default class Backtesting extends Vue {
strategy = '';
btFormMode = 'params';
btFormMode = 'run';
selectedPlotConfig: PlotConfig = getCustomPlotConfig(getPlotConfigName());