Fix proift-symbol for backtesting

This commit is contained in:
Matthias 2020-12-05 15:55:26 +01:00
parent 85b8f0ca63
commit 5f2fbf3c1f

View File

@ -13,7 +13,7 @@ export default class ProfitSymbol extends Vue {
@Prop({ required: true }) trade!: Trade;
get isProfitable() {
const res = (this.trade.profit_ratio ?? 0) > 0;
const res = (this.trade.profit_ratio ?? 0) > 0 || (this.trade.profit_abs ?? 0) > 0;
return res;
}
}