From ba75fca158d420af47dfc8087eead7b5b2b0a0bf Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 17 May 2022 07:05:37 +0200 Subject: [PATCH] Add canceled trade entries to Backtesting view --- src/components/ftbot/BacktestResultView.vue | 4 ++++ src/types/backtest.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/ftbot/BacktestResultView.vue b/src/components/ftbot/BacktestResultView.vue index c758cafb..ceb11505 100644 --- a/src/components/ftbot/BacktestResultView.vue +++ b/src/components/ftbot/BacktestResultView.vue @@ -186,6 +186,10 @@ export default defineComponent({ metric: 'Entry/Exit timeouts', value: `${props.backtestResult.timedout_entry_orders} / ${props.backtestResult.timedout_exit_orders}`, }, + { + metric: 'Canceled Trade Entries', + value: props.backtestResult.canceled_trade_entries ?? 'N/A', + }, ...shortMetrics, diff --git a/src/types/backtest.ts b/src/types/backtest.ts index 4a82300c..56c1cd47 100644 --- a/src/types/backtest.ts +++ b/src/types/backtest.ts @@ -109,6 +109,7 @@ export interface StrategyBacktestResult { timedout_entry_orders: number; timedout_exit_orders: number; + canceled_trade_entries?: number; // Daily stats ... draw_days: number;