diff --git a/src/components/ftbot/BacktestHistoryLoad.vue b/src/components/ftbot/BacktestHistoryLoad.vue new file mode 100644 index 00000000..b54d34cb --- /dev/null +++ b/src/components/ftbot/BacktestHistoryLoad.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/views/Backtesting.vue b/src/views/Backtesting.vue index 229b379e..e59896eb 100644 --- a/src/views/Backtesting.vue +++ b/src/views/Backtesting.vue @@ -9,6 +9,15 @@ class="col-12 col-lg-order-last col-lg-6 mx-md-5 d-flex flex-wrap justify-content-md-center justify-content-between mb-4" :disabled="canRunBacktest" > + Load Results - +
+ +
- -
-
- -
-
-
Strategy @@ -308,6 +313,7 @@ import TradesLogChart from '@/components/charts/TradesLog.vue'; import PairSummary from '@/components/ftbot/PairSummary.vue'; import TimeframeSelect from '@/components/ftbot/TimeframeSelect.vue'; import TradeList from '@/components/ftbot/TradeList.vue'; +import BacktestHistoryLoad from '@/components/ftbot/BacktestHistoryLoad.vue'; import { BacktestPayload, @@ -317,7 +323,6 @@ import { PairHistoryPayload, PlotConfig, StrategyBacktestResult, - BacktestHistoryEntry, } from '@/types'; import { getCustomPlotConfig, getPlotConfigName } from '@/shared/storage'; @@ -330,6 +335,7 @@ const ftbot = namespace(StoreModules.ftbot); components: { BacktestResultView, BacktestResultSelect, + BacktestHistoryLoad, TimeRangeSelect, CandleChartContainer, CumProfitChart, @@ -386,8 +392,6 @@ export default class Backtesting extends Vue { @ftbot.Getter [BotStoreGetters.canRunBacktest]!: boolean; - @ftbot.Getter [BotStoreGetters.backtestHistoryList]!: BacktestHistoryEntry[]; - // eslint-disable-next-line @typescript-eslint/no-unused-vars @ftbot.Action getPairHistory!: (payload: PairHistoryPayload) => void; @@ -404,9 +408,6 @@ export default class Backtesting extends Vue { @ftbot.Action stopBacktest!: () => void; - // eslint-disable-next-line @typescript-eslint/no-unused-vars - @ftbot.Action getBacktestHistoryResult!: (filename: string) => void; - // eslint-disable-next-line @typescript-eslint/no-unused-vars @ftbot.Action setBacktestResultKey!: (key: string) => void;