talib

package
v0.0.0-...-396db7e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acos

func Acos(real []float64) []float64

Acos - Vector Trigonometric ACos

Input = double

Output = double

func Ad(high, low, close, volume []float64) []float64

Ad - Chaikin A/D Line

Input = High, Low, Close, Volume

Output = double

func AdOsc

func AdOsc(high, low, close, volume []float64, fastPeriod, slowPeriod int32) []float64

AdOsc - Chaikin A/D Oscillator

Input = High, Low, Close, Volume

Output = double

Optional Parameters

-------------------

optInFastPeriod:(From 2 to 100000)

Number of period for the fast MA

optInSlowPeriod:(From 2 to 100000)

Number of period for the slow MA

func Add

func Add(real0, real1 []float64) []float64

Add - Vector Arithmetic Add

Input = double, double

Output = double

func Adx

func Adx(high, low, close []float64, timePeriod int32) []float64

Adx - Average Directional Movement Index

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Adxr

func Adxr(high, low, close []float64, timePeriod int32) []float64

Adxr - Average Directional Movement Index Rating

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Apo

func Apo(real []float64, fastPeriod, slowPeriod, mAType int32) []float64

Apo - Absolute Price Oscillator

Input = double

Output = double

Optional Parameters

-------------------

optInFastPeriod:(From 2 to 100000)

Number of period for the fast MA

optInSlowPeriod:(From 2 to 100000)

Number of period for the slow MA

optInMAType:

Type of Moving Average

func AroOn

func AroOn(high, low []float64, timePeriod int32) ([]float64, []float64)

AroOn - Aroon

Input = High, Low

Output = double, double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func AroOnOsc

func AroOnOsc(high, low []float64, timePeriod int32) []float64

AroOnOsc - Aroon Oscillator

Input = High, Low

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Asin

func Asin(real []float64) []float64

Asin - Vector Trigonometric ASin

Input = double

Output = double

func Atan

func Atan(real []float64) []float64

Atan - Vector Trigonometric ATan

Input = double

Output = double

func Atr

func Atr(high, low, close []float64, timePeriod int32) []float64

Atr - Average True Range

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func AvgPrice

func AvgPrice(open, high, low, close []float64) []float64

AvgPrice - Average Price

Input = Open, High, Low, Close

Output = double

func BBands

func BBands(real []float64, timePeriod int32, nbDevUp, nbDevDn float64, mAType int32) ([]float64, []float64, []float64)

BBands - Bollinger Bands

Input = double

Output = double, double, double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

optInNbDevUp:(From TA_REAL_MIN to TA_REAL_MAX)

Deviation multiplier for upper band

optInNbDevDn:(From TA_REAL_MIN to TA_REAL_MAX)

Deviation multiplier for lower band

optInMAType:

Type of Moving Average

func Beta

func Beta(real0, real1 []float64, timePeriod int32) []float64

Beta - Beta

Input = double, double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Bop

func Bop(open, high, low, close []float64) []float64

Bop - Balance Of Power

Input = Open, High, Low, Close

Output = double

func Cci

func Cci(high, low, close []float64, timePeriod int32) []float64

Cci - Commodity Channel Index

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Cdl2Crows

func Cdl2Crows(open, high, low, close []float64) []int32

Cdl2Crows - Two Crows

Input = Open, High, Low, Close

Output = int

func Cdl3BlackCrows

func Cdl3BlackCrows(open, high, low, close []float64) []int32

Cdl3BlackCrows - Three Black Crows

Input = Open, High, Low, Close

Output = int

func Cdl3Inside

func Cdl3Inside(open, high, low, close []float64) []int32

Cdl3Inside - Three Inside Up/Down

Input = Open, High, Low, Close

Output = int

func Cdl3LineStrike

func Cdl3LineStrike(open, high, low, close []float64) []int32

Cdl3LineStrike - Three-Line Strike

Input = Open, High, Low, Close

Output = int

func Cdl3Outside

func Cdl3Outside(open, high, low, close []float64) []int32

Cdl3Outside - Three Outside Up/Down

Input = Open, High, Low, Close

Output = int

func Cdl3StarsinSouth

func Cdl3StarsinSouth(open, high, low, close []float64) []int32

Cdl3StarsinSouth - Three Stars In The South

Input = Open, High, Low, Close

Output = int

func Cdl3WhiteSoldiers

func Cdl3WhiteSoldiers(open, high, low, close []float64) []int32

Cdl3WhiteSoldiers - Three Advancing White Soldiers

Input = Open, High, Low, Close

Output = int

func CdlAbandonedBaby

func CdlAbandonedBaby(open, high, low, close []float64, penetration float64) []int32

CdlAbandonedBaby - Abandoned Baby

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlAdvanceBlock

func CdlAdvanceBlock(open, high, low, close []float64) []int32

CdlAdvanceBlock - Advance Block

Input = Open, High, Low, Close

Output = int

func CdlBelthold

func CdlBelthold(open, high, low, close []float64) []int32

CdlBelthold - Belt-hold

Input = Open, High, Low, Close

Output = int

func CdlBreakaway

func CdlBreakaway(open, high, low, close []float64) []int32

CdlBreakaway - Breakaway

Input = Open, High, Low, Close

Output = int

func CdlClosingMarubozu

func CdlClosingMarubozu(open, high, low, close []float64) []int32

CdlClosingMarubozu - Closing Marubozu

Input = Open, High, Low, Close

Output = int

func CdlConcealBabySwall

func CdlConcealBabySwall(open, high, low, close []float64) []int32

CdlConcealBabySwall - Concealing Baby Swallow

Input = Open, High, Low, Close

Output = int

func CdlCounterattack

func CdlCounterattack(open, high, low, close []float64) []int32

CdlCounterattack - Counterattack

Input = Open, High, Low, Close

Output = int

func CdlDarkCloudCover

func CdlDarkCloudCover(open, high, low, close []float64, penetration float64) []int32

CdlDarkCloudCover - Dark Cloud Cover

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlDoji

func CdlDoji(open, high, low, close []float64) []int32

CdlDoji - Doji

Input = Open, High, Low, Close

Output = int

func CdlDojiStar

func CdlDojiStar(open, high, low, close []float64) []int32

CdlDojiStar - Doji Star

Input = Open, High, Low, Close

Output = int

func CdlDragonflyDoji

func CdlDragonflyDoji(open, high, low, close []float64) []int32

CdlDragonflyDoji - Dragonfly Doji

Input = Open, High, Low, Close

Output = int

func CdlEngulfing

func CdlEngulfing(open, high, low, close []float64) []int32

CdlEngulfing - Engulfing Pattern

Input = Open, High, Low, Close

Output = int

func CdlEveningDojiStar

func CdlEveningDojiStar(open, high, low, close []float64, penetration float64) []int32

CdlEveningDojiStar - Evening Doji Star

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlEveningStar

func CdlEveningStar(open, high, low, close []float64, penetration float64) []int32

CdlEveningStar - Evening Star

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlGapSidesideWhite

func CdlGapSidesideWhite(open, high, low, close []float64) []int32

CdlGapSidesideWhite - Up/Down-gap side-by-side white lines

Input = Open, High, Low, Close

Output = int

func CdlGravestoneDoji

func CdlGravestoneDoji(open, high, low, close []float64) []int32

CdlGravestoneDoji - Gravestone Doji

Input = Open, High, Low, Close

Output = int

func CdlHammer

func CdlHammer(open, high, low, close []float64) []int32

CdlHammer - Hammer

Input = Open, High, Low, Close

Output = int

func CdlHangingMan

func CdlHangingMan(open, high, low, close []float64) []int32

CdlHangingMan - Hanging Man

Input = Open, High, Low, Close

Output = int

func CdlHarami

func CdlHarami(open, high, low, close []float64) []int32

CdlHarami - Harami Pattern

Input = Open, High, Low, Close

Output = int

func CdlHaramiCross

func CdlHaramiCross(open, high, low, close []float64) []int32

CdlHaramiCross - Harami Cross Pattern

Input = Open, High, Low, Close

Output = int

func CdlHighWave

func CdlHighWave(open, high, low, close []float64) []int32

CdlHighWave - High-Wave Candle

Input = Open, High, Low, Close

Output = int

func CdlHikkake

func CdlHikkake(open, high, low, close []float64) []int32

CdlHikkake - Hikkake Pattern

Input = Open, High, Low, Close

Output = int

func CdlHikkakeMod

func CdlHikkakeMod(open, high, low, close []float64) []int32

CdlHikkakeMod - Modified Hikkake Pattern

Input = Open, High, Low, Close

Output = int

func CdlHomingPigeon

func CdlHomingPigeon(open, high, low, close []float64) []int32

CdlHomingPigeon - Homing Pigeon

Input = Open, High, Low, Close

Output = int

func CdlIdentical3Crows

func CdlIdentical3Crows(open, high, low, close []float64) []int32

CdlIdentical3Crows - Identical Three Crows

Input = Open, High, Low, Close

Output = int

func CdlInNeck

func CdlInNeck(open, high, low, close []float64) []int32

CdlInNeck - In-Neck Pattern

Input = Open, High, Low, Close

Output = int

func CdlInvertedHammer

func CdlInvertedHammer(open, high, low, close []float64) []int32

CdlInvertedHammer - Inverted Hammer

Input = Open, High, Low, Close

Output = int

func CdlKicking

func CdlKicking(open, high, low, close []float64) []int32

CdlKicking - Kicking

Input = Open, High, Low, Close

Output = int

func CdlKickingByLength

func CdlKickingByLength(open, high, low, close []float64) []int32

CdlKickingByLength - Kicking - bull/bear determined by the longer marubozu

Input = Open, High, Low, Close

Output = int

func CdlLadderBottom

func CdlLadderBottom(open, high, low, close []float64) []int32

CdlLadderBottom - Ladder Bottom

Input = Open, High, Low, Close

Output = int

func CdlLongLeggedDoji

func CdlLongLeggedDoji(open, high, low, close []float64) []int32

CdlLongLeggedDoji - Long Legged Doji

Input = Open, High, Low, Close

Output = int

func CdlLongLine

func CdlLongLine(open, high, low, close []float64) []int32

CdlLongLine - Long Line Candle

Input = Open, High, Low, Close

Output = int

func CdlMarubozu

func CdlMarubozu(open, high, low, close []float64) []int32

CdlMarubozu - Marubozu

Input = Open, High, Low, Close

Output = int

func CdlMatHold

func CdlMatHold(open, high, low, close []float64, penetration float64) []int32

CdlMatHold - Mat Hold

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlMatchingLow

func CdlMatchingLow(open, high, low, close []float64) []int32

CdlMatchingLow - Matching Low

Input = Open, High, Low, Close

Output = int

func CdlMorningDojiStar

func CdlMorningDojiStar(open, high, low, close []float64, penetration float64) []int32

CdlMorningDojiStar - Morning Doji Star

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlMorningStar

func CdlMorningStar(open, high, low, close []float64, penetration float64) []int32

CdlMorningStar - Morning Star

Input = Open, High, Low, Close

Output = int

Optional Parameters

-------------------

optInPenetration:(From 0 to TA_REAL_MAX)

Percentage of penetration of a candle within another candle

func CdlOnNeck

func CdlOnNeck(open, high, low, close []float64) []int32

CdlOnNeck - On-Neck Pattern

Input = Open, High, Low, Close

Output = int

func CdlPiercing

func CdlPiercing(open, high, low, close []float64) []int32

CdlPiercing - Piercing Pattern

Input = Open, High, Low, Close

Output = int

func CdlRickshawMan

func CdlRickshawMan(open, high, low, close []float64) []int32

CdlRickshawMan - Rickshaw Man

Input = Open, High, Low, Close

Output = int

func CdlRiseFall3Methods

func CdlRiseFall3Methods(open, high, low, close []float64) []int32

CdlRiseFall3Methods - Rising/Falling Three Methods

Input = Open, High, Low, Close

Output = int

func CdlSeparatingLines

func CdlSeparatingLines(open, high, low, close []float64) []int32

CdlSeparatingLines - Separating Lines

Input = Open, High, Low, Close

Output = int

func CdlShootingStar

func CdlShootingStar(open, high, low, close []float64) []int32

CdlShootingStar - Shooting Star

Input = Open, High, Low, Close

Output = int

func CdlShortLine

func CdlShortLine(open, high, low, close []float64) []int32

CdlShortLine - Short Line Candle

Input = Open, High, Low, Close

Output = int

func CdlSpinningTop

func CdlSpinningTop(open, high, low, close []float64) []int32

CdlSpinningTop - Spinning Top

Input = Open, High, Low, Close

Output = int

func CdlStalledPattern

func CdlStalledPattern(open, high, low, close []float64) []int32

CdlStalledPattern - Stalled Pattern

Input = Open, High, Low, Close

Output = int

func CdlStickSandwich

func CdlStickSandwich(open, high, low, close []float64) []int32

CdlStickSandwich - Stick Sandwich

Input = Open, High, Low, Close

Output = int

func CdlTakuri

func CdlTakuri(open, high, low, close []float64) []int32

CdlTakuri - Takuri (Dragonfly Doji with very long lower shadow)

Input = Open, High, Low, Close

Output = int

func CdlTasukiGap

func CdlTasukiGap(open, high, low, close []float64) []int32

CdlTasukiGap - Tasuki Gap

Input = Open, High, Low, Close

Output = int

func CdlThrusting

func CdlThrusting(open, high, low, close []float64) []int32

CdlThrusting - Thrusting Pattern

Input = Open, High, Low, Close

Output = int

func CdlTristar

func CdlTristar(open, high, low, close []float64) []int32

CdlTristar - Tristar Pattern

Input = Open, High, Low, Close

Output = int

func CdlUnique3River

func CdlUnique3River(open, high, low, close []float64) []int32

CdlUnique3River - Unique 3 River

Input = Open, High, Low, Close

Output = int

func CdlUpsideGap2Crows

func CdlUpsideGap2Crows(open, high, low, close []float64) []int32

CdlUpsideGap2Crows - Upside Gap Two Crows

Input = Open, High, Low, Close

Output = int

func CdlxSideGap3Methods

func CdlxSideGap3Methods(open, high, low, close []float64) []int32

CdlxSideGap3Methods - Upside/Downside Gap Three Methods

Input = Open, High, Low, Close

Output = int

func Ceil

func Ceil(real []float64) []float64

Ceil - Vector Ceil

Input = double

Output = double

func Cmo

func Cmo(real []float64, timePeriod int32) []float64

Cmo - Chande Momentum Oscillator

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Correl

func Correl(real0, real1 []float64, timePeriod int32) []float64

Correl - Pearson's Correlation Coefficient (r)

Input = double, double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Cos

func Cos(real []float64) []float64

Cos - Vector Trigonometric Cos

Input = double

Output = double

func Cosh

func Cosh(real []float64) []float64

Cosh - Vector Trigonometric Cosh

Input = double

Output = double

func Dema

func Dema(real []float64, timePeriod int32) []float64

Dema - Double Exponential Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Div

func Div(real0, real1 []float64) []float64

Div - Vector Arithmetic Div

Input = double, double

Output = double

func Dx

func Dx(high, low, close []float64, timePeriod int32) []float64

Dx - Directional Movement Index

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Ema

func Ema(real []float64, timePeriod int32) []float64

Ema - Exponential Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Exp

func Exp(real []float64) []float64

Exp - Vector Arithmetic Exp

Input = double

Output = double

func Floor

func Floor(real []float64) []float64

Floor - Vector Floor

Input = double

Output = double

func HtDcPeriod

func HtDcPeriod(real []float64) []float64

HtDcPeriod - Hilbert Transform - Dominant Cycle Period

Input = double

Output = double

func HtDcPhase

func HtDcPhase(real []float64) []float64

HtDcPhase - Hilbert Transform - Dominant Cycle Phase

Input = double

Output = double

func HtPhasor

func HtPhasor(real []float64) ([]float64, []float64)

HtPhasor - Hilbert Transform - Phasor Components

Input = double

Output = double, double

func HtSine

func HtSine(real []float64) ([]float64, []float64)

HtSine - Hilbert Transform - SineWave

Input = double

Output = double, double

func HtTrendLine

func HtTrendLine(real []float64) []float64

HtTrendLine - Hilbert Transform - Instantaneous Trendline

Input = double

Output = double

func HtTrendMode

func HtTrendMode(real []float64) []int32

HtTrendMode - Hilbert Transform - Trend vs Cycle Mode

Input = double

Output = int

func Kama

func Kama(real []float64, timePeriod int32) []float64

Kama - Kaufman Adaptive Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func LinearReg

func LinearReg(real []float64, timePeriod int32) []float64

LinearReg - Linear Regression

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func LinearRegAngle

func LinearRegAngle(real []float64, timePeriod int32) []float64

LinearRegAngle - Linear Regression Angle

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func LinearRegIntercept

func LinearRegIntercept(real []float64, timePeriod int32) []float64

LinearRegIntercept - Linear Regression Intercept

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func LinearRegSlope

func LinearRegSlope(real []float64, timePeriod int32) []float64

LinearRegSlope - Linear Regression Slope

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Ln

func Ln(real []float64) []float64

Ln - Vector Log Natural

Input = double

Output = double

func Log10

func Log10(real []float64) []float64

Log10 - Vector Log10

Input = double

Output = double

func Ma

func Ma(real []float64, timePeriod, mAType int32) []float64

Ma - Moving average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

optInMaType:

Type of Moving Average

func Macd

func Macd(real []float64, fastPeriod, slowPeriod, signalPeriod int32) ([]float64, []float64, []float64)

Macd - Moving Average Convergence/Divergence

Input = double

Output = double, double, double

Optional Parameters

-------------------

optInFastPeriod:(From 2 to 100000)

Number of period for the fast MA

optInSlowPeriod:(From 2 to 100000)

Number of period for the slow MA

optInSignalPeriod:(From 1 to 100000)

Smoothing for the signal line (nb of period)

func MacdExt

func MacdExt(real []float64, fastPeriod, fastMAType, slowPeriod, slowMAType, signalPeriod, signalMAType int32) ([]float64, []float64, []float64)

MacdExt - MACD with controllable MA type

Input = double

Output = double, double, double

Optional Parameters

-------------------

optInFastPeriod:(From 2 to 100000)

Number of period for the fast MA

optInFastMAType:

Type of Moving Average for fast MA

optInSlowPeriod:(From 2 to 100000)

Number of period for the slow MA

optInSlowMAType:

Type of Moving Average for slow MA

optInSignalPeriod:(From 1 to 100000)

Smoothing for the signal line (nb of period)

optInSignalMAType:

Type of Moving Average for signal line

func MacdFix

func MacdFix(real []float64, signalPeriod int32) ([]float64, []float64, []float64)

MacdFix - Moving Average Convergence/Divergence Fix 12/26

Input = double

Output = double, double, double

Optional Parameters

-------------------

optInSignalPeriod:(From 1 to 100000)

Smoothing for the signal line (nb of period)

func Mama

func Mama(real []float64, fastLimit, slowLimit float64) ([]float64, []float64)

Mama - MESA Adaptive Moving Average

Input = double

Output = double, double

Optional Parameters

-------------------

optInFastLimit:(From 0.01 to 0.99)

Upper limit use in the adaptive algorithm

optInSlowLimit:(From 0.01 to 0.99)

Lower limit use in the adaptive algorithm

func Mavp

func Mavp(real, periods []float64, minPeriod, maxPeriod, mAType int32) []float64

Mavp - Moving average with variable period

Input = double, double

Output = double

Optional Parameters

-------------------

optInMinPeriod:(From 2 to 100000)

Value less than minimum will be changed to Minimum period

optInMaxPeriod:(From 2 to 100000)

Value higher than maximum will be changed to Maximum period

optInMAType:

Type of Moving Average

func Max

func Max(real []float64, timePeriod int32) []float64

Max - Highest value over a specified period

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MaxIndex

func MaxIndex(real []float64, timePeriod int32) []int32

MaxIndex - Index of highest value over a specified period

Input = double

Output = int

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MedPrice

func MedPrice(high, low []float64) []float64

MedPrice - Median Price

Input = High, Low

Output = double

func Mfi

func Mfi(high, low, close, volume []float64, timePeriod int32) []float64

Mfi - Money Flow Index

Input = High, Low, Close, Volume

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MidPoint

func MidPoint(real []float64, timePeriod int32) []float64

MidPoint - MidPoint over period

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MidPrice

func MidPrice(high, low []float64, timePeriod int32) []float64

MidPrice - Midpoint Price over period

Input = High, Low

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Min

func Min(real []float64, timePeriod int32) []float64

Min - Lowest value over a specified period

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MinIndex

func MinIndex(real []float64, timePeriod int32) []int32

MinIndex - Index of lowest value over a specified period

Input = double

Output = int

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MinMax

func MinMax(real []float64, timePeriod int32) ([]float64, []float64)

MinMax - Lowest and highest values over a specified period

Input = double

Output = double, double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MinMaxIndex

func MinMaxIndex(real []float64, timePeriod int32) ([]int32, []int32)

MinMaxIndex - Indexes of lowest and highest values over a specified period

Input = double

Output = int, int

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func MinusDi

func MinusDi(high, low, close []float64, timePeriod int32) []float64

MinusDi - Minus Directional Indicator

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func MinusDm

func MinusDm(high, low []float64, timePeriod int32) []float64

MinusDm - Minus Directional Movement

Input = High, Low

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Mom

func Mom(real []float64, timePeriod int32) []float64

Mom - Momentum

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Mult

func Mult(real0, real1 []float64) []float64

Mult - Vector Arithmetic Mult

Input = double, double

Output = double

func Natr

func Natr(high, low, close []float64, timePeriod int32) []float64

Natr - Normalized Average True Range

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Obv

func Obv(real, volume []float64) []float64

Obv - On Balance Volume

Input = double, Volume

Output = double

func PlusDi

func PlusDi(high, low, close []float64, timePeriod int32) []float64

PlusDi - Plus Directional Indicator

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func PlusDm

func PlusDm(high, low []float64, timePeriod int32) []float64

PlusDm - Plus Directional Movement

Input = High, Low

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Ppo

func Ppo(real []float64, fastPeriod, slowPeriod, mAType int32) []float64

Ppo - Percentage Price Oscillator

Input = double

Output = double

Optional Parameters

-------------------

optInFastPeriod:(From 2 to 100000)

Number of period for the fast MA

optInSlowPeriod:(From 2 to 100000)

Number of period for the slow MA

optInMAType:

Type of Moving Average

func Roc

func Roc(real []float64, timePeriod int32) []float64

Roc - Rate of change : ((price/prevPrice)-1)*100

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Rocp

func Rocp(real []float64, timePeriod int32) []float64

Rocp - Rate of change Percentage: (price-prevPrice)/prevPrice

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Rocr

func Rocr(real []float64, timePeriod int32) []float64

Rocr - Rate of change ratio: (price/prevPrice)

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Rocr100

func Rocr100(real []float64, timePeriod int32) []float64

Rocr100 - Rate of change ratio 100 scale: (price/prevPrice)*100

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Rsi

func Rsi(real []float64, timePeriod int32) []float64

Rsi - Relative Strength Index

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Sar

func Sar(high, low []float64, acceleration, maximum float64) []float64

Sar - Parabolic Sar

Input = High, Low

Output = double

Optional Parameters

-------------------

optInAcceleration:(From 0 to TA_REAL_MAX)

Acceleration Factor used up to the Maximum value

optInMaximum:(From 0 to TA_REAL_MAX)

Acceleration Factor Maximum value

func SarExt

func SarExt(high, low []float64, startValue, offsetOnReverse, accelerationInitLong, accelerationLong, accelerationMaxLong, accelerationInitShort, accelerationShort, accelerationMaxShort float64) []float64

SarExt - Parabolic SAR - Extended

Input = High, Low

Output = double

Optional Parameters

-------------------

optInStartValue:(From TA_REAL_MIN to TA_REAL_MAX)

Start value and direction. 0 for Auto, >0 for Long, <0 for Short

optInOffsetOnReverse:(From 0 to TA_REAL_MAX)

Percent offset added/removed to initial stop on short/long reversal

optInAccelerationInitLong:(From 0 to TA_REAL_MAX)

Acceleration Factor initial value for the Long direction

optInAccelerationLong:(From 0 to TA_REAL_MAX)

Acceleration Factor for the Long direction

optInAccelerationMaxLong:(From 0 to TA_REAL_MAX)

Acceleration Factor maximum value for the Long direction

optInAccelerationInitShort:(From 0 to TA_REAL_MAX)

Acceleration Factor initial value for the Short direction

optInAccelerationShort:(From 0 to TA_REAL_MAX)

Acceleration Factor for the Short direction

optInAccelerationMaxShort:(From 0 to TA_REAL_MAX)

Acceleration Factor maximum value for the Short direction

func Sin

func Sin(real []float64) []float64

Sin - Vector Trigonometric Sin

Input = double

Output = double

func Sinh

func Sinh(real []float64) []float64

Sinh - Vector Trigonometric Sinh

Input = double

Output = double

func Sma

func Sma(real []float64, timePeriod int32) []float64

Sma - Simple Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Sqrt

func Sqrt(real []float64) []float64

Sqrt - Vector Square Root

Input = double

Output = double

func StdDev

func StdDev(real []float64, timePeriod int32, nbDev float64) []float64

StdDev - Standard Deviation

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

optInNbDev:(From TA_REAL_MIN to TA_REAL_MAX)

Nb of deviations

func Stoch

func Stoch(high, low, close []float64, fastKPeriod, slowKPeriod, slowKMAType, slowDPeriod, slowDMAType int32) ([]float64, []float64)

Stoch - Stochastic

Input = High, Low, Close

Output = double, double

Optional Parameters

-------------------

optInFastK_Period:(From 1 to 100000)

Time period for building the Fast-K line

optInSlowK_Period:(From 1 to 100000)

Smoothing for making the Slow-K line. Usually set to 3

optInSlowK_MAType:

Type of Moving Average for Slow-K

optInSlowD_Period:(From 1 to 100000)

Smoothing for making the Slow-D line

optInSlowD_MAType:

Type of Moving Average for Slow-D

func StochRsi

func StochRsi(real []float64, timePeriod, fastKPeriod, fastDPeriod, fastDMAType int32) ([]float64, []float64)

StochRsi - Stochastic Relative Strength Index

Input = double

Output = double, double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

optInFastK_Period:(From 1 to 100000)

Time period for building the Fast-K line

optInFastD_Period:(From 1 to 100000)

Smoothing for making the Fast-D line. Usually set to 3

optInFastD_MAType:

Type of Moving Average for Fast-D

func Stochf

func Stochf(high, low, close []float64, fastKPeriod, fastDPeriod, fastDMAType int32) ([]float64, []float64)

Stochf - Stochastic Fast

Input = High, Low, Close

Output = double, double

Optional Parameters

-------------------

optInFastK_Period:(From 1 to 100000)

Time period for building the Fast-K line

optInFastD_Period:(From 1 to 100000)

Smoothing for making the Fast-D line. Usually set to 3

optInFastD_MAType:

Type of Moving Average for Fast-D

func Sub

func Sub(real0, real1 []float64) []float64

Sub - Vector Arithmetic Substraction

Input = double, double

Output = double

func Sum

func Sum(real []float64, timePeriod int32) []float64

Sum - Summation

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func T3

func T3(real []float64, timePeriod int32, vFactor float64) []float64

T3 - Triple Exponential Moving Average (T3)

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

optInVFactor:(From 0 to 1)

Volume Factor

func Tan

func Tan(real []float64) []float64

Tan - Vector Trigonometric Tan

Input = double

Output = double

func Tanh

func Tanh(real []float64) []float64

Tanh - Vector Trigonometric Tanh

Input = double

Output = double

func Tema

func Tema(real []float64, timePeriod int32) []float64

Tema - Triple Exponential Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Trange

func Trange(high, low, close []float64) []float64

Trange - True Range

Input = High, Low, Close

Output = double

func TriMa

func TriMa(real []float64, timePeriod int32) []float64

TriMa - Triangular Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Trix

func Trix(real []float64, timePeriod int32) []float64

Trix - 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

func Tsf

func Tsf(real []float64, timePeriod int32) []float64

Tsf - Time Series Forecast

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func TypPrice

func TypPrice(high, low, close []float64) []float64

TypPrice - Typical Price

Input = High, Low, Close

Output = double

func UltOsc

func UltOsc(high, low, close []float64, timePeriod1, timePeriod2, timePeriod3 int32) []float64

UltOsc - Ultimate Oscillator

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod1:(From 1 to 100000)

Number of bars for 1st period.

optInTimePeriod2:(From 1 to 100000)

Number of bars fro 2nd period

optInTimePeriod3:(From 1 to 100000)

Number of bars for 3rd period

func Var

func Var(real []float64, timePeriod int32, nbDev float64) []float64

Var - Variance

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 1 to 100000)

Number of period

optInNbDev:(From TA_REAL_MIN to TA_REAL_MAX)

Nb of deviations

func WclPrice

func WclPrice(high, low, close []float64) []float64

WclPrice - Weighted Close Price

Input = High, Low, Close

Output = double

func Willr

func Willr(high, low, close []float64, timePeriod int32) []float64

Willr - Williams' %R

Input = High, Low, Close

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

func Wma

func Wma(real []float64, timePeriod int32) []float64

Wma - Weighted Moving Average

Input = double

Output = double

Optional Parameters

-------------------

optInTimePeriod:(From 2 to 100000)

Number of period

Types

This section is empty.

Jump to

Keyboard shortcuts

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