mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Add buy/sell signa count to interface
This commit is contained in:
parent
58160f35c5
commit
218212e301
|
@ -17,6 +17,10 @@
|
|||
<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">
|
||||
<small>Buysignals: {{ dataset.buy_signals }}</small>
|
||||
<small class="ml-2">SellSignals: {{ dataset.sell_signals }}</small>
|
||||
</div>
|
||||
<div class="col-mb-2 ml-auto mr-2">
|
||||
<b-select
|
||||
v-model="plotConfigName"
|
||||
|
@ -103,7 +107,7 @@ export default class CandleChartContainer extends Vue {
|
|||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
@ftbot.Action public getPairHistory!: (payload: PairHistoryPayload) => void;
|
||||
|
||||
get dataset() {
|
||||
get dataset(): PairHistory {
|
||||
if (this.historicView) {
|
||||
return this.history[`${this.pair}__${this.timeframe}`];
|
||||
}
|
||||
|
|
|
@ -186,6 +186,10 @@ export interface PairHistory {
|
|||
columns: string[];
|
||||
data: number[];
|
||||
length: number;
|
||||
/** Number of buy signals in this response */
|
||||
buy_signals: number;
|
||||
/** Number of sell signals in this response */
|
||||
sell_signals: number;
|
||||
last_analyzed: number;
|
||||
/** Data start date in as millisecond timestamp */
|
||||
data_start_ts: number;
|
||||
|
|
Loading…
Reference in New Issue
Block a user