Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

Commit 73b5c1a

Browse files
committed
only render warmup warning for stratrunners
1 parent b280a6f commit 73b5c1a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

web/vue/src/components/gekko/singleGekko.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
.grd-row-col-2-6 History size
5050
.grd-row-col-4-6 {{ config.tradingAdvisor.historySize }}
5151
div(v-if='warmupRemaining', class='contain brdr--mid-gray p1 bg--orange')
52-
| This stratrunner is still warming for the next
53-
i {{ warmupRemaining }}
52+
| This stratrunner is still warming up for the next
53+
i {{ warmupRemaining.replace(',', ' and ') }}
5454
| , it will not trade until it is warmed up.
5555
.grd-row(v-if='isStratrunner')
5656
.grd-row-col-3-6
@@ -177,10 +177,18 @@ export default {
177177
return this.data.stopped;
178178
},
179179
warmupRemaining: function() {
180+
if(!this.isStratrunner) {
181+
return false;
182+
}
183+
180184
if(this.initialEvents.stratWarmupCompleted) {
181185
return false;
182186
}
183187
188+
if(!this.initialEvents.candle) {
189+
return false;
190+
}
191+
184192
const warmupTime = _.get(this.config, 'tradingAdvisor.candleSize') * _.get(this.config, 'tradingAdvisor.historySize');
185193
186194
return humanizeDuration(

0 commit comments

Comments
 (0)