mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
Botcomparison summary shouldn't contain non-selected bots
This commit is contained in:
parent
a064b96ed9
commit
88469104ca
|
@ -122,12 +122,15 @@ const tableItems = computed<TableItem[]>(() => {
|
||||||
stakeCurrencyDecimals: botStore.allBotState[k]?.stake_currency_decimals || 3,
|
stakeCurrencyDecimals: botStore.allBotState[k]?.stake_currency_decimals || 3,
|
||||||
});
|
});
|
||||||
if (v.profit_closed_coin !== undefined) {
|
if (v.profit_closed_coin !== undefined) {
|
||||||
|
if (botStore.botStores[k].isSelected) {
|
||||||
|
// Summary should only include selected bots
|
||||||
summary.profitClosed += v.profit_closed_coin;
|
summary.profitClosed += v.profit_closed_coin;
|
||||||
summary.profitOpen += profitOpen;
|
summary.profitOpen += profitOpen;
|
||||||
summary.wins += v.winning_trades;
|
summary.wins += v.winning_trades;
|
||||||
summary.losses += v.losing_trades;
|
summary.losses += v.losing_trades;
|
||||||
// summary.decimals = this.allBotState[k]?.stake_currency_decimals || summary.decimals;
|
// summary.decimals = this.allBotState[k]?.stake_currency_decimals || summary.decimals;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
val.push(summary);
|
val.push(summary);
|
||||||
return val as unknown as TableItem[];
|
return val as unknown as TableItem[];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user