strategies

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 9 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(snapshot models.QuoteSnapshot) bool

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 *treemap.Map)

func (ModelNo1) Filter added in v0.6.1

func (m ModelNo1) Filter(snapshot models.QuoteSnapshot) bool

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 []models.QuoteSnapshot) models.SortedStatus

Jump to

Keyboard shortcuts

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