mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
indicator: fix tests
This commit is contained in:
parent
23a49a8fd2
commit
3e9458499c
|
@ -64,7 +64,7 @@ func Test_ATR2(t *testing.T) {
|
|||
t.Run(tt.name, func(t *testing.T) {
|
||||
stream := &types.StandardStream{}
|
||||
|
||||
kLines := KLines(stream)
|
||||
kLines := KLines(stream, "", "")
|
||||
atr := ATR2(kLines, tt.window)
|
||||
|
||||
for _, k := range tt.kLines {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
func Test_v2_Subtract(t *testing.T) {
|
||||
stream := &types.StandardStream{}
|
||||
kLines := KLines(stream)
|
||||
kLines := KLines(stream, "", "")
|
||||
closePrices := ClosePrices(kLines)
|
||||
fastEMA := EWMA2(closePrices, 10)
|
||||
slowEMA := EWMA2(closePrices, 25)
|
||||
|
|
|
@ -64,7 +64,7 @@ func Test_TR_and_RMA(t *testing.T) {
|
|||
t.Run(tt.name, func(t *testing.T) {
|
||||
stream := &types.StandardStream{}
|
||||
|
||||
kLines := KLines(stream)
|
||||
kLines := KLines(stream, "", "")
|
||||
atr := TR2(kLines)
|
||||
rma := RMA2(atr, tt.window, true)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user