diff --git a/src/views/BacktestingView.vue b/src/views/BacktestingView.vue
index 8ff9414e..af5bb089 100644
--- a/src/views/BacktestingView.vue
+++ b/src/views/BacktestingView.vue
@@ -218,10 +218,13 @@
/>
-
+
-
+
@@ -316,7 +322,7 @@
:timerange="btStore.timerange"
:pairlist="botStore.activeBot.selectedBacktestResult.pairlist"
:trades="botStore.activeBot.selectedBacktestResult.trades"
- :freqai-model="freqAI.enabled ? freqAI.model : undefined"
+ :freqai-model="btStore.freqAI.enabled ? btStore.freqAI.model : undefined"
/>
@@ -358,11 +364,6 @@ const timeframe = computed((): string => {
});
const showLeftBar = ref(false);
-const freqAI = ref({
- enabled: false,
- model: '',
- identifier: '',
-});
const enableProtections = ref(false);
const stakeAmountUnlimited = ref(false);
const allowCache = ref(true);
@@ -423,10 +424,10 @@ const clickBacktest = () => {
if (!allowCache.value) {
btPayload.backtest_cache = 'none';
}
- if (freqAI.value.enabled) {
- btPayload.freqaimodel = freqAI.value.model;
- if (freqAI.value.identifier !== '') {
- btPayload.freqai = { identifier: freqAI.value.identifier };
+ if (btStore.freqAI.enabled) {
+ btPayload.freqaimodel = btStore.freqAI.model;
+ if (btStore.freqAI.identifier !== '') {
+ btPayload.freqai = { identifier: btStore.freqAI.identifier };
}
}