mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Check if candles exist
This commit is contained in:
parent
218212e301
commit
6379aa669a
|
@ -90,7 +90,7 @@ export default class CandleChart extends Vue {
|
|||
return {};
|
||||
}
|
||||
|
||||
console.log(`Available Columns: ${this.dataset.columns}`);
|
||||
// console.log(`Available Columns: ${this.dataset.columns}`);
|
||||
// Find default columns (sequence might be different, depending on the strategy)
|
||||
const colDate = this.dataset.columns.findIndex((el) => el === '__date_ts');
|
||||
const colOpen = this.dataset.columns.findIndex((el) => el === 'open');
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<div class="col-mb-2 ml-2 mr-2">
|
||||
<b-button :disabled="!!!pair" size="sm" @click="refresh">↻</b-button>
|
||||
</div>
|
||||
<div class="col-mb-2 ml-2 mr-2">
|
||||
<div v-if="hasDataset" class="col-mb-2 ml-2 mr-2">
|
||||
<small>Buysignals: {{ dataset.buy_signals }}</small>
|
||||
<small class="ml-2">SellSignals: {{ dataset.sell_signals }}</small>
|
||||
</div>
|
||||
|
@ -118,6 +118,10 @@ export default class CandleChartContainer extends Vue {
|
|||
return this.dataset ? this.dataset.columns : [];
|
||||
}
|
||||
|
||||
get hasDataset(): boolean {
|
||||
return !!this.dataset;
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.plotConfigName = getPlotConfigName();
|
||||
this.plotConfig = getCustomPlotConfig(this.plotConfigName);
|
||||
|
|
Loading…
Reference in New Issue
Block a user