Candle -- Marubozu Continuation Trader
This is a template.
The default signal detects marubozu (extreme conviction) intervals in crypto 5-minute markets and trades the continuation on the next interval using conviction-based sizing. The skill handles all the plumbing (interval parsing, marubozu detection, trade execution, safeguards). Your agent provides the alpha.
Strategy Overview
Polymarket lists 5-minute interval markets for BTC, ETH, SOL, and XRP: "Will BTC be Up or Down in the 10:50AM-10:55AM ET interval?" These resolve to YES (up) or NO (down) based on actual price movement. A "marubozu" in candlestick analysis is a candle with a full body and no wick -- extreme conviction with no hesitation. On Polymarket, this translates to an interval priced at >65% (bullish marubozu) or <35% (bearish marubozu). Marubozu is a continuation signal: the NEXT interval should follow the same direction because the extreme conviction reflects new information that has not yet been fully priced into subsequent intervals.
Edge
Unlike reversal strategies that fade strong moves, this skill trades with momentum when conviction is extreme. The continuation edge is structurally sound because:
- 1. Information propagation lag -- when an interval reaches >65% conviction, it reflects genuine new information (large move, news catalyst) that takes more than 5 minutes to fully propagate through the market
- Underpricing of continuation -- Polymarket participants exhibit mean-reversion bias, systematically underpricing continuation after extreme intervals; they assume "it can't keep going" when the information says it will
- Marubozu vs. ordinary strength -- an interval at 66% is qualitatively different from one at 56%; the former reflects near-consensus while the latter reflects mild directional lean. This skill only trades the extreme cases.
- Asymmetric payoff -- because the next interval is underpriced for continuation, the YES/NO price offers favorable odds relative to the true conditional probability
Signal Logic
- 1. Discover crypto interval markets via keyword search (
Bitcoin Up or Down, Ethereum Up or Down, Solana Up or Down, XRP Up or Down) with a get_markets(limit=200) fallback - Parse each question to extract (coin, datestr, starttime_minutes) using regex
- Group intervals by (coin, date) and sort by time
- Scan for marubozu intervals: p >
MARU_THRESHOLD (bullish) or p < 1-MARU_THRESHOLD (bearish) - Check the NEXT interval for continuation not yet priced:
-
Bullish marubozu (p > 0.65): if next interval p < 0.55, continuation is underpriced -> buy YES
-
Bearish marubozu (p < 0.35): if next interval p > 0.45, continuation is underpriced -> buy NO
- 6. Conviction scales with marubozu strength: an interval at 0.70 generates stronger conviction than one at 0.66
- Size by conviction (distance from threshold), not flat amount
Remix Signal Ideas
- - Volume confirmation -- only trade marubozu continuation if the extreme interval also had above-average trading volume, confirming genuine conviction rather than thin-market noise
- Multi-marubozu acceleration -- if 2+ consecutive intervals are marubozu in the same direction, increase conviction multiplier for the continuation trade
- Binance order book depth -- check real-time order book imbalance to confirm the directional move has structural support beyond Polymarket pricing
- Cross-coin marubozu -- if BTC, ETH, and SOL all show bullish marubozu simultaneously, the signal is stronger (broad crypto rally vs. single-coin noise)
- Decay filter -- marubozu strength decays over time; if 3+ intervals have passed since the marubozu, the continuation edge has likely been absorbed
Safety & Execution Mode
The skill defaults to paper trading (venue="sim"). Real trades only with --live flag.
| Scenario | Mode | Financial risk |
|---|
| INLINECODE9 | Paper (sim) | None |
| Cron / automaton |
Paper (sim) | None |
|
python trader.py --live | Live (polymarket) | Real USDC |
INLINECODE11 and cron: null mean nothing runs automatically until configured in Simmer UI.
Required Credentials
| Variable | Required | Notes |
|---|
| INLINECODE13 | Yes | Trading authority. Treat as a high-value credential. |
Tunables (Risk Parameters)
All declared as tunables in clawhub.json and adjustable from the Simmer UI.
| Variable | Default | Purpose |
|---|
| INLINECODE16 | INLINECODE17 | Max USDC per trade at full conviction |
| INLINECODE18 |
5 | Floor for any trade (min USDC regardless of conviction) |
|
SIMMER_MIN_VOLUME |
3000 | Min market volume filter (USD) |
|
SIMMER_MAX_SPREAD |
0.10 | Max bid-ask spread |
|
SIMMER_MIN_DAYS |
1 | Min days until resolution |
|
SIMMER_MAX_POSITIONS |
10 | Max concurrent open positions |
|
SIMMER_YES_THRESHOLD |
0.38 | Buy YES only if market probability <= this |
|
SIMMER_NO_THRESHOLD |
0.62 | Sell NO only if market probability >= this |
|
SIMMER_MARU_THRESHOLD |
0.65 | Min probability for a bullish marubozu (bearish = 1 - this) |
Edge Thesis
Crypto 5-minute interval markets on Polymarket exhibit continuation bias after extreme conviction intervals. When an interval is priced at >65% (bullish marubozu) or <35% (bearish marubozu), the market is expressing near-consensus about the directional move. This extreme conviction typically reflects genuine new information -- a large price move, a news catalyst, or a structural shift -- that takes longer than 5 minutes to fully propagate. Polymarket participants systematically underprice continuation after marubozu intervals due to mean-reversion bias, creating an edge for the continuation trade. The skill exploits this by buying the continuation direction with conviction-based sizing that scales with marubozu strength and the distance from the trading threshold.
Dependency
INLINECODE34 by Simmer Markets (SpartanLabsXyz)
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk
技能名称: polymarket-candle-marubozu-trader
详细描述:
蜡烛图——光头光脚延续交易者
这是一个模板。
默认信号检测加密货币5分钟市场中的光头光脚(极端信念)区间,并在下一区间使用基于信念的仓位规模进行延续交易。该技能处理所有底层逻辑(区间解析、光头光脚检测、交易执行、安全防护)。您的智能体提供阿尔法收益。
策略概述
Polymarket为BTC、ETH、SOL和XRP列出了5分钟区间市场:BTC在美东时间10:50-10:55区间内是上涨还是下跌?这些市场根据实际价格波动结算为YES(上涨)或NO(下跌)。蜡烛图分析中的光头光脚是一种实体饱满且无影线的蜡烛——代表毫无犹豫的极端信念。在Polymarket上,这转化为定价高于65%(看涨光头光脚)或低于35%(看跌光头光脚)的区间。光头光脚是一种延续信号:下一个区间应遵循相同方向,因为极端信念反映了尚未完全定价到后续区间的新信息。
优势
与逆势策略不同,本技能在信念极端时顺势交易。延续优势在结构上是合理的,因为:
- 1. 信息传播滞后——当一个区间达到超过65%的信念时,它反映了真正的新信息(大幅波动、新闻催化剂),需要超过5分钟才能完全传播到市场
- 延续被低估——Polymarket参与者表现出均值回归偏差,系统性地低估极端区间后的延续;当信息表明趋势将持续时,他们假设不可能一直涨
- 光头光脚与普通强度——66%的区间与56%的区间有本质区别;前者反映近乎共识,而后者反映温和的方向性倾向。本技能只交易极端情况
- 非对称收益——由于下一区间的延续被低估,YES/NO价格相对于真实条件概率提供了有利的赔率
信号逻辑
- 1. 通过关键词搜索发现加密货币区间市场(Bitcoin Up or Down、Ethereum Up or Down、Solana Up or Down、XRP Up or Down),并回退使用getmarkets(limit=200)
- 使用正则表达式解析每个问题,提取(币种、日期字符串、开始时间分钟数)
- 按(币种、日期)分组区间,并按时间排序
- 扫描光头光脚区间:p > MARUTHRESHOLD(看涨)或 p < 1-MARU_THRESHOLD(看跌)
- 检查下一个区间是否延续未被定价:
-
看涨光头光脚(p > 0.65):如果下一个区间 p < 0.55,则延续被低估 -> 买入YES
-
看跌光头光脚(p < 0.35):如果下一个区间 p > 0.45,则延续被低估 -> 买入NO
- 6. 信念随光头光脚强度缩放:0.70的区间比0.66的区间产生更强的信念
- 根据信念(与阈值的距离)确定仓位规模,而非固定金额
混音信号思路
- - 成交量确认——仅在极端区间也有高于平均交易量的情况下交易光头光脚延续,确认是真正的信念而非薄市场噪音
- 多重光头光脚加速——如果连续2个以上区间在同一方向上是光头光脚,则增加延续交易的信念乘数
- 币安订单簿深度——检查实时订单簿不平衡,以确认方向性波动有超越Polymarket定价的结构性支撑
- 跨币种光头光脚——如果BTC、ETH和SOL同时显示看涨光头光脚,则信号更强(广泛的加密货币上涨 vs 单一币种噪音)
- 衰减过滤器——光头光脚强度随时间衰减;如果光头光脚后已过去3个以上区间,则延续优势可能已被吸收
安全与执行模式
该技能默认为模拟交易(venue=sim)。仅使用--live标志进行真实交易。
| 场景 | 模式 | 财务风险 |
|---|
| python trader.py | 模拟(sim) | 无 |
| 定时任务/自动化程序 |
模拟(sim) | 无 |
| python trader.py --live | 实盘(polymarket) | 真实USDC |
autostart: false和cron: null意味着在Simmer UI中配置之前,没有任何内容自动运行。
所需凭证
| 变量 | 必需 | 备注 |
|---|
| SIMMERAPIKEY | 是 | 交易权限。请视为高价值凭证。 |
可调参数(风险参数)
所有参数均在clawhub.json中声明为tunables,并可从Simmer UI调整。
| 变量 | 默认值 | 用途 |
|---|
| SIMMERMAXPOSITION | 40 | 完全信念下每笔交易的最大USDC |
| SIMMERMINTRADE |
5 | 任何交易的最低金额(无论信念如何的最小USDC) |
| SIMMER
MINVOLUME | 3000 | 最小市场成交量过滤器(美元) |
| SIMMER
MAXSPREAD | 0.10 | 最大买卖价差 |
| SIMMER
MINDAYS | 1 | 距离结算的最小天数 |
| SIMMER
MAXPOSITIONS | 10 | 最大并发持仓数量 |
| SIMMER
YESTHRESHOLD | 0.38 | 仅当市场概率 <= 此值时买入YES |
| SIMMER
NOTHRESHOLD | 0.62 | 仅当市场概率 >= 此值时卖出NO |
| SIMMER
MARUTHRESHOLD | 0.65 | 看涨光头光脚的最小概率(看跌 = 1 - 此值) |
优势理论
Polymarket上的加密货币5分钟区间市场在极端信念区间后表现出延续偏差。当一个区间定价高于65%(看涨光头光脚)或低于35%(看跌光头光脚)时,市场正在表达对方向性波动的近乎共识。这种极端信念通常反映了真正的新信息——大幅价格波动、新闻催化剂或结构性转变——需要超过5分钟才能完全传播。由于均值回归偏差,Polymarket参与者系统性地低估光头光脚区间后的延续,为延续交易创造了优势。该技能通过使用基于信念的仓位规模来利用这一点,仓位规模随光头光脚强度和与交易阈值的距离而缩放。
依赖项
simmer-sdk by Simmer Markets (SpartanLabsXyz)
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk