indicator

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeSMA   = talib.SMA
	TypeEMA   = talib.EMA
	TypeWMA   = talib.WMA
	TypeDEMA  = talib.DEMA
	TypeTEMA  = talib.TEMA
	TypeTRIMA = talib.TRIMA
	TypeKAMA  = talib.KAMA
	TypeMAMA  = talib.MAMA
	TypeT3MA  = talib.T3MA
)

Kinds of moving averages

Variables

This section is empty.

Functions

func ADX

func ADX(high []float64, low []float64, close []float64, period int) []float64

ADX - relative strength index

func ADXR

func ADXR(high []float64, low []float64, close []float64, period int) []float64

ADXR - Average Directional Movement Index Rating

func APO

func APO(input []float64, fastPeriod int, slowPeriod int, maType MaType) []float64

APO - Absolute Price Oscillator

func ATR

func ATR(high []float64, low []float64, close []float64, period int) []float64

ATR is the Average True Range indicator.

func Acos

func Acos(input []float64) []float64
func Ad(high []float64, low []float64, close []float64, volume []float64) []float64

func AdOsc

func AdOsc(high []float64, low []float64, close []float64, volume []float64, fastPeriod int,
	slowPeriod int) []float64

func Add

func Add(input0, input1 []float64) []float64

func Aroon

func Aroon(high []float64, low []float64, period int) ([]float64, []float64)

func AroonOsc

func AroonOsc(high []float64, low []float64, period int) []float64

func Asin

func Asin(input []float64) []float64

func Atan

func Atan(input []float64) []float64

func AvgPrice

func AvgPrice(inOpen []float64, high []float64, low []float64, close []float64) []float64

func BB

func BB(input []float64, period int, deviation float64, maType MaType) ([]float64, []float64, []float64)

BB - Bollinger Bands

func BOP

func BOP(inOpen []float64, high []float64, low []float64, close []float64) []float64

BOP - Balance Of Power

func Beta

func Beta(input0 []float64, input1 []float64, period int) []float64

func CCI

func CCI(high []float64, low []float64, close []float64, period int) []float64

CCI - commodity channel index

func CMO

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

CMO - Chande Momentum Oscillator

func Ceil

func Ceil(input []float64) []float64

func Correl

func Correl(input0 []float64, input1 []float64, period int) []float64

func Cos

func Cos(input []float64) []float64

func Cosh

func Cosh(input []float64) []float64

func DEMA

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

DEMA - double exponential moving average

func DX

func DX(high []float64, low []float64, close []float64, period int) []float64

DX - Directional Movement Index

func Div

func Div(input0, input1 []float64) []float64

func EMA

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

EMA - exponential moving average

func Exp

func Exp(input []float64) []float64

func Floor

func Floor(input []float64) []float64

func HTDcPeriod

func HTDcPeriod(input []float64) []float64

func HTDcPhase

func HTDcPhase(input []float64) []float64

func HTPhasor

func HTPhasor(input []float64) ([]float64, []float64)

func HTSine

func HTSine(input []float64) ([]float64, []float64)

func HTTrendMode

func HTTrendMode(input []float64) []float64

func HTTrendline

func HTTrendline(input []float64) []float64

func KAMA

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

KAMA - Kaufman Adaptive Moving Average

func LinearReg

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

func LinearRegAngle

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

func LinearRegIntercept

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

func LinearRegSlope

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

func Ln

func Ln(input []float64) []float64

func Log10

func Log10(input []float64) []float64

func MA

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

MA - moving average

func MACD

func MACD(input []float64, fastPeriod int, slowPeriod int, signalPeriod int) ([]float64, []float64, []float64)

MACD - moving average convergence/divergence

func MACDExt

func MACDExt(input []float64, fastPeriod int, fastMAType MaType, slowPeriod int, inSlowMAType MaType,
	signalPeriod int, signalMAType MaType) ([]float64, []float64, []float64)

func MACDFix

func MACDFix(input []float64, signalPeriod int) ([]float64, []float64, []float64)

func MAMA

func MAMA(input []float64, fastLimit float64, slowLimit float64) ([]float64, []float64)

MAMA - moving average convergence/divergence

func MFI

func MFI(high []float64, low []float64, close []float64, volume []float64, period int) []float64

MFI - money flow index

func MaVp

func MaVp(input []float64, periods []float64, minPeriod int, maxPeriod int, maType MaType) []float64

func Max

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

func MaxIndex

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

func MedPrice

func MedPrice(high []float64, low []float64) []float64

func MidPoint

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

func MidPrice

func MidPrice(high []float64, low []float64, period int) []float64

func Min

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

func MinIndex

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

func MinMax

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

func MinMaxIndex

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

func MinusDI

func MinusDI(high []float64, low []float64, close []float64, period int) []float64

func MinusDM

func MinusDM(high []float64, low []float64, period int) []float64

func Momentum

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

func Mult

func Mult(input0, input1 []float64) []float64

func NATR

func NATR(high []float64, low []float64, close []float64, period int) []float64

NATR is the normalized Average True Range indicator.

func OBV

func OBV(input []float64, volume []float64) []float64

OBV is the On Balance Volume indicator.

func PPO

func PPO(input []float64, fastPeriod int, slowPeriod int, maType MaType) []float64

PPO - Percentage Price Oscillator

func PlusDI

func PlusDI(high []float64, low []float64, close []float64, period int) []float64

func PlusDM

func PlusDM(high []float64, low []float64, period int) []float64

func ROC

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

ROC - Rate of change : ((price/prevPrice)-1)*100

func ROCP

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

ROCP - Rate of change Percentage: (price-prevPrice)/prevPrice

func ROCR

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

ROCR - Rate of change ratio: (price/prevPrice)

func ROCR100

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

ROCR100 - Rate of change ratio 100 scale: (price/prevPrice)*100

func RSI

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

RSI - relative strength index.

func SAR

func SAR(high []float64, low []float64, inAcceleration float64, inMaximum float64) []float64

SAR - parabolic SAR

func SARExt

func SARExt(high []float64, low []float64,
	startValue float64,
	offsetOnReverse float64,
	accelerationInitLong float64,
	accelerationLong float64,
	accelerationMaxLong float64,
	accelerationInitShort float64,
	accelerationShort float64,
	accelerationMaxShort float64) []float64

func SMA

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

SMA - simple moving average

func Sin

func Sin(input []float64) []float64

func Sinh

func Sinh(input []float64) []float64

func Sqrt

func Sqrt(input []float64) []float64

func StdDev

func StdDev(input []float64, period int, inNbDev float64) []float64

func Stoch

func Stoch(high []float64, low []float64, close []float64, fastKPeriod int, slowKPeriod int,
	slowKMAType MaType, slowDPeriod int, slowDMAType MaType) ([]float64, []float64)

Stoch is slow stochastic indicator.

func StochF

func StochF(high []float64, low []float64, close []float64, fastKPeriod int, fastDPeriod int,
	fastDMAType MaType) ([]float64, []float64)

StochF is fast stochastic indicator.

func StochRSI

func StochRSI(input []float64, period int, fastKPeriod int, fastDPeriod int, fastDMAType MaType) ([]float64,
	[]float64)

StochRSI is stochastic RSI indicator.

func Sub

func Sub(input0, input1 []float64) []float64

func Sum

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

func SuperTrend

func SuperTrend(high, low, close []float64, atrPeriod int, factor float64) []float64

func T3

func T3(input []float64, period int, inVFactor float64) []float64

T3 - Triple Exponential Moving Average (T3)

func TEMA

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

TEMA - triple exponential moving average

func TRANGE

func TRANGE(high []float64, low []float64, close []float64) []float64

TRANGE is the True Range indicator.

func TRIMA

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

TRIMA - Triangular Moving Average

func TSF

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

TSF - Time Series Forecast

func Tan

func Tan(input []float64) []float64

func Tanh

func Tanh(input []float64) []float64

func Trix

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

func TypPrice

func TypPrice(high []float64, low []float64, close []float64) []float64

func UltOsc

func UltOsc(high []float64, low []float64, close []float64, period1 int, period2 int, period3 int) []float64

func Var

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

func WCLPrice

func WCLPrice(high []float64, low []float64, close []float64) []float64

func WMA

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

WMA - weighted moving average

func WilliamsR

func WilliamsR(high []float64, low []float64, close []float64, period int) []float64

WilliamsR - Williams %R indicator.

Types

type MaType

type MaType = talib.MaType

Jump to

Keyboard shortcuts

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