feat: add momentum indicators and expand function coverage
Add a full Momentum Indicators category (momentum_indicators.go) with 26 new wrapped functions: ADX, ADXR, APO, AROON, AROONOSC, BOP, CCI, CMO, DX, IMI, MACD, MACDEXT, MACDFIX, MFI, MOM, MINUS_DI, MINUS_DM, PLUS_DI, PLUS_DM, PPO, ROC, ROCP, ROCR, ROCR100, RSI, STOCH, STOCHF, STOCHRSI, TRIX, ULTOSC, WILLR - Register all new native symbols in Load() (loader.go) - Declare corresponding native function variables in functions.go - Add MAType enum (ta_ma_type.go) for MA-type parameters (SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3) - Add taResult constants (ta_result.go) mirroring TA-Lib return codes - Each wrapper includes a doc comment with formula, interpretation, and known behavioral edge-case notes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package talib
|
||||
|
||||
type MAType int32
|
||||
|
||||
const (
|
||||
SMA MAType = 0 // Simple Moving Average
|
||||
EMA MAType = 1 // Exponential Moving Average
|
||||
WMA MAType = 2 // Weighted Moving Average
|
||||
DEMA MAType = 3 // Double Exponential Moving Average
|
||||
TEMA MAType = 4 // Triple Exponential Moving Average
|
||||
TRIMA MAType = 5 // Triangular Moving Average
|
||||
KAMA MAType = 6 // Kaufman Adaptive Moving Average
|
||||
MAMA MAType = 7 // MESA Adaptive Moving Average
|
||||
T3 MAType = 8 // Triple Exponential Moving Average (T3)
|
||||
)
|
||||
Reference in New Issue
Block a user