gitee.com/quant1x/engine@v1.8.4/rules/rule_f10_test.go (about)

     1  package rules
     2  
     3  import (
     4  	"fmt"
     5  	"gitee.com/quant1x/engine/config"
     6  	"gitee.com/quant1x/engine/models"
     7  	"testing"
     8  )
     9  
    10  func Test_baseFilter(t *testing.T) {
    11  	code := "601868"
    12  	code = "sh600622"
    13  	code = "sh601188"
    14  	code = "sz002682"
    15  	snapshot := models.GetTick(code)
    16  	strategyParameter := config.GetStrategyParameterByCode(0)
    17  	passed, failKind, err := Filter(strategyParameter.Rules, *snapshot)
    18  	fmt.Println(passed, failKind, err)
    19  }