Files
fn_registry/functions/finance/bollinger_bands.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

947 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
bollinger_bands function go finance 1.0.0 pure func BollingerBands(data []float64, period int, numStdDev float64) (upper, middle, lower []float64) Calcula las bandas de Bollinger (upper, middle, lower) para una serie de precios.
finance
indicator
bollinger
bands
bollinger_result_go_finance
bollinger_result_go_finance
false
math
false
functions/finance/bollinger_bands.go

bollinger_bands

Calcula las bandas de Bollinger. La banda media es la SMA, y las bandas superior e inferior estan a numStdDev desviaciones estandar de la media. Usa desviacion estandar poblacional.

Ejemplo

upper, middle, lower := finance.BollingerBands(
    []float64{22, 24, 23, 25, 26, 28, 27, 29, 30, 28},
    5, 2.0,
)