improve/profitStatsTracker: use SMA instead of SMA2

This commit is contained in:
Andy Cheng 2023-07-17 12:10:48 +08:00
parent e5254e6446
commit 08d8519e67
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28

View File

@ -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) {