diff --git a/web/vue/src/components/gekko/singleGekko.vue b/web/vue/src/components/gekko/singleGekko.vue index 9a68f07c9..702de4921 100644 --- a/web/vue/src/components/gekko/singleGekko.vue +++ b/web/vue/src/components/gekko/singleGekko.vue @@ -195,7 +195,13 @@ export default { return false; } - const warmupTime = _.get(this.config, 'tradingAdvisor.candleSize') * _.get(this.config, 'tradingAdvisor.historySize'); + const historySize = _.get(this.config, 'tradingAdvisor.historySize'); + + if(!historySize) { + return false; + } + + const warmupTime = _.get(this.config, 'tradingAdvisor.candleSize') * historySize; return humanizeDuration( moment(this.initialEvents.candle.start).add(warmupTime, 'm').diff(moment()),