gitee.com/quant1x/engine@v1.8.4/strategies/filter.go (about)

     1  package strategies
     2  
     3  import (
     4  	"gitee.com/quant1x/engine/config"
     5  	"gitee.com/quant1x/engine/factors"
     6  	"gitee.com/quant1x/engine/rules"
     7  )
     8  
     9  // GeneralFilter 过滤条件
    10  //
    11  //	执行所有在册的规则
    12  func GeneralFilter(ruleParameter config.RuleParameter, snapshot factors.QuoteSnapshot) error {
    13  	passed, failed, err := rules.Filter(ruleParameter, snapshot)
    14  	_ = passed
    15  	_ = failed
    16  	return err
    17  }