diff --git a/src/views/BacktestingView.vue b/src/views/BacktestingView.vue index 344f8a97..a55142d8 100644 --- a/src/views/BacktestingView.vue +++ b/src/views/BacktestingView.vue @@ -99,7 +99,7 @@
Strategy - +
@@ -312,7 +312,7 @@ > botStore.activeBot.backtestHistory @@ -355,7 +357,6 @@ const timeframe = computed((): string => { } }); -const strategy = ref(''); const selectedTimeframe = ref(''); const selectedDetailTimeframe = ref(''); const timerange = ref(''); @@ -376,8 +377,8 @@ const pollInterval = ref(null); const selectBacktestResult = () => { // Set parameters for this result - strategy.value = botStore.activeBot.selectedBacktestResult.strategy_name; - botStore.activeBot.getStrategy(strategy.value); + btStore.strategy = botStore.activeBot.selectedBacktestResult.strategy_name; + botStore.activeBot.getStrategy(btStore.strategy); selectedTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe; selectedDetailTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe_detail || ''; // TODO: maybe this should not use timerange, but the actual backtest start/end results instead? @@ -393,7 +394,7 @@ watch( const clickBacktest = () => { const btPayload: BacktestPayload = { - strategy: strategy.value, + strategy: btStore.strategy, timerange: timerange.value, enable_protections: enableProtections.value, };