ta

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sma

func Sma(data []decimal.Decimal, length int) (decimal.Decimal, error)

Types

type Interval

type Interval string
const (
	Interval1m  Interval = "1m"
	Interval5m  Interval = "5m"
	Interval15m Interval = "15m"
	Interval30m Interval = "30m"
	Interval1h  Interval = "1h"
	Interval12h Interval = "12h"
	Interval1d  Interval = "1d"
)

type Source

type Source interface {
	Close() []decimal.Decimal
	Open() []decimal.Decimal
	High() []decimal.Decimal
	Low() []decimal.Decimal
}

Jump to

Keyboard shortcuts

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