mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bbgo: add hull to the standard indicator
This commit is contained in:
parent
2459dbd384
commit
0456cdc7a9
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user