gobacktest: github.com/dirkolbrich/gobacktest/ta Index | Files

package ta

import "github.com/dirkolbrich/gobacktest/ta"

Index

Package Files

ma.go

func EMA Uses

func EMA(values []float64, period int) ([]float64, error)

EMA calculates the Exponential Moving Average for the supplied slice of float64 values for a given period

func Mean Uses

func Mean(values []float64) float64

Mean calculates the average for a slice of float64 values.

func SMA Uses

func SMA(values []float64, period int) ([]float64, error)

SMA calculates the simple moving average of a given slice of data points.

Package ta imports 1 packages (graph). Updated 2018-08-03. Refresh now. Tools for package owners.