seek

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHoldings      = errors.New("portfolio must contain at least 2 holdings")
	ErrInvalidPeriod = errors.New("period must be one of 'Weekly' or 'Monthly'")
	ErrInvalidRisk   = errors.New("risk i dicator must be one of 'None' or 'Momentum'")
)

Functions

func New

func New(args map[string]json.RawMessage) (strategy.Strategy, error)

New Construct a new Momentum Driven Earnings Prediction (seek) strategy

Types

type ByStartDur

type ByStartDur []*Period

func (ByStartDur) Len

func (a ByStartDur) Len() int

func (ByStartDur) Less

func (a ByStartDur) Less(i, j int) bool

func (ByStartDur) Swap

func (a ByStartDur) Swap(i, j int)

type Period

type Period struct {
	Security *data.Security
	Begin    time.Time
	End      time.Time
}

type SeekingAlphaQuant

type SeekingAlphaQuant struct {
	NumHoldings   int
	OutSecurity   *data.Security
	RiskIndicator string
	Period        dataframe.Frequency
	// contains filtered or unexported fields
}

func (*SeekingAlphaQuant) Compute

Compute signal

Jump to

Keyboard shortcuts

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