mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
feature/profitReport: pass 0 to Last()
This commit is contained in:
parent
6b46b1e01e
commit
2ed5095ffb
|
@ -122,7 +122,7 @@ func (r *AccumulatedProfitReport) DailyUpdate(tradeStats *types.TradeStats) {
|
||||||
|
|
||||||
// Accumulated profit MA
|
// Accumulated profit MA
|
||||||
r.accumulatedProfitMA.Update(r.accumulatedProfit.Float64())
|
r.accumulatedProfitMA.Update(r.accumulatedProfit.Float64())
|
||||||
r.accumulatedProfitMAPerDay.Update(r.accumulatedProfitMA.Last())
|
r.accumulatedProfitMAPerDay.Update(r.accumulatedProfitMA.Last(0))
|
||||||
|
|
||||||
// Accumulated Fee
|
// Accumulated Fee
|
||||||
r.accumulatedFeePerDay.Update(r.accumulatedFee.Float64())
|
r.accumulatedFeePerDay.Update(r.accumulatedFee.Float64())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user