ta

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapFloatArr

func WrapFloatArr(res *Series, period int, inVal float64) []float64

Types

type BarEnv

type BarEnv = banta.BarEnv

type CrossLog added in v0.3.1

type CrossLog = banta.CrossLog

type Series

type Series = banta.Series

--- 封装函数 ---

func ADL

func ADL(env *BarEnv) Series

func ADX

func ADX(high *Series, low *Series, close *Series, period int) Series

func ADXBy

func ADXBy(high *Series, low *Series, close *Series, period, smoothing, method int) Series

func ALMA

func ALMA(obj *Series, period int, sigma, distOff float64) Series

func ATR

func ATR(high *Series, low *Series, close *Series, period int) Series

func Aroon

func Aroon(high *Series, low *Series, period int) [3]Series

func AvgDev

func AvgDev(obj *Series, period int) Series

func AvgPrice

func AvgPrice(e *BarEnv) Series

func BBANDS

func BBANDS(obj *Series, period int, stdUp, stdDn float64) [3]Series

func CCI

func CCI(obj *Series, period int) Series

func CHOP

func CHOP(e *BarEnv, period int) Series

func CMF

func CMF(env *BarEnv, period int) Series

func CMO

func CMO(obj *Series, period int) Series

func CMOBy

func CMOBy(obj *Series, period int, maType int) Series

func CRSI

func CRSI(obj *Series, period, upDn, roc int) Series

func CRSIBy

func CRSIBy(obj *Series, period, upDn, roc, vtype int) Series

func CTI

func CTI(obj *Series, period int) Series

func ChaikinOsc

func ChaikinOsc(env *BarEnv, sml int, big int) Series

func DV2

func DV2(h, l, c *Series, period, maLen int) Series

func EMA

func EMA(obj *Series, period int) Series

func EMABy

func EMABy(obj *Series, period int, initType int) Series

func ER

func ER(obj *Series, period int) Series

func HL2

func HL2(h, l *Series) Series

func HLC3

func HLC3(h, l, c *Series) Series

func HMA

func HMA(obj *Series, period int) Series

func HeikinAshi

func HeikinAshi(e *BarEnv) [4]Series

func Highest

func Highest(obj *Series, period int) Series

func HighestBar

func HighestBar(obj *Series, period int) Series

func KAMA

func KAMA(obj *Series, period int) Series

func KAMABy

func KAMABy(obj *Series, period int, fast, slow int) Series

func KDJ

func KDJ(high *Series, low *Series, close *Series, period int, sm1 int, sm2 int) [3]Series

func KDJBy

func KDJBy(high *Series, low *Series, close *Series, period int, sm1 int, sm2 int, maBy string) [3]Series

func LinReg

func LinReg(obj *Series, period int) Series

func LinRegAdv

func LinRegAdv(obj *Series, period int, angle, intercept, degrees, r, slope, tsf bool) Series

func Lowest

func Lowest(obj *Series, period int) Series

func LowestBar

func LowestBar(obj *Series, period int) Series

func MACD

func MACD(obj *Series, fast int, slow int, smooth int) [2]Series

func MACDBy

func MACDBy(obj *Series, fast int, slow int, smooth int, initType int) [2]Series

func MFI

func MFI(e *BarEnv, period int) Series

func PercentRank

func PercentRank(obj *Series, period int) Series

func PluMinDI

func PluMinDI(high *Series, low *Series, close *Series, period int) [2]Series

func PluMinDM

func PluMinDM(high *Series, low *Series, close *Series, period int) [2]Series

func RMA

func RMA(obj *Series, period int) Series

func RMABy

func RMABy(obj *Series, period int, initType int, initVal float64) Series

func RMI

func RMI(obj *Series, period int, montLen int) Series

func ROC

func ROC(obj *Series, period int) Series

func RSI

func RSI(obj *Series, period int) Series

func RSI50

func RSI50(obj *Series, period int) Series

func SMA

func SMA(obj *Series, period int) Series

func STC

func STC(obj *Series, period, fast, slow int, alpha float64) Series

func StdDev

func StdDev(obj *Series, period int) Series

func StdDevBy

func StdDevBy(obj *Series, period int, ddof int) [2]Series

func Stiffness

func Stiffness(obj *Series, maLen, stiffLen, stiffMa int) Series

func Stoch

func Stoch(high, low, close *Series, period int) Series

func StochRSI

func StochRSI(obj *Series, rsiLen int, stochLen int, maK int, maD int) [2]Series

func Sum

func Sum(obj *Series, period int) Series

func TD

func TD(obj *Series) Series

func TR

func TR(high *Series, low *Series, close *Series) Series

func UTBot

func UTBot(c, atr *Series, rate float64) Series

func UpDown

func UpDown(obj *Series, vtype int) Series

func VWMA

func VWMA(price *Series, vol *Series, period int) Series

func WMA

func WMA(obj *Series, period int) Series

func WillR

func WillR(e *BarEnv, period int) Series

Jump to

Keyboard shortcuts

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