mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
fix percentage
This commit is contained in:
parent
82e85dd27a
commit
6069102099
|
@ -503,7 +503,7 @@ func (s *Strategy) handleTradeUpdate(trade types.Trade) {
|
|||
s.Symbol,
|
||||
pnlEmoji(profit),
|
||||
profit.Float64(), s.state.Position.QuoteCurrency,
|
||||
profitMargin.Float64(),
|
||||
profitMargin.Float64() * 100.0,
|
||||
since.Format(time.RFC822),
|
||||
s.state.AccumulatedPnL.Float64(), s.state.Position.QuoteCurrency,
|
||||
s.state.AccumulatedLoss.Float64(), s.state.Position.QuoteCurrency)
|
||||
|
|
Loading…
Reference in New Issue
Block a user