analyze

package
v0.0.0-...-b8ff696 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Analyze

type Analyze struct {
	FunctionName FunctionName
	CandleType   CandleType
	ActionsCount int
	Efficiency   float32
	Actions      []indicator.Action
}

type Asset

type Asset struct {
	Candles *indicator.Asset

	CandleType CandleType
}

func (*Asset) Set

func (a *Asset) Set(asset *indicator.Asset)

type CandleType

type CandleType int
const (
	Minute CandleType = iota
	Five
	Fifteen
	Hour
	Day
)

type FunctionName

type FunctionName int
const (
	VolumeWeightedAveragePriceStrategy FunctionName = iota
	AwesomeOscillatorStrategy
	ChaikinMoneyFlowStrategy
	BollingerBandsStrategy
	ForceIndexStrategy
	MacdAndRsiStrategy
	MacdStrategy
	Rsi2Strategy
)

type Top

type Top struct {
	Analyzies []Analyze
}

func SelectStrategies

func SelectStrategies(assets []Asset) *Top

func (*Top) Len

func (t *Top) Len() int

func (*Top) Less

func (t *Top) Less(i, j int) bool

func (*Top) Swap

func (t *Top) Swap(i, j int)

Jump to

Keyboard shortcuts

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