mangrove-kb — Open-source signals and indicators
mangrove-kb is the MIT-licensed Python package that backs everything in the Mangrove ecosystem. It contains the canonical implementations of all 233 trading signals and 99 technical indicators, plus the knowledge-base content as embedded markdown.
If you do not need the hosted platform, you can use this library standalone. Compute indicators, evaluate signals on your own DataFrames, ship it in your own pipeline. No API key, no network call.
Install
What’s inside
- 233 trading signals decorated with
@RuleRegistry.register("name"). 112 TRIGGER, 121 FILTER. Categories: Momentum (42), Trend (88), Volume (33), Volatility (20), Patterns (40), On-Chain (10). - 99 technical indicator classes including 27 candlestick pattern indicators.
- 11 trading-education documents covering market foundations through quantitative analysis.
Hello world — evaluate a signal
Hello world — compute an indicator
Discover signals at runtime
Range and Default per parameter), parsed from the function’s docstring at import time. The docstring is the single source of truth.
Working with indicator classes
Every indicator follows a consistent shape:{"close": series} or {"high": ..., "low": ..., "close": ...} depending on what the indicator needs. Parameter names follow the standardized window convention (no lookback/period/length).
When to use this vs. the platform
- Use
mangrove-kbwhen you want pure compute, full control, and zero network. Great for research notebooks, custom backtest frameworks, embedding in trading bots. - Use
mangroveaiwhen you want managed strategies, hosted backtests, the AI copilot, multi-user features. - Use the KB server when an agent needs signal/indicator metadata and computation through MCP.
Source
- GitHub: MangroveKnowledgeBase (MIT)
- PyPI:
mangrove-kb - This documentation site is generated from the same repo.