Auto-load strategy when btresult is selected

This commit is contained in:
Matthias 2023-01-17 21:50:34 +01:00
parent aa26a501a8
commit 47aea56420

View File

@ -376,6 +376,7 @@ const pollInterval = ref<number | null>(null);
const selectBacktestResult = () => { const selectBacktestResult = () => {
// Set parameters for this result // Set parameters for this result
strategy.value = botStore.activeBot.selectedBacktestResult.strategy_name; strategy.value = botStore.activeBot.selectedBacktestResult.strategy_name;
botStore.activeBot.getStrategy(strategy.value);
selectedTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe; selectedTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe;
selectedDetailTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe_detail || ''; selectedDetailTimeframe.value = botStore.activeBot.selectedBacktestResult.timeframe_detail || '';
timerange.value = botStore.activeBot.selectedBacktestResult.timerange; timerange.value = botStore.activeBot.selectedBacktestResult.timerange;