Skip to main content
Glama

VARRD

PyPI MCP Transport License MCP Badge

在大约 3 分钟内将任何交易想法转化为经过统计验证的优势。

pip install varrd

随心提问

varrd research "Does buying SPY after a 3-day losing streak actually work?"

varrd research "When VIX spikes above 30, is there a bounce in ES?"

varrd research "Is there a seasonal pattern in wheat before harvest?"

varrd research "What happens to gold when the dollar drops 3 days straight?"

varrd research "Does Bitcoin rally after the halving?"

varrd research "When crude oil drops 5% in a week, what happens next?"

每一个问题都会得到真实数据、带有信号标记的图表、统计测试以及明确的答案。

Related MCP server: QuantConnect MCP Server

你将获得什么

发现优势

STRONG EDGE — Statistically significant vs both zero and market baseline.

  Direction:    LONG
  Win Rate:     62%
  Sharpe:       1.45
  Signals:      247

  Trade Setup:
    Entry:       $5,150.25
    Stop Loss:   $5,122.00
    Take Profit: $5,192.50
    Risk/Reward: 1:1.5

无优势

NO EDGE — Neither test passed. No tradeable signal found.

You found out for 25 cents instead of $25,000 in live losses.

两者都是有价值的结果。


为什么我不能直接让 Claude / ChatGPT 来做这件事?

因为正确测试交易想法非常困难,而且有十几种方法会意外产生看起来很棒但在实际生产中却会亏损的虚假结果。

LLM 本身会很乐意为你编写回测,向你展示漂亮的权益曲线,并告诉你它有 70% 的胜率。问题在于:这一切都不是真实的。LLM 没有市场数据,没有测试环境,也没有防止过度拟合、挑选数据或胡编乱造的护栏。

即使你给 LLM 提供真实数据(例如在 Claude Code 或 Cursor 中),它仍然无法正确完成这项工作。原因如下:

测试交易想法时可能出现的问题——以及 VARRD 如何处理:

  • 过度拟合 (Overfitting) — 不断调整策略直到它在历史数据上看起来很好。VARRD 会保留未见过的数据并对其进行一次性测试。在查看结果后,你无法重新运行它。

  • 挑选结果 (Cherry-picking results) — 测试 50 种变体并只展示获胜的那一个。VARRD 会跟踪你运行的每一次测试,并随着测试次数的增加自动提高显著性门槛。

  • p-hacking — 操纵数字直到得到“显著”结果。VARRD 会针对多重比较进行校正,确保幸运的结果不会被当作真实结果通过。

  • 前瞻偏差 (Lookahead bias) — 在公式中意外使用未来数据。VARRD 在沙盒内核中运行,这在结构上使其成为不可能。

  • 测试类型错误 — 有些想法需要远期收益分析,有些则需要带有止损和目标的全面模拟。VARRD 拥有一支专门的代理团队,负责为每个问题确定正确的测试方法。

  • 跨市场污染 — 在一个市场进行测试,但信号实际上来自另一个市场。VARRD 会隔离并对齐跨市场和时间框架的数据。

  • 捏造统计数据 — LLM 会为了听起来自信而编造数字。在 VARRD 中,每一个统计数据都来自确定性的计算。AI 负责解释结果,从不生成结果。

  • 基于 ATR 的头寸规模调整 — 真正的优势需要真正的风险管理。VARRD 根据实际波动率而非任意百分比来计算止损和止盈。

  • 展示当前正在发生的情况 — 如果你无法看到信号何时触发,那么经过验证的优势就毫无用处。VARRD 会扫描实时数据,并准确告诉你信号何时处于活跃状态,并提供最新的入场和出场水平。

LLM 是没有实验室的大脑。 它可以推理交易想法,但无法在受控环境中测试它们。VARRD 就是那个实验室——它是专门构建的基础设施,每一项测试都被跟踪,每一个结果都经过验证,并且那十几种意外作弊的方法在系统层面(而非提示词层面)被拦截。


快速入门 — Python

from varrd import VARRD

v = VARRD()  # auto-creates free account, $2 in credits

# Research a trading idea
r = v.research("When RSI drops below 25 on ES, is there a bounce?")
r = v.research("test it", session_id=r.session_id)

print(r.context.edge_verdict)  # "STRONG EDGE" / "NO EDGE"

# Get exact trade levels
r = v.research("show me the trade setup", session_id=r.session_id)
# What's firing right now across all your strategies?
signals = v.scan(only_firing=True)
for s in signals.results:
    print(f"{s.name}: {s.direction} {s.market} @ ${s.entry_price}")
# Morning briefing — today's news connected to your specific edges
b = v.briefing()
print(b.news)
# "**ES selling accelerates into the open** Three consecutive lower highs..."
# "↳ Your ES mean-reversion setups are live territory here..."
# Let VARRD discover edges autonomously
result = v.discover("mean reversion on futures")
print(result.edge_verdict, result.market, result.win_rate)

快速入门 — CLI

# Full research workflow (auto-follows chart → test → trade setup)
varrd research "When wheat drops 3 days in a row, is there a snap-back?"

# What's firing right now?
varrd scan --only-firing

# Personalized market briefing — news filtered to your edge library
varrd briefing

# Search saved strategies
varrd search "momentum on grains"

# Let VARRD discover edges on its own
varrd discover "mean reversion on futures"

与 AI 代理配合使用

Claude Desktop / Claude Code / Cursor

选项 1 — 直接 HTTP (Claude Code, Cursor, OpenBB):

{
  "mcpServers": {
    "varrd": {
      "transport": {
        "type": "streamable-http",
        "url": "https://app.varrd.com/mcp"
      }
    }
  }
}

选项 2 — 通过 mcp-remote (Claude Desktop, 任何 stdio 客户端):

{
  "mcpServers": {
    "varrd": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://app.varrd.com/mcp"]
    }
  }
}

无需 API 密钥。然后只需提问:“当美联储利率决议后黄金飙升时,是否存在某种模式?”

OpenBB Workspace

VARRD 作为 MCP 服务器直接插入 OpenBB Workspace

  1. 打开 Workspace → 点击 MCP 服务器面板中的“+”

  2. 输入 https://app.varrd.com/mcp

  3. VARRD 的工具将出现在你的 Copilot 中 — 研究想法、扫描信号、搜索策略

OpenBB 为你提供数据。VARRD 告诉你你的想法是否有优势。

交易机器人 (Freqtrade, Jesse, Hummingbot, OctoBot, NautilusTrader)

VARRD 在你部署策略之前验证其是否具有真正的优势。适用于任何机器人:

from varrd import VARRD
from varrd.freqtrade import generate_strategy

v = VARRD()
result = v.discover("RSI oversold reversal on BTC")

if result.has_edge:
    hyp = v.get_hypothesis(result.hypothesis_id)
    strategy_code, config = generate_strategy(hyp)
    # Drop into your bot's strategies/ folder and run it

机器人

VARRD 接入方式

Freqtrade

varrd.freqtrade 生成带有 ATR 止损的即用型 IStrategy 文件

Jesse

varrd.jesse 生成带有 ATR 止损的即用型 Strategy 文件

Hummingbot

在部署到做市之前验证方向性信号

OctoBot

通过 VARRD 的 MCP 服务器预先验证任何触手策略

NautilusTrader

实时部署前的统计优势验证

模式:先验证,后部署。大多数策略无法通过统计测试——花 0.25 美元发现这一点比花 25,000 美元要好得多。

CrewAI

from crewai import Agent, Task, Crew

researcher = Agent(
    role="Trading Researcher",
    goal="Find statistically validated trading edges",
    backstory="You are a quantitative researcher who tests trading ideas rigorously.",
    mcps=[{"type": "streamable-http", "url": "https://app.varrd.com/mcp"}]
)

task = Task(
    description="Research whether RSI oversold conditions on ES lead to a bounce within 5 days.",
    agent=researcher,
    expected_output="Edge verdict with trade setup if edge is found."
)

crew = Crew(agents=[researcher], tasks=[task])
result = crew.kickoff()

LangChain / LangGraph

from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_anthropic import ChatAnthropic

model = ChatAnthropic(model="claude-sonnet-4-20250514")

async with MultiServerMCPClient({
    "varrd": {"url": "https://app.varrd.com/mcp", "transport": "streamable_http"}
}) as client:
    agent = create_react_agent(model, client.get_tools())
    result = await agent.ainvoke({"messages": [
        {"role": "user", "content": "Does gold rally when the dollar drops 3 days in a row?"}
    ]})

Raw MCP (任何客户端)

# Any MCP-compatible client can connect to:
https://app.varrd.com/mcp
# Transport: Streamable HTTP | No auth required | $2 free credits

8 项统计护栏(基础设施强制执行)

每一项测试都会自动通过这些护栏。你无法跳过它们。

护栏

防止的内容

K-Tracking

测试同一想法的 50 种变体?显著性门槛自动提高。

Bonferroni 校正

多重比较惩罚。杜绝 p-hacking。

OOS 锁定

样本外 (Out-of-sample) 测试仅限一次。查看结果后无法重新运行。

前瞻检测

捕获意外使用未来数据的公式。

工具计算,AI 解释

每个数字都来自真实数据。AI 从不捏造统计数据。

图表 → 批准 → 测试

在消耗统计能力之前,你先查看并批准该模式。

指纹去重

无法对同一公式/市场/周期进行两次重复测试。

禁止 OOS 后优化

参数在样本外验证后即锁定。


数据覆盖范围

资产类别

市场

时间框架

期货 (CME)

ES, NQ, CL, GC, SI, ZW, ZC, ZS, ZB, TY, HG, NG + 20 更多

1小时及以上

股票 / ETF

任何美股

日线

加密货币 (Binance)

BTC, ETH, SOL + 更多

10分钟及以上

总计 15,000+ 种工具。

MCP 工具

工具

成本

功能

research

~$0.25

多轮量化研究。编排 15 个内部工具。

autonomous_research

~$0.25

AI 为你发现优势。给它一个主题,获得验证结果。

scan

免费

针对实时数据扫描策略。提供最新的入场/止损/目标价格。

search

免费

通过关键词或自然语言查找策略。

get_hypothesis

免费

任何策略的完整详细信息。

check_balance

免费

查看积分和可用套餐。

buy_credits

免费

使用 Base 链上的 USDC 或 Stripe 购买积分。

reset_session

免费

终止损坏的会话并重新开始。

定价

  • 注册即送 $2 — 足以进行 6–8 次研究会话

  • 研究: 每个测试的想法约 $0.20–0.30

  • 发现 (自主):约 $0.20–0.30

  • ELROND 委员会 (8 位专家调查员):约 $0.40–0.60

  • 多市场 (3+ 市场):约 $1

  • 扫描、搜索、余额: 始终免费

  • 积分包: 通过 Stripe 购买 $5 / $20 / $50

  • 积分永不过期


示例

查看 examples/ 获取可运行的脚本:

给 AI 代理构建者

查看 AGENTS.md 获取完整的集成指南 — 工具参考、响应格式、身份验证和工作流模式。


链接

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
38dResponse time
5dRelease cycle
13Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Build, backtest, and deploy quantitative trading strategies from your AI agent.

  • 21 paid tools: US macro data, SEC EDGAR filings, on-chain EVM reads. Settled in USDC on Base.

  • Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.

View all MCP Connectors

Appeared in Searches

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/augiemazza/varrd'

If you have feedback or need assistance with the MCP directory API, please join our Discord server