Skip to content

Commit

Permalink
indicator: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Jun 1, 2023
1 parent 23a49a8 commit 3e94584
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/indicator/v2_atr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/indicator/v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/indicator/v2_tr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3e94584

Please sign in to comment.