bbgo_origin/pkg/indicator/v2_atr.go
2023-05-31 13:08:40 +08:00

13 lines
226 B
Go

package indicator
type ATRStream struct {
// embedded struct
*RMAStream
}
func ATR2(source KLineSubscription, window int) *ATRStream {
tr := TR2(source)
rma := RMA2(tr, window, true)
return &ATRStream{RMAStream: rma}
}