mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Move Timerange to btStore
This commit is contained in:
parent
888ba6faf8
commit
06f64c9ab9
|
@ -6,6 +6,7 @@ export const useBtStore = defineStore('btStore', {
|
|||
strategy: '',
|
||||
selectedTimeframe: '',
|
||||
selectedDetailTimeframe: '',
|
||||
timerange: '',
|
||||
freqAI: {
|
||||
enabled: false,
|
||||
model: '',
|
||||
|
|
|
@ -253,7 +253,7 @@
|
|||
></b-form-input>
|
||||
</b-form-group> -->
|
||||
<hr />
|
||||
<TimeRangeSelect v-model="timerange" class="mt-2"></TimeRangeSelect>
|
||||
<TimeRangeSelect v-model="btStore.timerange" class="mt-2"></TimeRangeSelect>
|
||||
</b-form-group>
|
||||
</b-card>
|
||||
|
||||
|
@ -313,7 +313,7 @@
|
|||
<BacktestResultChart
|
||||
:timeframe="timeframe"
|
||||
:strategy="btStore.strategy"
|
||||
:timerange="timerange"
|
||||
:timerange="btStore.timerange"
|
||||
:pairlist="botStore.activeBot.selectedBacktestResult.pairlist"
|
||||
:trades="botStore.activeBot.selectedBacktestResult.trades"
|
||||
:freqai-model="freqAI.enabled ? freqAI.model : undefined"
|
||||
|
@ -357,7 +357,6 @@ const timeframe = computed((): string => {
|
|||
}
|
||||
});
|
||||
|
||||
const timerange = ref('');
|
||||
const showLeftBar = ref(false);
|
||||
const freqAI = ref({
|
||||
enabled: false,
|
||||
|
@ -381,7 +380,7 @@ const selectBacktestResult = () => {
|
|||
btStore.selectedDetailTimeframe =
|
||||
botStore.activeBot.selectedBacktestResult.timeframe_detail || '';
|
||||
// TODO: maybe this should not use timerange, but the actual backtest start/end results instead?
|
||||
timerange.value = botStore.activeBot.selectedBacktestResult.timerange;
|
||||
btStore.timerange = botStore.activeBot.selectedBacktestResult.timerange;
|
||||
};
|
||||
|
||||
watch(
|
||||
|
@ -394,7 +393,7 @@ watch(
|
|||
const clickBacktest = () => {
|
||||
const btPayload: BacktestPayload = {
|
||||
strategy: btStore.strategy,
|
||||
timerange: timerange.value,
|
||||
timerange: btStore.timerange,
|
||||
enable_protections: enableProtections.value,
|
||||
};
|
||||
const openTradesInt = parseInt(maxOpenTrades.value, 10);
|
||||
|
|
Loading…
Reference in New Issue
Block a user