ta

package
v0.0.0-...-e3e60e4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeMaType

func ChangeMaType(ma string) MaType

Types

type RootModule

type RootModule struct{}

RootModule is the global module instance that will create module instances for each VU.

func New

func New() *RootModule

New returns a pointer to a new RootModule instance.

func (*RootModule) NewModuleInstance

func (*RootModule) NewModuleInstance(vu modules.VU) modules.Instance

NewModuleInstance implements the modules.Module interface to return a new instance for each VU.

type Ta

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

Crypto represents an instance of the crypto module.

func (Ta) Adx

func (ta Ta) Adx(h, l, c floats.Slice, n int64) floats.Slice

func (Ta) Apo

func (ta Ta) Apo(t MaType, in floats.Slice, fastN, slowN int64) floats.Slice

func (Ta) Aroon

func (ta Ta) Aroon(h, l floats.Slice, n int64) (floats.Slice, floats.Slice)

func (Ta) AroonOsc

func (ta Ta) AroonOsc(h, l floats.Slice, n int64) floats.Slice

func (Ta) Atr

func (ta Ta) Atr(h, l, c floats.Slice, n int64) floats.Slice

func (Ta) BBands

func (ta Ta) BBands(ma string, in floats.Slice, n int64, upNStdDev, dnNStdDev float64) map[string]floats.Slice

func (Ta) Cci

func (ta Ta) Cci(h, l, c floats.Slice, n int64) floats.Slice

func (Ta) Change

func (ta Ta) Change(args ...any) any

func (Ta) Cmo

func (ta Ta) Cmo(in floats.Slice, n int64) floats.Slice

func (Ta) DWma

func (ta Ta) DWma(in floats.Slice, n int64) floats.Slice

双重wma

func (Ta) Dema

func (ta Ta) Dema(in floats.Slice, n int64) floats.Slice

func (Ta) Dev

func (ta Ta) Dev(in floats.Slice, n int64) floats.Slice

func (Ta) Diff

func (ta Ta) Diff(in floats.Slice, n int64) floats.Slice

func (Ta) Dx

func (ta Ta) Dx(h, l, c floats.Slice, n int64) floats.Slice

func (Ta) Ema

func (ta Ta) Ema(in floats.Slice, n int64) floats.Slice

func (*Ta) Exports

func (c *Ta) Exports() modules.Exports

Exports returns the exports of the execution module.

func (Ta) Hma

func (ta Ta) Hma(in floats.Slice, n int64) floats.Slice

alma

func (Ta) Jma

func (ta Ta) Jma(in floats.Slice, n int64, phase float64, power float64) floats.Slice

func (Ta) Kama

func (ta Ta) Kama(in floats.Slice, n int64) floats.Slice

func (Ta) Macd

func (ta Ta) Macd(in floats.Slice, fastN, slowN, signalN int64) (floats.Slice, floats.Slice, floats.Slice)

func (Ta) Natr

func (ta Ta) Natr(h, l, c floats.Slice, n int64) floats.Slice

func (Ta) Obv

func (ta Ta) Obv(c, v floats.Slice) floats.Slice

func (Ta) Ppo

func (ta Ta) Ppo(in floats.Slice, t MaType, fastN, slowN int64) floats.Slice

func (Ta) Roc

func (ta Ta) Roc(in floats.Slice, n int64) floats.Slice

func (Ta) Rsi

func (ta Ta) Rsi(in floats.Slice, n int64) floats.Slice

func (Ta) Sma

func (ta Ta) Sma(in floats.Slice, n int64) floats.Slice

func (Ta) StdDev

func (ta Ta) StdDev(in floats.Slice, n int64) floats.Slice

func (Ta) StochRsi

func (ta Ta) StochRsi(in floats.Slice, n, kN int64, dt MaType, dN int64) (floats.Slice, floats.Slice)

func (Ta) TRange

func (ta Ta) TRange(h, l, c floats.Slice) floats.Slice

func (Ta) Trima

func (ta Ta) Trima(in floats.Slice, n int64) floats.Slice

func (Ta) Trix

func (ta Ta) Trix(in floats.Slice, n int64) floats.Slice

func (Ta) UltOsc

func (ta Ta) UltOsc(h, l, c floats.Slice, n1, n2, n3 int64) floats.Slice

func (Ta) Var

func (ta Ta) Var(in floats.Slice, n int64) floats.Slice

func (Ta) WillR

func (ta Ta) WillR(h, l, c floats.Slice, n int64) floats.Slice

func (Ta) Wma

func (ta Ta) Wma(in floats.Slice, n int64) floats.Slice

Jump to

Keyboard shortcuts

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