mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
13 lines
226 B
Go
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}
|
|
}
|