mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
indicator_set add adx
This commit is contained in:
parent
f54d170d44
commit
88281c1520
|
@ -3,7 +3,7 @@ package bbgo
|
||||||
import (
|
import (
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/c9s/bbgo/pkg/indicator/v2"
|
indicatorv2 "github.com/c9s/bbgo/pkg/indicator/v2"
|
||||||
"github.com/c9s/bbgo/pkg/types"
|
"github.com/c9s/bbgo/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -108,3 +108,7 @@ func (i *IndicatorSet) ATR(interval types.Interval, window int) *indicatorv2.ATR
|
||||||
func (i *IndicatorSet) ATRP(interval types.Interval, window int) *indicatorv2.ATRPStream {
|
func (i *IndicatorSet) ATRP(interval types.Interval, window int) *indicatorv2.ATRPStream {
|
||||||
return indicatorv2.ATRP2(i.KLines(interval), window)
|
return indicatorv2.ATRP2(i.KLines(interval), window)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i *IndicatorSet) ADX(interval types.Interval, window int) *indicatorv2.ADXStream {
|
||||||
|
return indicatorv2.ADX(i.KLines(interval), window)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user