Documentation ¶
Index ¶
- Constants
- func GeneralFilter(ruleParameter config.RuleParameter, snapshot factors.QuoteSnapshot) error
- type ModelNo1
- func (m ModelNo1) Code() models.ModelKind
- func (m ModelNo1) Evaluate(securityCode string, result *concurrent.TreeMap[string, models.ResultInfo])
- func (m ModelNo1) Filter(ruleParameter config.RuleParameter, snapshot factors.QuoteSnapshot) error
- func (m ModelNo1) Name() string
- func (m ModelNo1) OrderFlag() string
- func (m ModelNo1) Sort(snapshots []factors.QuoteSnapshot) models.SortedStatus
Constants ¶
View Source
const ( // MaximumResultDays 结果最大天数 MaximumResultDays int = 3 )
Variables ¶
This section is empty.
Functions ¶
func GeneralFilter ¶ added in v0.7.5
func GeneralFilter(ruleParameter config.RuleParameter, snapshot factors.QuoteSnapshot) error
GeneralFilter 过滤条件
执行所有在册的规则
Types ¶
type ModelNo1 ¶ added in v0.6.1
type ModelNo1 struct { }
ModelNo1 1号模型
FormulaNo1 3天内5天线上穿10天线,10天线上穿20天线的个股 count(cross(MA(c,5),MA(c,10)),3)>=1 and count(cross(MA(c,10),MA(c,20)),3)>=1
func (ModelNo1) Evaluate ¶ added in v0.6.1
func (m ModelNo1) Evaluate(securityCode string, result *concurrent.TreeMap[string, models.ResultInfo])
func (ModelNo1) Filter ¶ added in v0.6.1
func (m ModelNo1) Filter(ruleParameter config.RuleParameter, snapshot factors.QuoteSnapshot) error
func (ModelNo1) Sort ¶ added in v0.7.2
func (m ModelNo1) Sort(snapshots []factors.QuoteSnapshot) models.SortedStatus
Click to show internal directories.
Click to hide internal directories.