strategies

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaximumResultDays 结果最大天数
	MaximumResultDays int = 3
)

Variables

View Source
var (
	CountDays int // 统计多少天
	CountTopN int // 统计前N
)

Functions

func AllStockTopN

func AllStockTopN() int

AllStockTopN 最大输出多少只个股

func RuleFilter

func RuleFilter(snapshot models.QuoteSnapshot) bool

RuleFilter 过滤条件

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

Jump to

Keyboard shortcuts

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