mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
backtest: correct final asset calculation
This commit is contained in:
parent
b9729b0c4f
commit
36bdacf3a3
|
@ -86,7 +86,7 @@ func (r *SessionSymbolReport) InitialEquityValue() fixedpoint.Value {
|
|||
}
|
||||
|
||||
func (r *SessionSymbolReport) FinalEquityValue() fixedpoint.Value {
|
||||
return InQuoteAsset(r.FinalBalances, r.Market, r.StartPrice)
|
||||
return InQuoteAsset(r.FinalBalances, r.Market, r.LastPrice)
|
||||
}
|
||||
|
||||
func (r *SessionSymbolReport) Print(wantBaseAssetBaseline bool) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user