Documentation
¶
Index ¶
- Constants
- func Accbands(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outRealUpperBand []float64, outRealMiddleBand []float64, ...)
- func AccbandsLookback(timePeriod int) int
- func Acos(in []float64, realBuf []float64) (outReal []float64)
- func AcosLookback() int
- func Ad(high []float64, low []float64, closePrice []float64, volume []float64, ...) (outReal []float64)
- func AdLookback() int
- func Add(in0 []float64, in1 []float64, realBuf []float64) (outReal []float64)
- func AddLookback() int
- func Adosc(high []float64, low []float64, closePrice []float64, volume []float64, ...) (outReal []float64)
- func AdoscLookback(fastPeriod int, slowPeriod int) int
- func Adx(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func AdxLookback(timePeriod int) int
- func Adxr(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func AdxrLookback(timePeriod int) int
- func Apo(in []float64, fastPeriod int, slowPeriod int, mAType int, realBuf []float64) (outReal []float64)
- func ApoLookback(fastPeriod int, slowPeriod int, mAType int) int
- func Aroon(high []float64, low []float64, timePeriod int, aroonDownBuf []float64, ...) (outAroonDown []float64, outAroonUp []float64)
- func AroonLookback(timePeriod int) int
- func Aroonosc(high []float64, low []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func AroonoscLookback(timePeriod int) int
- func Asin(in []float64, realBuf []float64) (outReal []float64)
- func AsinLookback() int
- func Atan(in []float64, realBuf []float64) (outReal []float64)
- func AtanLookback() int
- func Atr(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func AtrLookback(timePeriod int) int
- func Avgdev(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func AvgdevLookback(timePeriod int) int
- func Avgprice(open []float64, high []float64, low []float64, closePrice []float64, ...) (outReal []float64)
- func AvgpriceLookback() int
- func Bbands(in []float64, timePeriod int, nbDevUp float64, nbDevDn float64, mAType int, ...) (outRealUpperBand []float64, outRealMiddleBand []float64, ...)
- func BbandsLookback(timePeriod int, nbDevUp float64, nbDevDn float64, mAType int) int
- func Beta(in0 []float64, in1 []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func BetaLookback(timePeriod int) int
- func Bop(open []float64, high []float64, low []float64, closePrice []float64, ...) (outReal []float64)
- func BopLookback() int
- func Cci(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func CciLookback(timePeriod int) int
- func Cdl2crows(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl2crowsLookback() int
- func Cdl3blackcrows(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl3blackcrowsLookback() int
- func Cdl3inside(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl3insideLookback() int
- func Cdl3linestrike(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl3linestrikeLookback() int
- func Cdl3outside(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl3outsideLookback() int
- func Cdl3starsinsouth(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl3starsinsouthLookback() int
- func Cdl3whitesoldiers(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdl3whitesoldiersLookback() int
- func Cdlabandonedbaby(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlabandonedbabyLookback(penetration float64) int
- func Cdladvanceblock(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdladvanceblockLookback() int
- func Cdlbelthold(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlbeltholdLookback() int
- func Cdlbreakaway(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlbreakawayLookback() int
- func Cdlclosingmarubozu(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlclosingmarubozuLookback() int
- func Cdlconcealbabyswall(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlconcealbabyswallLookback() int
- func Cdlcounterattack(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlcounterattackLookback() int
- func Cdldarkcloudcover(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdldarkcloudcoverLookback(penetration float64) int
- func Cdldoji(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdldojiLookback() int
- func Cdldojistar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdldojistarLookback() int
- func Cdldragonflydoji(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdldragonflydojiLookback() int
- func Cdlengulfing(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlengulfingLookback() int
- func Cdleveningdojistar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdleveningdojistarLookback(penetration float64) int
- func Cdleveningstar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdleveningstarLookback(penetration float64) int
- func Cdlgapsidesidewhite(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlgapsidesidewhiteLookback() int
- func Cdlgravestonedoji(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlgravestonedojiLookback() int
- func Cdlhammer(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlhammerLookback() int
- func Cdlhangingman(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlhangingmanLookback() int
- func Cdlharami(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlharamiLookback() int
- func Cdlharamicross(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlharamicrossLookback() int
- func Cdlhighwave(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlhighwaveLookback() int
- func Cdlhikkake(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlhikkakeLookback() int
- func Cdlhikkakemod(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlhikkakemodLookback() int
- func Cdlhomingpigeon(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlhomingpigeonLookback() int
- func Cdlidentical3crows(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdlidentical3crowsLookback() int
- func Cdlinneck(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlinneckLookback() int
- func Cdlinvertedhammer(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlinvertedhammerLookback() int
- func Cdlkicking(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlkickingLookback() int
- func Cdlkickingbylength(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlkickingbylengthLookback() int
- func Cdlladderbottom(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlladderbottomLookback() int
- func Cdllongleggeddoji(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdllongleggeddojiLookback() int
- func Cdllongline(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdllonglineLookback() int
- func Cdlmarubozu(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlmarubozuLookback() int
- func Cdlmatchinglow(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlmatchinglowLookback() int
- func Cdlmathold(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlmatholdLookback(penetration float64) int
- func Cdlmorningdojistar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlmorningdojistarLookback(penetration float64) int
- func Cdlmorningstar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlmorningstarLookback(penetration float64) int
- func Cdlonneck(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlonneckLookback() int
- func Cdlpiercing(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlpiercingLookback() int
- func Cdlrickshawman(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlrickshawmanLookback() int
- func Cdlrisefall3methods(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdlrisefall3methodsLookback() int
- func Cdlseparatinglines(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlseparatinglinesLookback() int
- func Cdlshootingstar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlshootingstarLookback() int
- func Cdlshortline(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlshortlineLookback() int
- func Cdlspinningtop(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlspinningtopLookback() int
- func Cdlstalledpattern(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlstalledpatternLookback() int
- func Cdlsticksandwich(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlsticksandwichLookback() int
- func Cdltakuri(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdltakuriLookback() int
- func Cdltasukigap(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdltasukigapLookback() int
- func Cdlthrusting(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdlthrustingLookback() int
- func Cdltristar(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func CdltristarLookback() int
- func Cdlunique3river(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdlunique3riverLookback() int
- func Cdlupsidegap2crows(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdlupsidegap2crowsLookback() int
- func Cdlxsidegap3methods(open []float64, high []float64, low []float64, closePrice []float64, ...) (outInteger []int32)
- func Cdlxsidegap3methodsLookback() int
- func Ceil(in []float64, realBuf []float64) (outReal []float64)
- func CeilLookback() int
- func Cmo(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func CmoLookback(timePeriod int) int
- func Correl(in0 []float64, in1 []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func CorrelLookback(timePeriod int) int
- func Cos(in []float64, realBuf []float64) (outReal []float64)
- func CosLookback() int
- func Cosh(in []float64, realBuf []float64) (outReal []float64)
- func CoshLookback() int
- func Dema(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func DemaLookback(timePeriod int) int
- func Div(in0 []float64, in1 []float64, realBuf []float64) (outReal []float64)
- func DivLookback() int
- func Dx(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func DxLookback(timePeriod int) int
- func Ema(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func EmaLookback(timePeriod int) int
- func Exp(in []float64, realBuf []float64) (outReal []float64)
- func ExpLookback() int
- func Floor(in []float64, realBuf []float64) (outReal []float64)
- func FloorLookback() int
- func HtDcperiod(in []float64, realBuf []float64) (outReal []float64)
- func HtDcperiodLookback() int
- func HtDcphase(in []float64, realBuf []float64) (outReal []float64)
- func HtDcphaseLookback() int
- func HtPhasor(in []float64, inPhaseBuf []float64, quadratureBuf []float64) (outInPhase []float64, outQuadrature []float64)
- func HtPhasorLookback() int
- func HtSine(in []float64, sineBuf []float64, leadSineBuf []float64) (outSine []float64, outLeadSine []float64)
- func HtSineLookback() int
- func HtTrendline(in []float64, realBuf []float64) (outReal []float64)
- func HtTrendlineLookback() int
- func HtTrendmode(in []float64, integerBuf []int32) (outInteger []int32)
- func HtTrendmodeLookback() int
- func Imi(open []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func ImiLookback(timePeriod int) int
- func Kama(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func KamaLookback(timePeriod int) int
- func Linearreg(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func LinearregAngle(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func LinearregAngleLookback(timePeriod int) int
- func LinearregIntercept(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func LinearregInterceptLookback(timePeriod int) int
- func LinearregLookback(timePeriod int) int
- func LinearregSlope(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func LinearregSlopeLookback(timePeriod int) int
- func Ln(in []float64, realBuf []float64) (outReal []float64)
- func LnLookback() int
- func Log10(in []float64, realBuf []float64) (outReal []float64)
- func Log10Lookback() int
- func Ma(in []float64, timePeriod int, mAType int, realBuf []float64) (outReal []float64)
- func MaLookback(timePeriod int, mAType int) int
- func Macd(in []float64, fastPeriod int, slowPeriod int, signalPeriod int, ...) (outMACD []float64, outMACDSignal []float64, outMACDHist []float64)
- func MacdLookback(fastPeriod int, slowPeriod int, signalPeriod int) int
- func Macdext(in []float64, fastPeriod int, fastMAType int, slowPeriod int, slowMAType int, ...) (outMACD []float64, outMACDSignal []float64, outMACDHist []float64)
- func MacdextLookback(fastPeriod int, fastMAType int, slowPeriod int, slowMAType int, ...) int
- func Macdfix(in []float64, signalPeriod int, macdBuf []float64, macdSignalBuf []float64, ...) (outMACD []float64, outMACDSignal []float64, outMACDHist []float64)
- func MacdfixLookback(signalPeriod int) int
- func Mama(in []float64, fastLimit float64, slowLimit float64, mamaBuf []float64, ...) (outMAMA []float64, outFAMA []float64)
- func MamaLookback(fastLimit float64, slowLimit float64) int
- func Mavp(in []float64, periods []float64, minPeriod int, maxPeriod int, mAType int, ...) (outReal []float64)
- func MavpLookback(minPeriod int, maxPeriod int, mAType int) int
- func Max(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func MaxLookback(timePeriod int) int
- func Maxindex(in []float64, timePeriod int, integerBuf []int32) (outInteger []int32)
- func MaxindexLookback(timePeriod int) int
- func Medprice(high []float64, low []float64, realBuf []float64) (outReal []float64)
- func MedpriceLookback() int
- func Mfi(high []float64, low []float64, closePrice []float64, volume []float64, ...) (outReal []float64)
- func MfiLookback(timePeriod int) int
- func Midpoint(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func MidpointLookback(timePeriod int) int
- func Midprice(high []float64, low []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func MidpriceLookback(timePeriod int) int
- func Min(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func MinLookback(timePeriod int) int
- func Minindex(in []float64, timePeriod int, integerBuf []int32) (outInteger []int32)
- func MinindexLookback(timePeriod int) int
- func Minmax(in []float64, timePeriod int, minBuf []float64, maxBuf []float64) (outMin []float64, outMax []float64)
- func MinmaxLookback(timePeriod int) int
- func Minmaxindex(in []float64, timePeriod int, minIdxBuf []int32, maxIdxBuf []int32) (outMinIdx []int32, outMaxIdx []int32)
- func MinmaxindexLookback(timePeriod int) int
- func MinusDi(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func MinusDiLookback(timePeriod int) int
- func MinusDm(high []float64, low []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func MinusDmLookback(timePeriod int) int
- func Mom(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func MomLookback(timePeriod int) int
- func Mult(in0 []float64, in1 []float64, realBuf []float64) (outReal []float64)
- func MultLookback() int
- func Natr(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func NatrLookback(timePeriod int) int
- func Obv(in []float64, volume []float64, realBuf []float64) (outReal []float64)
- func ObvLookback() int
- func PlusDi(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func PlusDiLookback(timePeriod int) int
- func PlusDm(high []float64, low []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func PlusDmLookback(timePeriod int) int
- func Ppo(in []float64, fastPeriod int, slowPeriod int, mAType int, realBuf []float64) (outReal []float64)
- func PpoLookback(fastPeriod int, slowPeriod int, mAType int) int
- func Roc(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func RocLookback(timePeriod int) int
- func Rocp(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func RocpLookback(timePeriod int) int
- func Rocr(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func Rocr100(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func Rocr100Lookback(timePeriod int) int
- func RocrLookback(timePeriod int) int
- func Rsi(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func RsiLookback(timePeriod int) int
- func Sar(high []float64, low []float64, acceleration float64, maximum float64, ...) (outReal []float64)
- func SarLookback(acceleration float64, maximum float64) int
- func Sarext(high []float64, low []float64, startValue float64, offsetOnReverse float64, ...) (outReal []float64)
- func SarextLookback(startValue float64, offsetOnReverse float64, accelerationInitLong float64, ...) int
- func Sin(in []float64, realBuf []float64) (outReal []float64)
- func SinLookback() int
- func Sinh(in []float64, realBuf []float64) (outReal []float64)
- func SinhLookback() int
- func Sma(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func SmaLookback(timePeriod int) int
- func Sqrt(in []float64, realBuf []float64) (outReal []float64)
- func SqrtLookback() int
- func Stddev(in []float64, timePeriod int, nbDev float64, realBuf []float64) (outReal []float64)
- func StddevLookback(timePeriod int, nbDev float64) int
- func Stoch(high []float64, low []float64, closePrice []float64, fastK_Period int, ...) (outSlowK []float64, outSlowD []float64)
- func StochLookback(fastK_Period int, slowK_Period int, slowK_MAType int, slowD_Period int, ...) int
- func Stochf(high []float64, low []float64, closePrice []float64, fastK_Period int, ...) (outFastK []float64, outFastD []float64)
- func StochfLookback(fastK_Period int, fastD_Period int, fastD_MAType int) int
- func Stochrsi(in []float64, timePeriod int, fastK_Period int, fastD_Period int, ...) (outFastK []float64, outFastD []float64)
- func StochrsiLookback(timePeriod int, fastK_Period int, fastD_Period int, fastD_MAType int) int
- func Sub(in0 []float64, in1 []float64, realBuf []float64) (outReal []float64)
- func SubLookback() int
- func Sum(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func SumLookback(timePeriod int) int
- func T3(in []float64, timePeriod int, vFactor float64, realBuf []float64) (outReal []float64)
- func T3Lookback(timePeriod int, vFactor float64) int
- func Tan(in []float64, realBuf []float64) (outReal []float64)
- func TanLookback() int
- func Tanh(in []float64, realBuf []float64) (outReal []float64)
- func TanhLookback() int
- func Tema(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func TemaLookback(timePeriod int) int
- func Trange(high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
- func TrangeLookback() int
- func Trima(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func TrimaLookback(timePeriod int) int
- func Trix(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func TrixLookback(timePeriod int) int
- func Tsf(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func TsfLookback(timePeriod int) int
- func Typprice(high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
- func TyppriceLookback() int
- func Ultosc(high []float64, low []float64, closePrice []float64, timePeriod1 int, ...) (outReal []float64)
- func UltoscLookback(timePeriod1 int, timePeriod2 int, timePeriod3 int) int
- func Var(in []float64, timePeriod int, nbDev float64, realBuf []float64) (outReal []float64)
- func VarLookback(timePeriod int, nbDev float64) int
- func Wclprice(high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
- func WclpriceLookback() int
- func Willr(high []float64, low []float64, closePrice []float64, timePeriod int, ...) (outReal []float64)
- func WillrLookback(timePeriod int) int
- func Wma(in []float64, timePeriod int, realBuf []float64) (outReal []float64)
- func WmaLookback(timePeriod int) int
- type TALibError
Constants ¶
const TALibVersion = "0.6.4"
TALibVersion is the version of the TA-Lib C library embedded in this module.
Variables ¶
This section is empty.
Functions ¶
func Accbands ¶
func Accbands(high []float64, low []float64, closePrice []float64, timePeriod int, upperBandBuf []float64, middleBandBuf []float64, lowerBandBuf []float64) (outRealUpperBand []float64, outRealMiddleBand []float64, outRealLowerBand []float64)
Accbands - Acceleration Bands
Input = High, Low, Close
Output = double, double, double
Parameters:
- timePeriod (2 to 100000): Number of period
func AccbandsLookback ¶
AccbandsLookback returns the number of input values consumed before the first valid output.
func AcosLookback ¶
func AcosLookback() int
AcosLookback returns the number of input values consumed before the first valid output.
func Ad ¶
func Ad(high []float64, low []float64, closePrice []float64, volume []float64, realBuf []float64) (outReal []float64)
Ad - Chaikin A/D Line
Input = High, Low, Close, Volume
Output = double
func AdLookback ¶
func AdLookback() int
AdLookback returns the number of input values consumed before the first valid output.
func AddLookback ¶
func AddLookback() int
AddLookback returns the number of input values consumed before the first valid output.
func Adosc ¶
func Adosc(high []float64, low []float64, closePrice []float64, volume []float64, fastPeriod int, slowPeriod int, realBuf []float64) (outReal []float64)
Adosc - Chaikin A/D Oscillator
Input = High, Low, Close, Volume
Output = double
Parameters:
- fastPeriod (2 to 100000): Number of period for the fast MA
- slowPeriod (2 to 100000): Number of period for the slow MA
func AdoscLookback ¶
AdoscLookback returns the number of input values consumed before the first valid output.
func Adx ¶
func Adx(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Adx - Average Directional Movement Index
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func AdxLookback ¶
AdxLookback returns the number of input values consumed before the first valid output.
func Adxr ¶
func Adxr(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Adxr - Average Directional Movement Index Rating
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func AdxrLookback ¶
AdxrLookback returns the number of input values consumed before the first valid output.
func Apo ¶
func Apo(in []float64, fastPeriod int, slowPeriod int, mAType int, realBuf []float64) (outReal []float64)
Apo - Absolute Price Oscillator
Input = double
Output = double
Parameters:
- fastPeriod (2 to 100000): Number of period for the fast MA
- slowPeriod (2 to 100000): Number of period for the slow MA
- mAType: Type of Moving Average
func ApoLookback ¶
ApoLookback returns the number of input values consumed before the first valid output.
func Aroon ¶
func Aroon(high []float64, low []float64, timePeriod int, aroonDownBuf []float64, aroonUpBuf []float64) (outAroonDown []float64, outAroonUp []float64)
Aroon - Aroon
Input = High, Low
Output = double, double
Parameters:
- timePeriod (2 to 100000): Number of period
func AroonLookback ¶
AroonLookback returns the number of input values consumed before the first valid output.
func Aroonosc ¶
Aroonosc - Aroon Oscillator
Input = High, Low
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func AroonoscLookback ¶
AroonoscLookback returns the number of input values consumed before the first valid output.
func AsinLookback ¶
func AsinLookback() int
AsinLookback returns the number of input values consumed before the first valid output.
func AtanLookback ¶
func AtanLookback() int
AtanLookback returns the number of input values consumed before the first valid output.
func Atr ¶
func Atr(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Atr - Average True Range
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func AtrLookback ¶
AtrLookback returns the number of input values consumed before the first valid output.
func Avgdev ¶
Avgdev - Average Deviation
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func AvgdevLookback ¶
AvgdevLookback returns the number of input values consumed before the first valid output.
func Avgprice ¶
func Avgprice(open []float64, high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
Avgprice - Average Price
Input = Open, High, Low, Close
Output = double
func AvgpriceLookback ¶
func AvgpriceLookback() int
AvgpriceLookback returns the number of input values consumed before the first valid output.
func Bbands ¶
func Bbands(in []float64, timePeriod int, nbDevUp float64, nbDevDn float64, mAType int, upperBandBuf []float64, middleBandBuf []float64, lowerBandBuf []float64) (outRealUpperBand []float64, outRealMiddleBand []float64, outRealLowerBand []float64)
Bbands - Bollinger Bands
Input = double
Output = double, double, double
Parameters:
- timePeriod (2 to 100000): Number of period
- nbDevUp (TA_REAL_MIN to TA_REAL_MAX): Deviation multiplier for upper band
- nbDevDn (TA_REAL_MIN to TA_REAL_MAX): Deviation multiplier for lower band
- mAType: Type of Moving Average
func BbandsLookback ¶
BbandsLookback returns the number of input values consumed before the first valid output.
func Beta ¶
Beta - Beta
Input = double, double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func BetaLookback ¶
BetaLookback returns the number of input values consumed before the first valid output.
func Bop ¶
func Bop(open []float64, high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
Bop - Balance Of Power
Input = Open, High, Low, Close
Output = double
func BopLookback ¶
func BopLookback() int
BopLookback returns the number of input values consumed before the first valid output.
func Cci ¶
func Cci(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Cci - Commodity Channel Index
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func CciLookback ¶
CciLookback returns the number of input values consumed before the first valid output.
func Cdl2crows ¶
func Cdl2crows(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl2crows - Two Crows
Input = Open, High, Low, Close
Output = int
func Cdl2crowsLookback ¶
func Cdl2crowsLookback() int
Cdl2crowsLookback returns the number of input values consumed before the first valid output.
func Cdl3blackcrows ¶
func Cdl3blackcrows(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl3blackcrows - Three Black Crows
Input = Open, High, Low, Close
Output = int
func Cdl3blackcrowsLookback ¶
func Cdl3blackcrowsLookback() int
Cdl3blackcrowsLookback returns the number of input values consumed before the first valid output.
func Cdl3inside ¶
func Cdl3inside(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl3inside - Three Inside Up/Down
Input = Open, High, Low, Close
Output = int
func Cdl3insideLookback ¶
func Cdl3insideLookback() int
Cdl3insideLookback returns the number of input values consumed before the first valid output.
func Cdl3linestrike ¶
func Cdl3linestrike(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl3linestrike - Three-Line Strike
Input = Open, High, Low, Close
Output = int
func Cdl3linestrikeLookback ¶
func Cdl3linestrikeLookback() int
Cdl3linestrikeLookback returns the number of input values consumed before the first valid output.
func Cdl3outside ¶
func Cdl3outside(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl3outside - Three Outside Up/Down
Input = Open, High, Low, Close
Output = int
func Cdl3outsideLookback ¶
func Cdl3outsideLookback() int
Cdl3outsideLookback returns the number of input values consumed before the first valid output.
func Cdl3starsinsouth ¶
func Cdl3starsinsouth(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl3starsinsouth - Three Stars In The South
Input = Open, High, Low, Close
Output = int
func Cdl3starsinsouthLookback ¶
func Cdl3starsinsouthLookback() int
Cdl3starsinsouthLookback returns the number of input values consumed before the first valid output.
func Cdl3whitesoldiers ¶
func Cdl3whitesoldiers(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdl3whitesoldiers - Three Advancing White Soldiers
Input = Open, High, Low, Close
Output = int
func Cdl3whitesoldiersLookback ¶
func Cdl3whitesoldiersLookback() int
Cdl3whitesoldiersLookback returns the number of input values consumed before the first valid output.
func Cdlabandonedbaby ¶
func Cdlabandonedbaby(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdlabandonedbaby - Abandoned Baby
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdlabandonedbabyLookback ¶
CdlabandonedbabyLookback returns the number of input values consumed before the first valid output.
func Cdladvanceblock ¶
func Cdladvanceblock(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdladvanceblock - Advance Block
Input = Open, High, Low, Close
Output = int
func CdladvanceblockLookback ¶
func CdladvanceblockLookback() int
CdladvanceblockLookback returns the number of input values consumed before the first valid output.
func Cdlbelthold ¶
func Cdlbelthold(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlbelthold - Belt-hold
Input = Open, High, Low, Close
Output = int
func CdlbeltholdLookback ¶
func CdlbeltholdLookback() int
CdlbeltholdLookback returns the number of input values consumed before the first valid output.
func Cdlbreakaway ¶
func Cdlbreakaway(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlbreakaway - Breakaway
Input = Open, High, Low, Close
Output = int
func CdlbreakawayLookback ¶
func CdlbreakawayLookback() int
CdlbreakawayLookback returns the number of input values consumed before the first valid output.
func Cdlclosingmarubozu ¶
func Cdlclosingmarubozu(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlclosingmarubozu - Closing Marubozu
Input = Open, High, Low, Close
Output = int
func CdlclosingmarubozuLookback ¶
func CdlclosingmarubozuLookback() int
CdlclosingmarubozuLookback returns the number of input values consumed before the first valid output.
func Cdlconcealbabyswall ¶
func Cdlconcealbabyswall(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlconcealbabyswall - Concealing Baby Swallow
Input = Open, High, Low, Close
Output = int
func CdlconcealbabyswallLookback ¶
func CdlconcealbabyswallLookback() int
CdlconcealbabyswallLookback returns the number of input values consumed before the first valid output.
func Cdlcounterattack ¶
func Cdlcounterattack(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlcounterattack - Counterattack
Input = Open, High, Low, Close
Output = int
func CdlcounterattackLookback ¶
func CdlcounterattackLookback() int
CdlcounterattackLookback returns the number of input values consumed before the first valid output.
func Cdldarkcloudcover ¶
func Cdldarkcloudcover(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdldarkcloudcover - Dark Cloud Cover
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdldarkcloudcoverLookback ¶
CdldarkcloudcoverLookback returns the number of input values consumed before the first valid output.
func Cdldoji ¶
func Cdldoji(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdldoji - Doji
Input = Open, High, Low, Close
Output = int
func CdldojiLookback ¶
func CdldojiLookback() int
CdldojiLookback returns the number of input values consumed before the first valid output.
func Cdldojistar ¶
func Cdldojistar(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdldojistar - Doji Star
Input = Open, High, Low, Close
Output = int
func CdldojistarLookback ¶
func CdldojistarLookback() int
CdldojistarLookback returns the number of input values consumed before the first valid output.
func Cdldragonflydoji ¶
func Cdldragonflydoji(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdldragonflydoji - Dragonfly Doji
Input = Open, High, Low, Close
Output = int
func CdldragonflydojiLookback ¶
func CdldragonflydojiLookback() int
CdldragonflydojiLookback returns the number of input values consumed before the first valid output.
func Cdlengulfing ¶
func Cdlengulfing(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlengulfing - Engulfing Pattern
Input = Open, High, Low, Close
Output = int
func CdlengulfingLookback ¶
func CdlengulfingLookback() int
CdlengulfingLookback returns the number of input values consumed before the first valid output.
func Cdleveningdojistar ¶
func Cdleveningdojistar(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdleveningdojistar - Evening Doji Star
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdleveningdojistarLookback ¶
CdleveningdojistarLookback returns the number of input values consumed before the first valid output.
func Cdleveningstar ¶
func Cdleveningstar(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdleveningstar - Evening Star
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdleveningstarLookback ¶
CdleveningstarLookback returns the number of input values consumed before the first valid output.
func Cdlgapsidesidewhite ¶
func Cdlgapsidesidewhite(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlgapsidesidewhite - Up/Down-gap side-by-side white lines
Input = Open, High, Low, Close
Output = int
func CdlgapsidesidewhiteLookback ¶
func CdlgapsidesidewhiteLookback() int
CdlgapsidesidewhiteLookback returns the number of input values consumed before the first valid output.
func Cdlgravestonedoji ¶
func Cdlgravestonedoji(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlgravestonedoji - Gravestone Doji
Input = Open, High, Low, Close
Output = int
func CdlgravestonedojiLookback ¶
func CdlgravestonedojiLookback() int
CdlgravestonedojiLookback returns the number of input values consumed before the first valid output.
func Cdlhammer ¶
func Cdlhammer(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlhammer - Hammer
Input = Open, High, Low, Close
Output = int
func CdlhammerLookback ¶
func CdlhammerLookback() int
CdlhammerLookback returns the number of input values consumed before the first valid output.
func Cdlhangingman ¶
func Cdlhangingman(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlhangingman - Hanging Man
Input = Open, High, Low, Close
Output = int
func CdlhangingmanLookback ¶
func CdlhangingmanLookback() int
CdlhangingmanLookback returns the number of input values consumed before the first valid output.
func Cdlharami ¶
func Cdlharami(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlharami - Harami Pattern
Input = Open, High, Low, Close
Output = int
func CdlharamiLookback ¶
func CdlharamiLookback() int
CdlharamiLookback returns the number of input values consumed before the first valid output.
func Cdlharamicross ¶
func Cdlharamicross(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlharamicross - Harami Cross Pattern
Input = Open, High, Low, Close
Output = int
func CdlharamicrossLookback ¶
func CdlharamicrossLookback() int
CdlharamicrossLookback returns the number of input values consumed before the first valid output.
func Cdlhighwave ¶
func Cdlhighwave(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlhighwave - High-Wave Candle
Input = Open, High, Low, Close
Output = int
func CdlhighwaveLookback ¶
func CdlhighwaveLookback() int
CdlhighwaveLookback returns the number of input values consumed before the first valid output.
func Cdlhikkake ¶
func Cdlhikkake(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlhikkake - Hikkake Pattern
Input = Open, High, Low, Close
Output = int
func CdlhikkakeLookback ¶
func CdlhikkakeLookback() int
CdlhikkakeLookback returns the number of input values consumed before the first valid output.
func Cdlhikkakemod ¶
func Cdlhikkakemod(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlhikkakemod - Modified Hikkake Pattern
Input = Open, High, Low, Close
Output = int
func CdlhikkakemodLookback ¶
func CdlhikkakemodLookback() int
CdlhikkakemodLookback returns the number of input values consumed before the first valid output.
func Cdlhomingpigeon ¶
func Cdlhomingpigeon(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlhomingpigeon - Homing Pigeon
Input = Open, High, Low, Close
Output = int
func CdlhomingpigeonLookback ¶
func CdlhomingpigeonLookback() int
CdlhomingpigeonLookback returns the number of input values consumed before the first valid output.
func Cdlidentical3crows ¶
func Cdlidentical3crows(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlidentical3crows - Identical Three Crows
Input = Open, High, Low, Close
Output = int
func Cdlidentical3crowsLookback ¶
func Cdlidentical3crowsLookback() int
Cdlidentical3crowsLookback returns the number of input values consumed before the first valid output.
func Cdlinneck ¶
func Cdlinneck(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlinneck - In-Neck Pattern
Input = Open, High, Low, Close
Output = int
func CdlinneckLookback ¶
func CdlinneckLookback() int
CdlinneckLookback returns the number of input values consumed before the first valid output.
func Cdlinvertedhammer ¶
func Cdlinvertedhammer(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlinvertedhammer - Inverted Hammer
Input = Open, High, Low, Close
Output = int
func CdlinvertedhammerLookback ¶
func CdlinvertedhammerLookback() int
CdlinvertedhammerLookback returns the number of input values consumed before the first valid output.
func Cdlkicking ¶
func Cdlkicking(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlkicking - Kicking
Input = Open, High, Low, Close
Output = int
func CdlkickingLookback ¶
func CdlkickingLookback() int
CdlkickingLookback returns the number of input values consumed before the first valid output.
func Cdlkickingbylength ¶
func Cdlkickingbylength(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlkickingbylength - Kicking - bull/bear determined by the longer marubozu
Input = Open, High, Low, Close
Output = int
func CdlkickingbylengthLookback ¶
func CdlkickingbylengthLookback() int
CdlkickingbylengthLookback returns the number of input values consumed before the first valid output.
func Cdlladderbottom ¶
func Cdlladderbottom(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlladderbottom - Ladder Bottom
Input = Open, High, Low, Close
Output = int
func CdlladderbottomLookback ¶
func CdlladderbottomLookback() int
CdlladderbottomLookback returns the number of input values consumed before the first valid output.
func Cdllongleggeddoji ¶
func Cdllongleggeddoji(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdllongleggeddoji - Long Legged Doji
Input = Open, High, Low, Close
Output = int
func CdllongleggeddojiLookback ¶
func CdllongleggeddojiLookback() int
CdllongleggeddojiLookback returns the number of input values consumed before the first valid output.
func Cdllongline ¶
func Cdllongline(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdllongline - Long Line Candle
Input = Open, High, Low, Close
Output = int
func CdllonglineLookback ¶
func CdllonglineLookback() int
CdllonglineLookback returns the number of input values consumed before the first valid output.
func Cdlmarubozu ¶
func Cdlmarubozu(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlmarubozu - Marubozu
Input = Open, High, Low, Close
Output = int
func CdlmarubozuLookback ¶
func CdlmarubozuLookback() int
CdlmarubozuLookback returns the number of input values consumed before the first valid output.
func Cdlmatchinglow ¶
func Cdlmatchinglow(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlmatchinglow - Matching Low
Input = Open, High, Low, Close
Output = int
func CdlmatchinglowLookback ¶
func CdlmatchinglowLookback() int
CdlmatchinglowLookback returns the number of input values consumed before the first valid output.
func Cdlmathold ¶
func Cdlmathold(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdlmathold - Mat Hold
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdlmatholdLookback ¶
CdlmatholdLookback returns the number of input values consumed before the first valid output.
func Cdlmorningdojistar ¶
func Cdlmorningdojistar(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdlmorningdojistar - Morning Doji Star
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdlmorningdojistarLookback ¶
CdlmorningdojistarLookback returns the number of input values consumed before the first valid output.
func Cdlmorningstar ¶
func Cdlmorningstar(open []float64, high []float64, low []float64, closePrice []float64, penetration float64, integerBuf []int32) (outInteger []int32)
Cdlmorningstar - Morning Star
Input = Open, High, Low, Close
Output = int
Parameters:
- penetration (0 to TA_REAL_MAX): Percentage of penetration of a candle within another candle
func CdlmorningstarLookback ¶
CdlmorningstarLookback returns the number of input values consumed before the first valid output.
func Cdlonneck ¶
func Cdlonneck(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlonneck - On-Neck Pattern
Input = Open, High, Low, Close
Output = int
func CdlonneckLookback ¶
func CdlonneckLookback() int
CdlonneckLookback returns the number of input values consumed before the first valid output.
func Cdlpiercing ¶
func Cdlpiercing(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlpiercing - Piercing Pattern
Input = Open, High, Low, Close
Output = int
func CdlpiercingLookback ¶
func CdlpiercingLookback() int
CdlpiercingLookback returns the number of input values consumed before the first valid output.
func Cdlrickshawman ¶
func Cdlrickshawman(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlrickshawman - Rickshaw Man
Input = Open, High, Low, Close
Output = int
func CdlrickshawmanLookback ¶
func CdlrickshawmanLookback() int
CdlrickshawmanLookback returns the number of input values consumed before the first valid output.
func Cdlrisefall3methods ¶
func Cdlrisefall3methods(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlrisefall3methods - Rising/Falling Three Methods
Input = Open, High, Low, Close
Output = int
func Cdlrisefall3methodsLookback ¶
func Cdlrisefall3methodsLookback() int
Cdlrisefall3methodsLookback returns the number of input values consumed before the first valid output.
func Cdlseparatinglines ¶
func Cdlseparatinglines(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlseparatinglines - Separating Lines
Input = Open, High, Low, Close
Output = int
func CdlseparatinglinesLookback ¶
func CdlseparatinglinesLookback() int
CdlseparatinglinesLookback returns the number of input values consumed before the first valid output.
func Cdlshootingstar ¶
func Cdlshootingstar(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlshootingstar - Shooting Star
Input = Open, High, Low, Close
Output = int
func CdlshootingstarLookback ¶
func CdlshootingstarLookback() int
CdlshootingstarLookback returns the number of input values consumed before the first valid output.
func Cdlshortline ¶
func Cdlshortline(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlshortline - Short Line Candle
Input = Open, High, Low, Close
Output = int
func CdlshortlineLookback ¶
func CdlshortlineLookback() int
CdlshortlineLookback returns the number of input values consumed before the first valid output.
func Cdlspinningtop ¶
func Cdlspinningtop(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlspinningtop - Spinning Top
Input = Open, High, Low, Close
Output = int
func CdlspinningtopLookback ¶
func CdlspinningtopLookback() int
CdlspinningtopLookback returns the number of input values consumed before the first valid output.
func Cdlstalledpattern ¶
func Cdlstalledpattern(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlstalledpattern - Stalled Pattern
Input = Open, High, Low, Close
Output = int
func CdlstalledpatternLookback ¶
func CdlstalledpatternLookback() int
CdlstalledpatternLookback returns the number of input values consumed before the first valid output.
func Cdlsticksandwich ¶
func Cdlsticksandwich(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlsticksandwich - Stick Sandwich
Input = Open, High, Low, Close
Output = int
func CdlsticksandwichLookback ¶
func CdlsticksandwichLookback() int
CdlsticksandwichLookback returns the number of input values consumed before the first valid output.
func Cdltakuri ¶
func Cdltakuri(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdltakuri - Takuri (Dragonfly Doji with very long lower shadow)
Input = Open, High, Low, Close
Output = int
func CdltakuriLookback ¶
func CdltakuriLookback() int
CdltakuriLookback returns the number of input values consumed before the first valid output.
func Cdltasukigap ¶
func Cdltasukigap(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdltasukigap - Tasuki Gap
Input = Open, High, Low, Close
Output = int
func CdltasukigapLookback ¶
func CdltasukigapLookback() int
CdltasukigapLookback returns the number of input values consumed before the first valid output.
func Cdlthrusting ¶
func Cdlthrusting(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlthrusting - Thrusting Pattern
Input = Open, High, Low, Close
Output = int
func CdlthrustingLookback ¶
func CdlthrustingLookback() int
CdlthrustingLookback returns the number of input values consumed before the first valid output.
func Cdltristar ¶
func Cdltristar(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdltristar - Tristar Pattern
Input = Open, High, Low, Close
Output = int
func CdltristarLookback ¶
func CdltristarLookback() int
CdltristarLookback returns the number of input values consumed before the first valid output.
func Cdlunique3river ¶
func Cdlunique3river(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlunique3river - Unique 3 River
Input = Open, High, Low, Close
Output = int
func Cdlunique3riverLookback ¶
func Cdlunique3riverLookback() int
Cdlunique3riverLookback returns the number of input values consumed before the first valid output.
func Cdlupsidegap2crows ¶
func Cdlupsidegap2crows(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlupsidegap2crows - Upside Gap Two Crows
Input = Open, High, Low, Close
Output = int
func Cdlupsidegap2crowsLookback ¶
func Cdlupsidegap2crowsLookback() int
Cdlupsidegap2crowsLookback returns the number of input values consumed before the first valid output.
func Cdlxsidegap3methods ¶
func Cdlxsidegap3methods(open []float64, high []float64, low []float64, closePrice []float64, integerBuf []int32) (outInteger []int32)
Cdlxsidegap3methods - Upside/Downside Gap Three Methods
Input = Open, High, Low, Close
Output = int
func Cdlxsidegap3methodsLookback ¶
func Cdlxsidegap3methodsLookback() int
Cdlxsidegap3methodsLookback returns the number of input values consumed before the first valid output.
func CeilLookback ¶
func CeilLookback() int
CeilLookback returns the number of input values consumed before the first valid output.
func Cmo ¶
Cmo - Chande Momentum Oscillator
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func CmoLookback ¶
CmoLookback returns the number of input values consumed before the first valid output.
func Correl ¶
Correl - Pearson's Correlation Coefficient (r)
Input = double, double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func CorrelLookback ¶
CorrelLookback returns the number of input values consumed before the first valid output.
func CosLookback ¶
func CosLookback() int
CosLookback returns the number of input values consumed before the first valid output.
func CoshLookback ¶
func CoshLookback() int
CoshLookback returns the number of input values consumed before the first valid output.
func Dema ¶
Dema - Double Exponential Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func DemaLookback ¶
DemaLookback returns the number of input values consumed before the first valid output.
func DivLookback ¶
func DivLookback() int
DivLookback returns the number of input values consumed before the first valid output.
func Dx ¶
func Dx(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Dx - Directional Movement Index
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func DxLookback ¶
DxLookback returns the number of input values consumed before the first valid output.
func Ema ¶
Ema - Exponential Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func EmaLookback ¶
EmaLookback returns the number of input values consumed before the first valid output.
func ExpLookback ¶
func ExpLookback() int
ExpLookback returns the number of input values consumed before the first valid output.
func FloorLookback ¶
func FloorLookback() int
FloorLookback returns the number of input values consumed before the first valid output.
func HtDcperiod ¶
HtDcperiod - Hilbert Transform - Dominant Cycle Period
Input = double
Output = double
func HtDcperiodLookback ¶
func HtDcperiodLookback() int
HtDcperiodLookback returns the number of input values consumed before the first valid output.
func HtDcphase ¶
HtDcphase - Hilbert Transform - Dominant Cycle Phase
Input = double
Output = double
func HtDcphaseLookback ¶
func HtDcphaseLookback() int
HtDcphaseLookback returns the number of input values consumed before the first valid output.
func HtPhasor ¶
func HtPhasor(in []float64, inPhaseBuf []float64, quadratureBuf []float64) (outInPhase []float64, outQuadrature []float64)
HtPhasor - Hilbert Transform - Phasor Components
Input = double
Output = double, double
func HtPhasorLookback ¶
func HtPhasorLookback() int
HtPhasorLookback returns the number of input values consumed before the first valid output.
func HtSine ¶
func HtSine(in []float64, sineBuf []float64, leadSineBuf []float64) (outSine []float64, outLeadSine []float64)
HtSine - Hilbert Transform - SineWave
Input = double
Output = double, double
func HtSineLookback ¶
func HtSineLookback() int
HtSineLookback returns the number of input values consumed before the first valid output.
func HtTrendline ¶
HtTrendline - Hilbert Transform - Instantaneous Trendline
Input = double
Output = double
func HtTrendlineLookback ¶
func HtTrendlineLookback() int
HtTrendlineLookback returns the number of input values consumed before the first valid output.
func HtTrendmode ¶
HtTrendmode - Hilbert Transform - Trend vs Cycle Mode
Input = double
Output = int
func HtTrendmodeLookback ¶
func HtTrendmodeLookback() int
HtTrendmodeLookback returns the number of input values consumed before the first valid output.
func Imi ¶
func Imi(open []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Imi - Intraday Momentum Index
Input = Open, Close
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func ImiLookback ¶
ImiLookback returns the number of input values consumed before the first valid output.
func Kama ¶
Kama - Kaufman Adaptive Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func KamaLookback ¶
KamaLookback returns the number of input values consumed before the first valid output.
func Linearreg ¶
Linearreg - Linear Regression
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func LinearregAngle ¶
LinearregAngle - Linear Regression Angle
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func LinearregAngleLookback ¶
LinearregAngleLookback returns the number of input values consumed before the first valid output.
func LinearregIntercept ¶
LinearregIntercept - Linear Regression Intercept
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func LinearregInterceptLookback ¶
LinearregInterceptLookback returns the number of input values consumed before the first valid output.
func LinearregLookback ¶
LinearregLookback returns the number of input values consumed before the first valid output.
func LinearregSlope ¶
LinearregSlope - Linear Regression Slope
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func LinearregSlopeLookback ¶
LinearregSlopeLookback returns the number of input values consumed before the first valid output.
func LnLookback ¶
func LnLookback() int
LnLookback returns the number of input values consumed before the first valid output.
func Log10Lookback ¶
func Log10Lookback() int
Log10Lookback returns the number of input values consumed before the first valid output.
func Ma ¶
Ma - Moving average
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
- mAType: Type of Moving Average
func MaLookback ¶
MaLookback returns the number of input values consumed before the first valid output.
func Macd ¶
func Macd(in []float64, fastPeriod int, slowPeriod int, signalPeriod int, macdBuf []float64, macdSignalBuf []float64, macdHistBuf []float64) (outMACD []float64, outMACDSignal []float64, outMACDHist []float64)
Macd - Moving Average Convergence/Divergence
Input = double
Output = double, double, double
Parameters:
- fastPeriod (2 to 100000): Number of period for the fast MA
- slowPeriod (2 to 100000): Number of period for the slow MA
- signalPeriod (1 to 100000): Smoothing for the signal line (nb of period)
func MacdLookback ¶
MacdLookback returns the number of input values consumed before the first valid output.
func Macdext ¶
func Macdext(in []float64, fastPeriod int, fastMAType int, slowPeriod int, slowMAType int, signalPeriod int, signalMAType int, macdBuf []float64, macdSignalBuf []float64, macdHistBuf []float64) (outMACD []float64, outMACDSignal []float64, outMACDHist []float64)
Macdext - MACD with controllable MA type
Input = double
Output = double, double, double
Parameters:
- fastPeriod (2 to 100000): Number of period for the fast MA
- fastMAType: Type of Moving Average for fast MA
- slowPeriod (2 to 100000): Number of period for the slow MA
- slowMAType: Type of Moving Average for slow MA
- signalPeriod (1 to 100000): Smoothing for the signal line (nb of period)
- signalMAType: Type of Moving Average for signal line
func MacdextLookback ¶
func MacdextLookback(fastPeriod int, fastMAType int, slowPeriod int, slowMAType int, signalPeriod int, signalMAType int) int
MacdextLookback returns the number of input values consumed before the first valid output.
func Macdfix ¶
func Macdfix(in []float64, signalPeriod int, macdBuf []float64, macdSignalBuf []float64, macdHistBuf []float64) (outMACD []float64, outMACDSignal []float64, outMACDHist []float64)
Macdfix - Moving Average Convergence/Divergence Fix 12/26
Input = double
Output = double, double, double
Parameters:
- signalPeriod (1 to 100000): Smoothing for the signal line (nb of period)
func MacdfixLookback ¶
MacdfixLookback returns the number of input values consumed before the first valid output.
func Mama ¶
func Mama(in []float64, fastLimit float64, slowLimit float64, mamaBuf []float64, famaBuf []float64) (outMAMA []float64, outFAMA []float64)
Mama - MESA Adaptive Moving Average
Input = double
Output = double, double
Parameters:
- fastLimit (0.01 to 0.99): Upper limit use in the adaptive algorithm
- slowLimit (0.01 to 0.99): Lower limit use in the adaptive algorithm
func MamaLookback ¶
MamaLookback returns the number of input values consumed before the first valid output.
func Mavp ¶
func Mavp(in []float64, periods []float64, minPeriod int, maxPeriod int, mAType int, realBuf []float64) (outReal []float64)
Mavp - Moving average with variable period
Input = double, double
Output = double
Parameters:
- minPeriod (2 to 100000): Value less than minimum will be changed to Minimum period
- maxPeriod (2 to 100000): Value higher than maximum will be changed to Maximum period
- mAType: Type of Moving Average
func MavpLookback ¶
MavpLookback returns the number of input values consumed before the first valid output.
func Max ¶
Max - Highest value over a specified period
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func MaxLookback ¶
MaxLookback returns the number of input values consumed before the first valid output.
func Maxindex ¶
Maxindex - Index of highest value over a specified period
Input = double
Output = int
Parameters:
- timePeriod (2 to 100000): Number of period
func MaxindexLookback ¶
MaxindexLookback returns the number of input values consumed before the first valid output.
func MedpriceLookback ¶
func MedpriceLookback() int
MedpriceLookback returns the number of input values consumed before the first valid output.
func Mfi ¶
func Mfi(high []float64, low []float64, closePrice []float64, volume []float64, timePeriod int, realBuf []float64) (outReal []float64)
Mfi - Money Flow Index
Input = High, Low, Close, Volume
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func MfiLookback ¶
MfiLookback returns the number of input values consumed before the first valid output.
func Midpoint ¶
Midpoint - MidPoint over period
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func MidpointLookback ¶
MidpointLookback returns the number of input values consumed before the first valid output.
func Midprice ¶
Midprice - Midpoint Price over period
Input = High, Low
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func MidpriceLookback ¶
MidpriceLookback returns the number of input values consumed before the first valid output.
func Min ¶
Min - Lowest value over a specified period
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func MinLookback ¶
MinLookback returns the number of input values consumed before the first valid output.
func Minindex ¶
Minindex - Index of lowest value over a specified period
Input = double
Output = int
Parameters:
- timePeriod (2 to 100000): Number of period
func MinindexLookback ¶
MinindexLookback returns the number of input values consumed before the first valid output.
func Minmax ¶
func Minmax(in []float64, timePeriod int, minBuf []float64, maxBuf []float64) (outMin []float64, outMax []float64)
Minmax - Lowest and highest values over a specified period
Input = double
Output = double, double
Parameters:
- timePeriod (2 to 100000): Number of period
func MinmaxLookback ¶
MinmaxLookback returns the number of input values consumed before the first valid output.
func Minmaxindex ¶
func Minmaxindex(in []float64, timePeriod int, minIdxBuf []int32, maxIdxBuf []int32) (outMinIdx []int32, outMaxIdx []int32)
Minmaxindex - Indexes of lowest and highest values over a specified period
Input = double
Output = int, int
Parameters:
- timePeriod (2 to 100000): Number of period
func MinmaxindexLookback ¶
MinmaxindexLookback returns the number of input values consumed before the first valid output.
func MinusDi ¶
func MinusDi(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
MinusDi - Minus Directional Indicator
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func MinusDiLookback ¶
MinusDiLookback returns the number of input values consumed before the first valid output.
func MinusDm ¶
MinusDm - Minus Directional Movement
Input = High, Low
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func MinusDmLookback ¶
MinusDmLookback returns the number of input values consumed before the first valid output.
func Mom ¶
Mom - Momentum
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func MomLookback ¶
MomLookback returns the number of input values consumed before the first valid output.
func MultLookback ¶
func MultLookback() int
MultLookback returns the number of input values consumed before the first valid output.
func Natr ¶
func Natr(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Natr - Normalized Average True Range
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func NatrLookback ¶
NatrLookback returns the number of input values consumed before the first valid output.
func ObvLookback ¶
func ObvLookback() int
ObvLookback returns the number of input values consumed before the first valid output.
func PlusDi ¶
func PlusDi(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
PlusDi - Plus Directional Indicator
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func PlusDiLookback ¶
PlusDiLookback returns the number of input values consumed before the first valid output.
func PlusDm ¶
PlusDm - Plus Directional Movement
Input = High, Low
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func PlusDmLookback ¶
PlusDmLookback returns the number of input values consumed before the first valid output.
func Ppo ¶
func Ppo(in []float64, fastPeriod int, slowPeriod int, mAType int, realBuf []float64) (outReal []float64)
Ppo - Percentage Price Oscillator
Input = double
Output = double
Parameters:
- fastPeriod (2 to 100000): Number of period for the fast MA
- slowPeriod (2 to 100000): Number of period for the slow MA
- mAType: Type of Moving Average
func PpoLookback ¶
PpoLookback returns the number of input values consumed before the first valid output.
func Roc ¶
Roc - Rate of change : ((price/prevPrice)-1)*100
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func RocLookback ¶
RocLookback returns the number of input values consumed before the first valid output.
func Rocp ¶
Rocp - Rate of change Percentage: (price-prevPrice)/prevPrice
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func RocpLookback ¶
RocpLookback returns the number of input values consumed before the first valid output.
func Rocr ¶
Rocr - Rate of change ratio: (price/prevPrice)
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func Rocr100 ¶
Rocr100 - Rate of change ratio 100 scale: (price/prevPrice)*100
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func Rocr100Lookback ¶
Rocr100Lookback returns the number of input values consumed before the first valid output.
func RocrLookback ¶
RocrLookback returns the number of input values consumed before the first valid output.
func Rsi ¶
Rsi - Relative Strength Index
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func RsiLookback ¶
RsiLookback returns the number of input values consumed before the first valid output.
func Sar ¶
func Sar(high []float64, low []float64, acceleration float64, maximum float64, realBuf []float64) (outReal []float64)
Sar - Parabolic SAR
Input = High, Low
Output = double
Parameters:
- acceleration (0 to TA_REAL_MAX): Acceleration Factor used up to the Maximum value
- maximum (0 to TA_REAL_MAX): Acceleration Factor Maximum value
func SarLookback ¶
SarLookback returns the number of input values consumed before the first valid output.
func Sarext ¶
func Sarext(high []float64, low []float64, startValue float64, offsetOnReverse float64, accelerationInitLong float64, accelerationLong float64, accelerationMaxLong float64, accelerationInitShort float64, accelerationShort float64, accelerationMaxShort float64, realBuf []float64) (outReal []float64)
Sarext - Parabolic SAR - Extended
Input = High, Low
Output = double
Parameters:
- startValue (TA_REAL_MIN to TA_REAL_MAX): Start value and direction. 0 for Auto, >0 for Long, <0 for Short
- offsetOnReverse (0 to TA_REAL_MAX): Percent offset added/removed to initial stop on short/long reversal
- accelerationInitLong (0 to TA_REAL_MAX): Acceleration Factor initial value for the Long direction
- accelerationLong (0 to TA_REAL_MAX): Acceleration Factor for the Long direction
- accelerationMaxLong (0 to TA_REAL_MAX): Acceleration Factor maximum value for the Long direction
- accelerationInitShort (0 to TA_REAL_MAX): Acceleration Factor initial value for the Short direction
- accelerationShort (0 to TA_REAL_MAX): Acceleration Factor for the Short direction
- accelerationMaxShort (0 to TA_REAL_MAX): Acceleration Factor maximum value for the Short direction
func SarextLookback ¶
func SarextLookback(startValue float64, offsetOnReverse float64, accelerationInitLong float64, accelerationLong float64, accelerationMaxLong float64, accelerationInitShort float64, accelerationShort float64, accelerationMaxShort float64) int
SarextLookback returns the number of input values consumed before the first valid output.
func SinLookback ¶
func SinLookback() int
SinLookback returns the number of input values consumed before the first valid output.
func SinhLookback ¶
func SinhLookback() int
SinhLookback returns the number of input values consumed before the first valid output.
func Sma ¶
Sma - Simple Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func SmaLookback ¶
SmaLookback returns the number of input values consumed before the first valid output.
func SqrtLookback ¶
func SqrtLookback() int
SqrtLookback returns the number of input values consumed before the first valid output.
func Stddev ¶
Stddev - Standard Deviation
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
- nbDev (TA_REAL_MIN to TA_REAL_MAX): Nb of deviations
func StddevLookback ¶
StddevLookback returns the number of input values consumed before the first valid output.
func Stoch ¶
func Stoch(high []float64, low []float64, closePrice []float64, fastK_Period int, slowK_Period int, slowK_MAType int, slowD_Period int, slowD_MAType int, slowKBuf []float64, slowDBuf []float64) (outSlowK []float64, outSlowD []float64)
Stoch - Stochastic
Input = High, Low, Close
Output = double, double
Parameters:
- fastK_Period (1 to 100000): Time period for building the Fast-K line
- slowK_Period (1 to 100000): Smoothing for making the Slow-K line. Usually set to 3
- slowK_MAType: Type of Moving Average for Slow-K
- slowD_Period (1 to 100000): Smoothing for making the Slow-D line
- slowD_MAType: Type of Moving Average for Slow-D
func StochLookback ¶
func StochLookback(fastK_Period int, slowK_Period int, slowK_MAType int, slowD_Period int, slowD_MAType int) int
StochLookback returns the number of input values consumed before the first valid output.
func Stochf ¶
func Stochf(high []float64, low []float64, closePrice []float64, fastK_Period int, fastD_Period int, fastD_MAType int, fastKBuf []float64, fastDBuf []float64) (outFastK []float64, outFastD []float64)
Stochf - Stochastic Fast
Input = High, Low, Close
Output = double, double
Parameters:
- fastK_Period (1 to 100000): Time period for building the Fast-K line
- fastD_Period (1 to 100000): Smoothing for making the Fast-D line. Usually set to 3
- fastD_MAType: Type of Moving Average for Fast-D
func StochfLookback ¶
StochfLookback returns the number of input values consumed before the first valid output.
func Stochrsi ¶
func Stochrsi(in []float64, timePeriod int, fastK_Period int, fastD_Period int, fastD_MAType int, fastKBuf []float64, fastDBuf []float64) (outFastK []float64, outFastD []float64)
Stochrsi - Stochastic Relative Strength Index
Input = double
Output = double, double
Parameters:
- timePeriod (2 to 100000): Number of period
- fastK_Period (1 to 100000): Time period for building the Fast-K line
- fastD_Period (1 to 100000): Smoothing for making the Fast-D line. Usually set to 3
- fastD_MAType: Type of Moving Average for Fast-D
func StochrsiLookback ¶
StochrsiLookback returns the number of input values consumed before the first valid output.
func SubLookback ¶
func SubLookback() int
SubLookback returns the number of input values consumed before the first valid output.
func Sum ¶
Sum - Summation
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func SumLookback ¶
SumLookback returns the number of input values consumed before the first valid output.
func T3 ¶
T3 - Triple Exponential Moving Average (T3)
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
- vFactor (0 to 1): Volume Factor
func T3Lookback ¶
T3Lookback returns the number of input values consumed before the first valid output.
func TanLookback ¶
func TanLookback() int
TanLookback returns the number of input values consumed before the first valid output.
func TanhLookback ¶
func TanhLookback() int
TanhLookback returns the number of input values consumed before the first valid output.
func Tema ¶
Tema - Triple Exponential Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func TemaLookback ¶
TemaLookback returns the number of input values consumed before the first valid output.
func Trange ¶
func Trange(high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
Trange - True Range
Input = High, Low, Close
Output = double
func TrangeLookback ¶
func TrangeLookback() int
TrangeLookback returns the number of input values consumed before the first valid output.
func Trima ¶
Trima - Triangular Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func TrimaLookback ¶
TrimaLookback returns the number of input values consumed before the first valid output.
func Trix ¶
Trix - 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
func TrixLookback ¶
TrixLookback returns the number of input values consumed before the first valid output.
func Tsf ¶
Tsf - Time Series Forecast
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func TsfLookback ¶
TsfLookback returns the number of input values consumed before the first valid output.
func Typprice ¶
func Typprice(high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
Typprice - Typical Price
Input = High, Low, Close
Output = double
func TyppriceLookback ¶
func TyppriceLookback() int
TyppriceLookback returns the number of input values consumed before the first valid output.
func Ultosc ¶
func Ultosc(high []float64, low []float64, closePrice []float64, timePeriod1 int, timePeriod2 int, timePeriod3 int, realBuf []float64) (outReal []float64)
Ultosc - Ultimate Oscillator
Input = High, Low, Close
Output = double
Parameters:
- timePeriod1 (1 to 100000): Number of bars for 1st period.
- timePeriod2 (1 to 100000): Number of bars fro 2nd period
- timePeriod3 (1 to 100000): Number of bars for 3rd period
func UltoscLookback ¶
UltoscLookback returns the number of input values consumed before the first valid output.
func Var ¶
Var - Variance
Input = double
Output = double
Parameters:
- timePeriod (1 to 100000): Number of period
- nbDev (TA_REAL_MIN to TA_REAL_MAX): Nb of deviations
func VarLookback ¶
VarLookback returns the number of input values consumed before the first valid output.
func Wclprice ¶
func Wclprice(high []float64, low []float64, closePrice []float64, realBuf []float64) (outReal []float64)
Wclprice - Weighted Close Price
Input = High, Low, Close
Output = double
func WclpriceLookback ¶
func WclpriceLookback() int
WclpriceLookback returns the number of input values consumed before the first valid output.
func Willr ¶
func Willr(high []float64, low []float64, closePrice []float64, timePeriod int, realBuf []float64) (outReal []float64)
Willr - Williams' %R
Input = High, Low, Close
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func WillrLookback ¶
WillrLookback returns the number of input values consumed before the first valid output.
func Wma ¶
Wma - Weighted Moving Average
Input = double
Output = double
Parameters:
- timePeriod (2 to 100000): Number of period
func WmaLookback ¶
WmaLookback returns the number of input values consumed before the first valid output.
Types ¶
type TALibError ¶
TALibError is the panic value for all TA-Lib failures. Callers can recover() and type-assert to *TALibError to inspect the code.
func (*TALibError) Error ¶
func (e *TALibError) Error() string
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gen
command
cmd/gen clones the TA-Lib repository at a pinned version, builds the amalgamation C file, copies headers, and generates Go wrapper source files.
|
cmd/gen clones the TA-Lib repository at a pinned version, builds the amalgamation C file, copies headers, and generates Go wrapper source files. |