cfdf515228
- .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>
1.4 KiB
1.4 KiB
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 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bollinger_bands | function | py | finance | 1.0.0 | pure | def bollinger_bands(data: list, period: int, num_std: float) -> tuple | Calcula las Bandas de Bollinger (upper, middle, lower) de una serie de precios. |
|
|
false |
|
tupla (upper, middle, lower) donde cada elemento es una lista de floats con len(data) - period + 1 elementos | false | python/functions/finance/finance.py |
Ejemplo
prices = [10, 11, 12, 13, 14, 15, 14, 13, 12, 11]
upper, middle, lower = bollinger_bands(prices, 5, 2.0)
# middle es la SMA(5), upper/lower son middle +/- 2*std
Notas
Retorna tupla de tres listas (upper, middle, lower). Cada lista tiene len(data) - period + 1 elementos. La desviacion estandar se calcula sobre la ventana de tamanio period (poblacional, no muestral). Usa internamente la funcion sma para la banda media.