惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Y
Y Combinator Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
博客园_首页
小众软件
小众软件
I
InfoQ
J
Java Code Geeks
月光博客
月光博客
S
Secure Thoughts
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Latest news
Latest news
G
GRAHAM CLULEY
IT之家
IT之家
C
Cisco Blogs
Last Week in AI
Last Week in AI
Engineering at Meta
Engineering at Meta
L
LangChain Blog
The Register - Security
The Register - Security
SecWiki News
SecWiki News
M
MIT News - Artificial intelligence
NISL@THU
NISL@THU
T
Tenable Blog
博客园 - Franky
美团技术团队
I
Intezer
U
Unit 42
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
SegmentFault 最新的问题
C
Cyber Attacks, Cyber Crime and Cyber Security

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Sigil — An MCP-Native Technical Analysis Runtime That Talks to Claude
manja316 · 2026-04-28 · via DEV Community

I needed a TA library that did three things I couldn't find together:

  1. Indicators that aren't a stack of opinionated TA-Lib glue. Pure Python, deterministic, zero runtime deps.
  2. Composite signals my way, not LuxAlgo's. No copying. Different naming. Different weighting.
  3. MCP-native runtime so Claude / Cursor / Cline can query live signals without glue code.

So I built one. It's called Sigil (pip install sigil-ta), and I'm releasing v0.1.0 today.


What's in the box

8 core indicators — pure Python, no numpy required

Indicator Function
Simple Moving Average sma(closes, period)
Exponential Moving Average ema(closes, period)
Wilder RSI rsi(closes, period=14)
MACD macd(closes, 12, 26, 9) — returns line, signal, histogram
Bollinger Bands bollinger_bands(closes, 20, 2.0) — upper/middle/lower
Wilder ATR atr(series, 14)
Supertrend supertrend(series, 10, 3.0) — line + direction
Stochastic stochastic(series, 14, 3) — %K and %D

All deterministic, all return list[float | None] aligned to input length, with None during the warm-up period. No silent NaN propagation, no magic resampling, no exotic dependencies.

2 composite signals — our naming, our weighting

reversion_score(series) → list of values in [-1, +1]

Combines RSI deviation from 50, Bollinger Band position, and ATR-normalized deviation from the 20-bar SMA. Score of +1 means strongly oversold (likely reversion up); -1 means strongly overbought.

momentum_composite(series) → list of values in [-1, +1]

RSI deviation, MACD histogram (volatility-normalized), and Supertrend direction. +1 means strong sustained uptrend; -1 means strong downtrend.

I tested both on 500 hours of BTCUSDT 1h data:

ReversionScore (long+short, 10bps fees):
  24 trades, 66.7% WR, total_pnl_pct -2.84%, avg_bars_held 14.0

MomentumComposite (long-only, 10bps fees):
  6 trades, 50.0% WR, total_pnl_pct +2.69%, avg_bars_held 35.5

Enter fullscreen mode Exit fullscreen mode

Real numbers from a real test. Not impressive, not unimpressive — exactly what you should expect from generic TA on a 500-bar window. The point isn't that these signals print money; the point is that they're honestly measurable, you can tune them, and they live next to a backtest harness with realistic fees and no look-ahead.

1 unique signal — Polymarket Sentiment Divergence (PSD)

This is the one that doesn't exist in any other TA library, because it requires data only Polymarket has.

PSD measures divergence between an underlying asset's price action and the resolved sentiment of a related Polymarket prediction market.

Example: BTC trades on Binance. Polymarket has a contract "Will BTC be above $80,000 by month-end?" The Polymarket price is a sentiment time-series — when bettors think yes is more likely, the price rises; when they think no, it falls.

PSD scores +1 when:

  • BTC price is dropping
  • AND the Polymarket "yes" probability is rising
  • = bullish divergence — sentiment thinks the dip is buying opportunity

PSD scores -1 when:

  • BTC price is rising
  • AND the Polymarket "yes" probability is falling
  • = bearish divergence — sentiment doesn't believe the rally

When both move together, PSD is near zero (no signal).

Why this matters: pure-TA libraries (LuxAlgo, ta, pandas-ta, ta-lib) do not have access to prediction-market sentiment. PSD captures information that a chart-only signal cannot see. It's an integration play, not a math play — anyone can copy the formula, but they need a Polymarket data layer to use it. Sigil includes the Polymarket fetcher (fetch_polymarket_price_history(token_id)) so the integration is built in.

Backtest harness with realistic fees

from sigil.backtest import backtest_signal
result = backtest_signal(
    series=ohlcv_series,
    signal=reversion_scores,
    entry_threshold=0.5,
    exit_threshold=0.0,
    fee_per_side_pct=0.001,  # 10 bps each side
)
print(result.summary())
# Backtest: 24 trades, WR 66.7% (16/24), total_pnl_pct -2.84%, ...

Enter fullscreen mode Exit fullscreen mode

Decisions on bar i, fills at bar i+1 open. No look-ahead. Default 10 bps per side fee (realistic for retail crypto).

Live data fetchers

from sigil.data import fetch_binance_ohlcv, fetch_polymarket_price_history

btc = fetch_binance_ohlcv("BTCUSDT", "1h", limit=500)
pm = fetch_polymarket_price_history(token_id="...", fidelity=60)

Enter fullscreen mode Exit fullscreen mode

Both use only Python's stdlib for HTTP. Zero runtime dependencies in core. Network only when you call the fetcher.


The MCP angle: indicators as Claude tools

If you've used Claude Desktop, Cursor, or Cline, you know how MCP tools work — they appear in the LLM's tool catalog and get called natively in the conversation.

Sigil exposes 14 tools through FastMCP:

pip install sigil-ta[mcp]
sigil-mcp                # stdio transport (Claude Desktop / Cursor / Cline)
sigil-mcp --transport http --port 8765   # HTTP transport

Enter fullscreen mode Exit fullscreen mode

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "sigil": { "command": "sigil-mcp" }
  }
}

Enter fullscreen mode Exit fullscreen mode

Then in Claude:

"Fetch the last 200 hours of BTCUSDT and compute the RSI and Bollinger Bands."

"Run a Supertrend backtest on ETHUSDT with default params."

"What's the MomentumComposite for SOLUSDT right now?"

The agent calls fetch_binance_ohlcv, then compute_rsi, then compute_bollinger_bands, and shows you the result. No glue code.

This is how I run my own analysis now. I haven't opened a TradingView tab in two weeks. Claude does the indicator queries directly, and when I want a chart, I ask it to render one with plotly.


Streamlit dashboard

pip install sigil-ta[dashboard]
sigil-dashboard

Enter fullscreen mode Exit fullscreen mode

A simple chart-and-indicator UI for when you want to look at price visually rather than asking the agent. Pick a symbol, an interval, an indicator, see the output live. Backtest panel underneath for the composite signals.

It's not a TradingView competitor — it's a 200-line proof that the same indicators work in a UI when you want one.


Design choices

Pure stdlib core. No numpy, pandas, scipy required for indicators. Every implementation is plain Python doing arithmetic. This means:

  • Installs in milliseconds. No compilation.
  • Runs on cold-start serverless.
  • Never breaks because of a third-party version bump.

pandas, streamlit, plotly, mcp, fastmcp are optional extras (pip install sigil-ta[mcp], pip install sigil-ta[dashboard]).

Indicators return list[float | None] aligned to input length. This is unfashionable. Most libraries return numpy arrays with NaN warmup or pandas Series with index alignment. I find lists with explicit None more debuggable — when something's wrong, you can see exactly which bars are warmup and which are data.

Test coverage is the contract. 47 tests at v0.1, including:

  • Constant-input behavior for every indicator
  • Monotone-up RSI = 100, monotone-down = 0
  • Stochastic at top of range = 100, at bottom = 0
  • Bollinger Bands widen with volatility
  • ATR converges on constant range
  • Supertrend direction flips on trend reversal
  • Backtest harness handles long-only, short-allowed, fee accounting
  • All MCP tools register correctly
git clone https://github.com/LuciferForge/sigil
cd sigil
pip install -e ".[dev,mcp]"
pytest tests/ -v
# 47 passed in 3.18s

Enter fullscreen mode Exit fullscreen mode


What's next

v0.1 ships today with the core indicators + composite signals + PSD + backtest + MCP + dashboard. Roadmap:

  • v0.2 — More indicators: ADX, Ichimoku, OBV, VWAP, Heikin-Ashi
  • v0.3 — Walk-forward backtest with parameter sweeps
  • v0.4 — Multi-timeframe signal fusion (15m + 1h + 4h alignment in one decision)
  • v0.5 — Live signal alerting (Discord / Telegram / Slack)
  • v0.6 — Public ground-truth ledger at signals.protodex.io

If there's an indicator you'd use and don't see, open an issue — happy to prioritize.


Why ship this open source

I run a Polymarket trading bot (308 trades, 80.2% WR, all data public). I needed a TA library to ask "should I add an RSI filter to the entry signal?" and didn't want to wrap an existing library that has 50+ dependencies and 5,000 lines of pandas magic.

So I built the simplest thing that worked. Then I made it MCP-native because that's how I do all my analysis now. Then I added PSD because that's the part that's actually mine.

Open-sourcing it isn't charity. The TA logic isn't the moat — the moat is the integration with Polymarket data, and that data layer is also what I sell access to via api.protodex.io. If you want indicators on stocks or crypto, Sigil works fine standalone; if you want PSD on prediction markets, you need the Polymarket data, and that's where the funnel is.

But honestly, even if there were no funnel — building a TA library this clean was satisfying enough that the time would have been worth it for me alone.


Resources

If you ship a project on top of Sigil, send me the link.


LuciferForge runs a public-audited Polymarket trading bot, protodex.io (5,800+ MCP servers indexed), and the free Polymarket data API.