Files
fn_registry/functions/finance/rsi.md
T
egutierrez cfdf515228 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

38 lines
1011 B
Markdown

---
name: rsi
kind: function
lang: go
domain: finance
version: "1.0.0"
purity: pure
signature: "func RSI(data []float64, period int) []float64"
description: "Calcula el Relative Strength Index (RSI) usando suavizado de Wilder."
tags: [finance, indicator, rsi, momentum, pendiente-usar]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: ""
imports: []
params:
- name: data
desc: "slice de precios de cierre o valores de serie temporal"
- name: period
desc: "período de cálculo (ej: 5, 14, 21 días)"
output: "slice de valores RSI del mismo tamaño que data, rango [0, 100], primeros period elementos son 0"
tested: false
tests: []
test_file_path: ""
file_path: "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
```go
result := finance.RSI([]float64{44, 44.34, 44.09, 43.61, 44.33, 44.83, 45.10, 45.42, 45.84}, 5)
```