mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Small improvements to backtest layout
This commit is contained in:
parent
b17382f04f
commit
e288167570
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user