mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
improve/profitStatsTracker: use SMA instead of SMA2
This commit is contained in:
parent
e5254e6446
commit
08d8519e67
|
@ -72,7 +72,7 @@ func (r *AccumulatedProfitReport) Initialize(symbol string, interval types.Inter
|
|||
}
|
||||
|
||||
r.accumulatedProfitPerInterval = types.NewFloat64Series()
|
||||
r.profitMA = indicatorv2.SMA2(r.accumulatedProfitPerInterval, r.ProfitMAWindow)
|
||||
r.profitMA = indicatorv2.SMA(r.accumulatedProfitPerInterval, r.ProfitMAWindow)
|
||||
}
|
||||
|
||||
func (r *AccumulatedProfitReport) AddStrategyParameter(title string, value string) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user