gitee.com/quant1x/engine@v1.8.4/factors/feature_misc_kline_shape_test.go (about) 1 package factors 2 3 import ( 4 "fmt" 5 "testing" 6 ) 7 8 func TestKLineShape(t *testing.T) { 9 code := "sz002992" 10 code = "sz300569" 11 code = "sz300748" 12 code = "sz002284" 13 code = "sh603551" 14 code = "sh603818" 15 code = "sz300008" 16 code = "sh600663" 17 code = "sh600522" 18 code = "sh603099" 19 //code = "sz002043" 20 //code = "sz300591" 21 df := BasicKLine(code) 22 df = df.Sub(0, -2) 23 v := KLineShape(df, code) 24 fmt.Println(v) 25 fmt.Println(v & (KLineShapeDoji | KLineShapeShrinkToHalf)) 26 }