indicator: fix tests

This commit is contained in:
c9s 2023-06-01 12:39:30 +08:00
parent 23a49a8fd2
commit 3e9458499c
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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)

View File

@ -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)