mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
indicator: simplify ATR2
This commit is contained in:
parent
ebf9c43cd5
commit
266016a278
|
@ -6,8 +6,7 @@ type ATRStream struct {
|
|||
}
|
||||
|
||||
func ATR2(source KLineSubscription, window int) *ATRStream {
|
||||
s := &ATRStream{}
|
||||
tr := TR2(source)
|
||||
s.RMAStream = RMA2(tr, window, true)
|
||||
return s
|
||||
rma := RMA2(tr, window, true)
|
||||
return &ATRStream{RMAStream: rma}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user