bbgo: add hull to the standard indicator

This commit is contained in:
c9s 2022-07-26 18:27:22 +08:00
parent 2459dbd384
commit 0456cdc7a9
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -102,6 +102,11 @@ func (s *StandardIndicatorSet) CCI(iw types.IntervalWindow) *indicator.CCI {
return inc.(*indicator.CCI)
}
func (s *StandardIndicatorSet) HULL(iw types.IntervalWindow) *indicator.HULL {
inc := s.allocateSimpleIndicator(&indicator.HULL{IntervalWindow: iw}, iw)
return inc.(*indicator.HULL)
}
func (s *StandardIndicatorSet) STOCH(iw types.IntervalWindow) *indicator.STOCH {
inc, ok := s.stoch[iw]
if !ok {