strategies

package
v1.8.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) Code added in v0.6.1

func (m ModelNo1) Code() models.ModelKind

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) Name added in v0.6.1

func (m ModelNo1) Name() string

func (ModelNo1) OrderFlag added in v0.6.1

func (m ModelNo1) OrderFlag() string

func (ModelNo1) Sort added in v0.7.2

func (m ModelNo1) Sort(snapshots []factors.QuoteSnapshot) models.SortedStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL