mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Disable backtest-cache selectively
This commit is contained in:
parent
f40bace902
commit
ddff02c1a9
|
@ -11,6 +11,7 @@ export interface BacktestPayload {
|
|||
stake_amount?: string;
|
||||
dry_run_wallet?: number;
|
||||
enable_protections?: boolean;
|
||||
backtest_cache?: string;
|
||||
freqaimodel?: string;
|
||||
}
|
||||
|
||||
|
|
|
@ -194,6 +194,14 @@
|
|||
v-model="enableProtections"
|
||||
></b-form-checkbox>
|
||||
</b-form-group>
|
||||
<b-form-group
|
||||
label-cols-sm="5"
|
||||
label="Cache Backtest results:"
|
||||
label-align-sm="right"
|
||||
label-for="enable-cache"
|
||||
>
|
||||
<b-form-checkbox id="enable-cache" v-model="allowCache"></b-form-checkbox>
|
||||
</b-form-group>
|
||||
<template v-if="botStore.activeBot.botApiVersion >= 2.22">
|
||||
<b-form-group
|
||||
label-cols-sm="5"
|
||||
|
@ -343,6 +351,7 @@ const freqAI = ref({
|
|||
});
|
||||
const enableProtections = ref(false);
|
||||
const stakeAmountUnlimited = ref(false);
|
||||
const allowCache = ref(true);
|
||||
const maxOpenTrades = ref('');
|
||||
const stakeAmount = ref('');
|
||||
const startingCapital = ref('');
|
||||
|
@ -400,6 +409,10 @@ const clickBacktest = () => {
|
|||
// eslint-disable-next-line @typescript-eslint/camelcase
|
||||
btPayload.timeframe_detail = selectedDetailTimeframe.value;
|
||||
}
|
||||
if (!allowCache.value) {
|
||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
||||
btPayload.backtest_cache = 'none';
|
||||
}
|
||||
if (freqAI.value.enabled) {
|
||||
btPayload.freqaimodel = freqAI.value.model;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user