Files
fn_registry/functions/finance/rsi.md
T
egutierrez 113c6dfd71 feat: 15 funciones finance — indicadores, riesgo e IO de mercado
11 funciones puras con implementación real:
SMA, EMA, RSI, BollingerBands, VWAP, LogReturn, AnnualizedVolatility,
SharpeRatio, MaxDrawdown, NormalizeOHLCV, TickToOHLCV

4 funciones impuras (stubs):
FetchOHLCV, StreamTicks, WriteOHLCVToParquet, LoadOHLCVFromDuckDB

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 02:23:31 +01:00

726 B

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports tested tests test_file_path file_path
rsi function go finance 1.0.0 pure func RSI(data []float64, period int) []float64 Calcula el Relative Strength Index (RSI) usando suavizado de Wilder.
finance
indicator
rsi
momentum
false
false
functions/finance/rsi.go

rsi

Calcula el Relative Strength Index (RSI) con el metodo de suavizado de Wilder. Los primeros period elementos son 0. El RSI oscila entre 0 y 100.

Ejemplo

result := finance.RSI([]float64{44, 44.34, 44.09, 43.61, 44.33, 44.83, 45.10, 45.42, 45.84}, 5)