mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 03:33:50 +00:00
Fix proift-symbol for backtesting
This commit is contained in:
parent
85b8f0ca63
commit
5f2fbf3c1f
|
@ -13,7 +13,7 @@ export default class ProfitSymbol extends Vue {
|
||||||
@Prop({ required: true }) trade!: Trade;
|
@Prop({ required: true }) trade!: Trade;
|
||||||
|
|
||||||
get isProfitable() {
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user