From 0361fc1424010ac56d333be836cd79dc1669dac7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 30 Oct 2022 12:55:14 +0100 Subject: [PATCH] Simplify ResultChart --- src/components/ftbot/BacktestResultChart.vue | 23 +++++++------------- src/views/Backtesting.vue | 8 ++++++- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/components/ftbot/BacktestResultChart.vue b/src/components/ftbot/BacktestResultChart.vue index d2c8ac2c..9fad52dc 100644 --- a/src/components/ftbot/BacktestResultChart.vue +++ b/src/components/ftbot/BacktestResultChart.vue @@ -21,18 +21,18 @@ - + @@ -83,6 +74,8 @@ export default defineComponent({ timeframe: { required: true, type: String }, strategy: { required: true, type: String }, timerange: { required: true, type: String }, + pairlist: { required: true, type: Array as () => string[] }, + trades: { required: true, type: Array as () => Trade[] }, }, setup() { const botStore = useBotStore(); diff --git a/src/views/Backtesting.vue b/src/views/Backtesting.vue index bffaf3d5..868a80aa 100644 --- a/src/views/Backtesting.vue +++ b/src/views/Backtesting.vue @@ -261,7 +261,13 @@ v-if="hasBacktestResult && btFormMode == 'visualize'" class="container-fluid text-center w-100 mt-2" > - +