Polymarket Candle Doji Breakout Trader

v0.0.2

Detects doji patterns (48-52% probability) in crypto 5-minute interval markets on Polymarket and trades the post-doji breakout in the direction of the pre-do...

0· 107·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for diagnostikon/polymarket-candle-doji-breakout-trader.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Polymarket Candle Doji Breakout Trader" (diagnostikon/polymarket-candle-doji-breakout-trader) from ClawHub.
Skill page: https://clawhub.ai/diagnostikon/polymarket-candle-doji-breakout-trader
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install polymarket-candle-doji-breakout-trader

ClawHub CLI

Package manager switcher

npx clawhub@latest install polymarket-candle-doji-breakout-trader
Security Scan
Capability signals
CryptoRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill name/description, SKILL.md, clawhub.json and trader.py all describe a Polymarket doji-breakout trader and the code uses the simmer-sdk and a SIMMER_API_KEY to place trades — these requirements are appropriate for the stated purpose. There is a metadata inconsistency in the presented summary (the top-level summary said 'Required env vars: none') while both clawhub.json and SKILL.md declare SIMMER_API_KEY as required; that mismatch is likely an authoring/packaging error but should be corrected.
Instruction Scope
SKILL.md instructions and trader.py stick to finding interval markets, detecting dojis, sizing, and placing trades (paper by default, live only with explicit --live). The runtime instructions do not request unrelated files, credentials, or system data beyond the trading API key and tunables.
Install Mechanism
There is no custom installer; clawhub.json lists a pip requirement ('simmer-sdk'), which is a standard package-install approach. This is expected for a runtime SDK but means a Python package will be installed — verify the package source (PyPI) and review simmer-sdk before installing.
Credentials
The only required secret is SIMMER_API_KEY (declared in clawhub.json and SKILL.md, and used directly in trader.py). That credential is proportionate to the skill's ability to place trades, but it is high-value (trading authority). Ensure you trust the Simmer service and understand the permissions granted by the API key. The code will raise a KeyError if SIMMER_API_KEY is missing, so the metadata claiming no required env var is wrong.
Persistence & Privilege
The skill is not autostarted, not always:true, and does not request system-wide or other skills' credentials. It calls apply_skill_config when available (to read tunables) — standard for a managed skill — and defaults to paper trading unless explicitly run with --live.
Assessment
This skill appears to be what it says: a Polymarket doji-breakout trader that defaults to paper trading. Before installing: 1) Correct the packaging metadata mismatch (the package actually requires SIMMER_API_KEY). 2) Treat SIMMER_API_KEY as sensitive — only provide it if you trust the Simmer service and have reviewed simmer-sdk. 3) Inspect the simmer-sdk package source/version (from PyPI or the publisher) and review trader.py (it's included) so you understand live-trade behavior. 4) Run in paper mode first and test thoroughly; only use --live when you're confident. 5) If you need stronger assurance, ask the author for provenance (homepage, repository, or maintainer contact) and an explicit description of the permissions associated with SIMMER_API_KEY.

Like a lobster shell, security has layers — review code before you run it.

latestvk97dsjxfszamnqq9pqjnp9dd5n85325n
107downloads
0stars
2versions
Updated 1w ago
v0.0.2
MIT-0

Candle -- Doji Breakout Trader

This is a template. The default signal detects doji patterns in crypto 5-minute interval markets and trades the post-doji breakout using conviction-based sizing. The skill handles all the plumbing (interval parsing, doji detection, trend analysis, trade execution, safeguards). Your agent provides the alpha.

Strategy Overview

Polymarket lists 5-minute interval markets for BTC, ETH, SOL, and XRP: "Will Bitcoin be Up or Down in the 10:50AM-10:55AM ET interval?" These resolve to YES (up) or NO (down) based on the actual price movement. A doji is a 5-minute interval where probability sits at 48-52% -- zero directional conviction. In candlestick analysis, a doji appearing after a clear directional trend (2-3 consecutive UP or DOWN intervals) signals indecision before a breakout. The next interval after the doji tends to break out strongly, continuing the pre-doji trend direction, because the underlying momentum has only paused -- not reversed.

Edge

Unlike a generic mean-reversion or momentum strategy, the doji breakout specifically targets the transition from indecision back to trend continuation. The edge arises because:

  1. Doji = temporary pause, not reversal -- when a coin trends UP for 3 intervals then prints a doji (48-52%), retail participants read this as "the move is over" and price the next interval near 50%. But the underlying trend momentum typically resumes.
  2. Market mispricing of continuation -- the post-doji interval is systematically underpriced for continuation because participants anchor on the doji's neutrality rather than the preceding trend.
  3. Candlestick pattern validity -- doji-after-trend is one of the most robust patterns in technical analysis, documented across equities, forex, and crypto on multiple timeframes.
  4. Bundle independence -- each 5-minute interval resolves independently; the doji's neutral price does not mechanically prevent the next interval from continuing the trend.

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
  2. Parse each question to extract (coin, date, start_time_minutes, end_time_minutes) using regex
  3. Group intervals by (coin, date) and sort by time
  4. Classify each interval: UP if p > 0.55, DOWN if p < 0.45, NEUTRAL if 0.45-0.55
  5. Scan for doji intervals (p between 48-52%, tunable via SIMMER_DOJI_RANGE)
  6. Check the TREND_LENGTH intervals before each doji -- if ALL show the same direction (all UP or all DOWN), the post-doji interval is a breakout target
  7. Trade the post-doji interval:
    • Pre-doji trend = UP and post-doji priced < YES_THRESHOLD -> buy YES (breakout not priced in)
    • Pre-doji trend = DOWN and post-doji priced > NO_THRESHOLD -> buy NO (breakout not priced in)
  8. Size by conviction (distance from threshold), not flat amount

Remix Signal Ideas

  • Volume-weighted doji detection -- require the doji interval to have above-average trading volume for a stronger signal; low-volume dojis are less meaningful
  • Multi-timeframe confirmation -- check if the trend also holds on a 15-minute or 1-hour timeframe before trading the breakout
  • Order book imbalance -- use Polymarket order book depth to detect hidden buying/selling pressure during the doji interval
  • Cross-coin doji sync -- if BTC prints a doji while ETH/SOL are still trending, the breakout signal is stronger (BTC leads)
  • Volatility filter -- skip doji patterns during low-volatility regimes where breakouts are weaker and less profitable

Safety & Execution Mode

The skill defaults to paper trading (venue="sim"). Real trades only with --live flag.

ScenarioModeFinancial risk
python trader.pyPaper (sim)None
Cron / automatonPaper (sim)None
python trader.py --liveLive (polymarket)Real USDC

autostart: false and cron: null mean nothing runs automatically until configured in Simmer UI.

Required Credentials

VariableRequiredNotes
SIMMER_API_KEYYesTrading authority. Treat as a high-value credential.

Tunables (Risk Parameters)

All declared as tunables in clawhub.json and adjustable from the Simmer UI.

VariableDefaultPurpose
SIMMER_MAX_POSITION40Max USDC per trade at full conviction
SIMMER_MIN_TRADE5Floor for any trade (min USDC regardless of conviction)
SIMMER_MIN_VOLUME3000Min market volume filter (USD)
SIMMER_MAX_SPREAD0.10Max bid-ask spread
SIMMER_MIN_DAYS1Min days until resolution
SIMMER_MAX_POSITIONS10Max concurrent open positions
SIMMER_YES_THRESHOLD0.38Buy YES only if market probability <= this
SIMMER_NO_THRESHOLD0.62Sell NO only if market probability >= this
SIMMER_DOJI_RANGE0.02Half-width of doji zone around 50% (48-52% by default)
SIMMER_TREND_LENGTH3Min consecutive same-direction intervals before doji to qualify as trend

Edge Thesis

Crypto 5-minute interval markets on Polymarket exhibit a systematic mispricing after doji patterns. When a coin trends in one direction for 2-3 intervals then prints a doji (48-52% probability), the market prices the post-doji interval near 50% -- interpreting the doji as trend exhaustion. In reality, the doji represents a temporary pause in an ongoing trend; the next interval continues the pre-doji direction more often than the market implies. This is the classic doji-breakout pattern from candlestick analysis, adapted to Polymarket's 5-minute interval structure. The skill exploits this gap with conviction-based sizing that scales with the distance from the trading threshold.

Dependency

simmer-sdk by Simmer Markets (SpartanLabsXyz)

Comments

Loading comments...