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

Commit

Permalink
only render warmup warning for stratrunners
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Jul 3, 2018
1 parent b280a6f commit 73b5c1a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions web/vue/src/components/gekko/singleGekko.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
.grd-row-col-2-6 History size
.grd-row-col-4-6 {{ config.tradingAdvisor.historySize }}
div(v-if='warmupRemaining', class='contain brdr--mid-gray p1 bg--orange')
| This stratrunner is still warming for the next
i {{ warmupRemaining }}
| This stratrunner is still warming up for the next
i {{ warmupRemaining.replace(',', ' and ') }}
| , it will not trade until it is warmed up.
.grd-row(v-if='isStratrunner')
.grd-row-col-3-6
Expand Down Expand Up @@ -177,10 +177,18 @@ export default {
return this.data.stopped;
},
warmupRemaining: function() {
if(!this.isStratrunner) {
return false;
}
if(this.initialEvents.stratWarmupCompleted) {
return false;
}
if(!this.initialEvents.candle) {
return false;
}
const warmupTime = _.get(this.config, 'tradingAdvisor.candleSize') * _.get(this.config, 'tradingAdvisor.historySize');
return humanizeDuration(
Expand Down

0 comments on commit 73b5c1a

Please sign in to comment.