indicators

package
v0.0.0-...-0a1f481 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SMA maType = iota
	EMA
	LWMA
	WILDER
)

Variables

This section is empty.

Functions

func ADX

func ADX(bars providers.BarHistory, period int) []float64

func ATR

func ATR(bars providers.BarHistory, period int) []float64

func ATRP

func ATRP(bars providers.BarHistory, period int) []float64

func CheckInput

func CheckInput(input []float64, period int) error

func DiPlusMinus

func DiPlusMinus(bars providers.BarHistory, period int) ([]float64, []float64)

func Last

func Last(bars providers.BarHistory, barType providers.BarType) float64

func MA

func MA(input []float64, period int, ma maType) ([]float64, error)

func Mean

func Mean(in []float64) float64

func ROC

func ROC(input []float64, period int) []float64

func RSI

func RSI(input []float64, period int) []float64

func RSL

func RSL(input []float64, period int) ([]float64, error)

func StdDev

func StdDev(in []float64) float64

func TR

func TR(bars providers.BarHistory) []float64

Types

type BBands

type BBands struct {
	// contains filtered or unexported fields
}

func BB

func BB(input []float64, period int, factor float64, method maType) (BBands, error)

Jump to

Keyboard shortcuts

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