mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-16 20:13:52 +00:00
13 lines
228 B
Go
13 lines
228 B
Go
package indicatorv2
|
|
|
|
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}
|
|
}
|