fix: add persistence to drift

This commit is contained in:
zenix 2022-07-14 12:51:55 +09:00
parent f2d37650a5
commit 7368069c7a

View File

@ -42,9 +42,9 @@ type Strategy struct {
types.IntervalWindow
*bbgo.Environment
*types.Position
*types.ProfitStats
*types.TradeStats
*types.Position `persistence:"position"`
*types.ProfitStats `persistence:"profit_stats"`
*types.TradeStats `persistence:"trade_stats"`
drift *indicator.Drift
atr *indicator.ATR