Documentation
¶
Overview ¶
Package tav provides a gopy-compatible wrapper for the github.com/banbox/banta/tav library. It modifies functions with multiple return values to return a single array of slices, making them suitable for Python bindings generation.
Index ¶
- func ADX(high, low, close []float64, period int) []float64
- func ADXBy(high, low, close []float64, period, smoothing, method int) []float64
- func ALMA(data []float64, period int, sigma, distOff float64) []float64
- func ATR(high, low, close []float64, period int) []float64
- func Aroon(high, low []float64, period int) [3][]float64
- func AvgDev(data []float64, period int) []float64
- func BBANDS(data []float64, period int, stdUp, stdDn float64) [3][]float64
- func CCI(data []float64, period int) []float64
- func CHOP(high, low, close []float64, period int) []float64
- func CMF(high, low, close, volume []float64, period int) []float64
- func CMO(data []float64, period int) []float64
- func CMOBy(data []float64, period int, maType int) []float64
- func CRSI(data []float64, period, upDn, rocVal int) []float64
- func CRSIBy(data []float64, period, upDn, rocVal, vtype int) []float64
- func CTI(data []float64, period int) []float64
- func Cross(data1 []float64, data2 []float64) []int
- func DV2(h, l, c []float64, period, maLen int) []float64
- func EMA(data []float64, period int) []float64
- func EMABy(data []float64, period int, initType int) []float64
- func ER(data []float64, period int) []float64
- func HL2(a, b []float64) []float64
- func HLC3(a, b, c []float64) []float64
- func HMA(data []float64, period int) []float64
- func HeikinAshi(open, high, low, close []float64) [4][]float64
- func Highest(data []float64, period int) []float64
- func HighestBar(data []float64, period int) []float64
- func KAMA(data []float64, period int) []float64
- func KAMABy(data []float64, period int, fast, slow int) []float64
- func KDJ(high, low, close []float64, period, sm1, sm2 int) [3][]float64
- func KDJBy(high, low, close []float64, period int, sm1 int, sm2 int, maBy string) [3][]float64
- func LinReg(data []float64, period int) []float64
- func LinRegAdv(data []float64, period int, angle, intercept, degrees, r, slope, tsf bool) []float64
- func Lowest(data []float64, period int) []float64
- func LowestBar(data []float64, period int) []float64
- func MACD(data []float64, fast, slow, smooth int) [2][]float64
- func MACDBy(data []float64, fast, slow, smooth, initType int) [2][]float64
- func MFI(high, low, close, volume []float64, period int) []float64
- func PercentRank(data []float64, period int) []float64
- func PluMinDI(high, low, close []float64, period int) [2][]float64
- func PluMinDM(high, low, cls []float64, period int) [2][]float64
- func RMA(data []float64, period int) []float64
- func RMABy(data []float64, period int, initType int, initVal float64) []float64
- func RMI(data []float64, period int, montLen int) []float64
- func ROC(data []float64, period int) []float64
- func RSI(data []float64, period int) []float64
- func RSIBy(data []float64, period int, subVal float64) []float64
- func SMA(data []float64, period int) []float64
- func STC(data []float64, period, fast, slow int, alpha float64) []float64
- func StdDev(data []float64, period int) []float64
- func StdDevBy(data []float64, period int, ddof int) [2][]float64
- func Stiffness(data []float64, maLen, stiffLen, stiffMa int) []float64
- func Stoch(high, low, close []float64, period int) []float64
- func StochRSI(obj []float64, rsiLen int, stochLen int, maK int, maD int) [2][]float64
- func Sum(data []float64, period int) []float64
- func TD(data []float64) []float64
- func TR(high, low, close []float64) []float64
- func UTBot(c, atr []float64, rate float64) []float64
- func UpDown(data []float64, vtype int) []float64
- func VWMA(price []float64, volume []float64, period int) []float64
- func WMA(data []float64, period int) []float64
- func WillR(high, low, close []float64, period int) []float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aroon ¶
Aroon calculates the Aroon Indicator. Returns [3][]float64{aroonUp, aroonDown, aroonOscillator}.
func BBANDS ¶
BBANDS calculates Bollinger Bands. Returns [3][]float64{upperBand, middleBand, lowerBand}.
func HeikinAshi ¶
HeikinAshi calculates Heikin-Ashi candlesticks. Returns [4][]float64{haOpen, haHigh, haLow, haClose}.
func HighestBar ¶
HighestBar finds the offset to the highest value bar over a specified period.
func KDJBy ¶
KDJBy calculates the KDJ indicator with a specified MA type. Returns [3][]float64{k, d, rsv}.
func MACD ¶
MACD calculates the Moving Average Convergence Divergence. Returns [2][]float64{macd, signal}.
func MACDBy ¶
MACDBy calculates the MACD with a specified initialization type. Returns [2][]float64{macd, signal}.
func PercentRank ¶
PercentRank calculates the percentile rank of the current value over a period.
func PluMinDI ¶
PluMinDI calculates the Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI). Returns [2][]float64{plusDI, minusDI}.
func PluMinDM ¶
PluMinDM calculates the Plus Directional Movement (+DM) and Minus Directional Movement (-DM). Returns [2][]float64{plusDM, minusDM}.
func StdDevBy ¶
StdDevBy calculates the Standard Deviation with a specified delta degrees of freedom (ddof). Returns [2][]float64{stddev, mean}.
Types ¶
This section is empty.