5f4f1f7508
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
995 B
995 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, 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 | params | output | 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. |
|
false |
|
slice de valores RSI del mismo tamaño que data, rango [0, 100], primeros period elementos son 0 | 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)