diff --git a/src/components/ftbot/CandleChart.vue b/src/components/ftbot/CandleChart.vue index 618cd96b..7adec8d3 100644 --- a/src/components/ftbot/CandleChart.vue +++ b/src/components/ftbot/CandleChart.vue @@ -1,27 +1,6 @@ @@ -29,12 +8,10 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator'; import ECharts from 'vue-echarts'; import * as echarts from 'echarts'; -import { Trade, PairHistory, PlotConfig, EMPTY_PLOTCONFIG } from '@/store/types'; +import { Trade, PairHistory, PlotConfig } from '@/store/types'; import randomColor from '@/shared/randomColor'; import { roundTimeframe } from '@/shared/timemath'; import { timestampms } from '@/shared/formatters'; -import PlotConfigurator from '@/components/ftbot/PlotConfigurator.vue'; -import { loadCustomPlotConfig, loadPlotConfigName } from '@/shared/storage'; import 'echarts'; @@ -47,7 +24,7 @@ const downColor = '#ec0000'; const downBorderColor = '#8A0000'; @Component({ - components: { 'v-chart': ECharts, PlotConfigurator }, + components: { 'v-chart': ECharts }, }) export default class CandleChart extends Vue { @Prop({ required: true }) readonly timeframe!: string; @@ -58,9 +35,9 @@ export default class CandleChart extends Vue { @Prop({ required: true }) readonly dataset!: PairHistory; - plotConfig: PlotConfig = { ...EMPTY_PLOTCONFIG }; + @Prop({ default: true }) readonly useUTC!: boolean; - useUTC = true; + @Prop({ required: true }) plotConfig!: PlotConfig; // Only recalculate buy / sell data if necessary signalsCalculated = false; @@ -69,14 +46,6 @@ export default class CandleChart extends Vue { sellData = [] as Array[]; - mounted() { - this.plotConfig = loadCustomPlotConfig(loadPlotConfigName()); - } - - showConfigurator() { - this.$bvModal.show('plotConfiguratorModal'); - } - @Watch('timeframe') timeframeChanged() { this.signalsCalculated = false; diff --git a/src/components/ftbot/CandleChartContainer.vue b/src/components/ftbot/CandleChartContainer.vue new file mode 100644 index 00000000..4fdb4c10 --- /dev/null +++ b/src/components/ftbot/CandleChartContainer.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/src/views/Graphs.vue b/src/views/Graphs.vue index 48e50237..c37a13b7 100644 --- a/src/views/Graphs.vue +++ b/src/views/Graphs.vue @@ -22,14 +22,14 @@
- - +
@@ -37,7 +37,7 @@