Documentation ¶
Index ¶
- func ATR(inHigh, inLow, inClose []float64, inTimePeriod int) []float64
- func BBANDS(inReal []float64, inTimePeriod int, inNbDevUp, inNbDevDn float64, ...) (upper, middle, lower []float64)
- func CorrelationCoefficient(c1, c2 []float64, period int) []float64
- func EMA(in []float64, period int) []float64
- func MA(inReal []float64, inTimePeriod int, inMAType MaType) []float64
- func MACD(values []float64, fastPeriod, slowPeriod, signalPeriod int) (macdValues, signalPeriodValues, histogramValues []float64)
- func MFI(inHigh, inLow, inClose, inVolume []float64, inTimePeriod int) []float64
- func OBV(closeIn, volIn []float64) []float64
- func RSI(inReal []float64, inTimePeriod int) []float64
- func SMA(in []float64, period int) []float64
- type MaType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BBANDS ¶
func BBANDS(inReal []float64, inTimePeriod int, inNbDevUp, inNbDevDn float64, inMAType MaType) (upper, middle, lower []float64)
BBANDS returns the Bollinger Bands for the given period
func CorrelationCoefficient ¶
CorrelationCoefficient implements correlation coefficient
func MACD ¶
func MACD(values []float64, fastPeriod, slowPeriod, signalPeriod int) (macdValues, signalPeriodValues, histogramValues []float64)
MACD returns the Moving Average Convergence Divergence indicator for the given fastPeriod, slowPeriod and signalPeriod
func MFI ¶
MFI returns Money Flow Index for the given period nolint gocyclo alternatives are to use reflection this is code increase v performance cost
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.