Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMO ¶
type CMO struct {
// contains filtered or unexported fields
}
CMO - Chande Momentum Oscillator (https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/cmo)
type CMOS ¶
type CMOS struct {
// contains filtered or unexported fields
}
CMOS is a smoothed version of the Chande Momentum Oscillator. This is the version of CMO utilized by ta-lib.
func NewCMOS ¶
func NewCMOS(inTimePeriod int, warmType WarmupType) *CMOS
NewCMOS constructs a new CMOS.
type DEMA ¶
type DEMA struct {
// contains filtered or unexported fields
}
DEMA - Double Exponential Moving Average (https://en.wikipedia.org/wiki/Double_exponential_moving_average)
func NewDEMA ¶
func NewDEMA(inTimePeriod int, warmType WarmupType) *DEMA
NewDEMA constructs a new DEMA.
When warmed with WarmSMA the first inTimePeriod samples will result in a simple average, switching to exponential moving average after warmup is complete.
When warmed with WarmEMA the algorithm immediately starts using an exponential moving average for the output values. During the warmup period the alpha value is scaled to prevent unbalanced weighting on initial values.
type EMA ¶
type EMA struct {
// contains filtered or unexported fields
}
EMA - Exponential Moving Average (http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_averages#exponential_moving_average_calculation)
func NewEMA ¶
func NewEMA(inTimePeriod int, warmType WarmupType) *EMA
NewEMA constructs a new EMA.
When warmed with WarmSMA the first inTimePeriod samples will result in a simple average, switching to exponential moving average after warmup is complete.
When warmed with WarmEMA the algorithm immediately starts using an exponential moving average for the output values. During the warmup period the alpha value is scaled to prevent unbalanced weighting on initial values.
type KAMA ¶
type KAMA struct {
// contains filtered or unexported fields
}
KAMA - Kaufman's Adaptive Moving Average (http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:kaufman_s_adaptive_moving_average)
type KER ¶
type KER struct {
// contains filtered or unexported fields
}
KER - Kaufman's Efficiency Ratio (http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:kaufman_s_adaptive_moving_average#efficiency_ratio_er)
type RSI ¶
type RSI struct {
// contains filtered or unexported fields
}
RSI - Relative Strength Index (http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:relative_strength_index_rsi)
type TEMA ¶
type TEMA struct {
// contains filtered or unexported fields
}
TEMA - Triple Exponential Moving Average (https://en.wikipedia.org/wiki/Triple_exponential_moving_average)
func NewTEMA ¶
func NewTEMA(inTimePeriod int, warmType WarmupType) *TEMA
NewTEMA constructs a new TEMA.
When warmed with WarmSMA the first inTimePeriod samples will result in a simple average, switching to exponential moving average after warmup is complete.
When warmed with WarmEMA the algorithm immediately starts using an exponential moving average for the output values. During the warmup period the alpha value is scaled to prevent unbalanced weighting on initial values.
type TRIX ¶
type TRIX struct {
// contains filtered or unexported fields
}
Trix - TRIple Exponential average (http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:trix)
func NewTRIX ¶
func NewTRIX(inTimePeriod int, warmType WarmupType) *TRIX
NewTRIX constructs a new TRIX.
type WarmupType ¶
type WarmupType int8
const ( WarmEMA WarmupType = iota // Exponential Moving Average WarmSMA // Simple Moving Average )
func ParseWarmupType ¶
func ParseWarmupType(wt string) (WarmupType, error)