goex_talib

package module
v0.0.0-...-2dd4755 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

goex_talib

goex 指标库,基于github.com/markcheno/go-talib的适配goex库

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atr

func Atr(data []goex.Kline, inTimePeriod int) []float64

func Boll

func Boll(data []goex.Kline, inTimePeriod int, deviation float64, priceTy PriceType) (up, middle, low []float64)

func Ma

func Ma(data []goex.Kline, inTimePeriod int, maType talib.MaType, priceTy PriceType) []float64

Ma talib.MaType: 1. SMA: 简单移动均线 2. EMA: 指数移动平均线 3. WMA: 加权移动均线 4. DEMA: 双重指数移动平均线 5. TEMA: 三重指数移动平均线

func Macd

func Macd(data []goex.Kline, inFastPeriod int, inSlowPeriod int, inSignalPeriod int, priceTy PriceType) (DIF, DEA, MACD []float64)

func Rsi

func Rsi(data []goex.Kline, inTimePeriod int, priceTy PriceType) []float64

func Stoch

func Stoch(data []goex.Kline, fastKPeriod, slowKPeriod int, slowKMaty talib.MaType, slowDPeriod int, slowDMAty talib.MaType) (outSlowK []float64, outSlowD []float64)

Stoch KD指标: slowK,slowD两条线 KDJ指标:J=3*slowK-2*slowD

Types

type PriceType

type PriceType int
const (
	InClose PriceType = iota + 1
	InHigh
	InLow
	InOpen
)

Jump to

Keyboard shortcuts

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