mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
fix struct composition
This commit is contained in:
parent
19b600bb35
commit
5f45d18ae2
|
@ -26,11 +26,11 @@ func NewStandardIndicatorSet(symbol string, store *MarketDataStore) *StandardInd
|
|||
// let us pre-defined commonly used intervals
|
||||
for interval := range types.SupportedIntervals {
|
||||
for _, window := range []int{7, 25, 99} {
|
||||
iw := types.IntervalWindow{interval, window}
|
||||
set.SMA[iw] = &indicator.SMA{Interval: interval, Window: window}
|
||||
iw := types.IntervalWindow{Interval: interval, Window: window}
|
||||
set.SMA[iw] = &indicator.SMA{IntervalWindow: iw}
|
||||
set.SMA[iw].Bind(store)
|
||||
|
||||
set.EWMA[iw] = &indicator.EWMA{Interval: interval, Window: window}
|
||||
set.EWMA[iw] = &indicator.EWMA{IntervalWindow: iw}
|
||||
set.EWMA[iw].Bind(store)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user