superior-trade/superior-skills/dca-weekly
Claude Code and agent skill by superior-trade/superior-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when writing, validating, or troubleshooting a recurring scheduled buy strategy (DCA, dollar-cost averaging, weekly buys, daily buys, monthly accumulation, accumulator) on Superior Trade — especially anything that should "buy more of the same pair" on a calendar trigger rather than a price trigger.
Install
npx vskill@latest install superior-trade/superior-skills/dca-weeklySKILL.md
Strategy: DCA · Scheduled Buys
When to use
A user asks to "buy X every week", "DCA into BTC", "scheduled buy", "accumulator", "monthly buy", or any variation that means open a position once, then keep adding to it on a calendar cadence. Not for "buy when price drops" — that's grid trading (see grid-trading).
What it does
- Holds one open trade per pair (Freqtrade's hard rule).
- The first calendar trigger opens the trade with a small initial stake.
- Every subsequent trigger calls
adjust_trade_positionand adds the same notional to the open trade. - The position grows in fills inside a single Trade row. PnL is reported per-trade.
- Exits only when the user sets one (typically never, for true DCA —
stoploss = -0.99and nopopulate_exit_trend).
Backtest reference
| Window | BTC/USDC 1d, 2025-11-15 → 2026-05-01 (auto-narrowed to data availability, ~10 weeks) | |
|---|---|---|
| Trades | 1 (still open at end, force-closed) | |
| Entry orders inside the trade | 10 (1 initial + 9 weekly DCA, tagged weekly_dca) | |
| Stake per buy | ~$36.87 | |
| Total invested | ~$365 of $10,000 wallet | |
| Per-trade PnL | +10.0% | |
| Wallet PnL | +0.37% / +$36.61 | |
| Holding | 66 days | |
| Backtest ID | 01kqyz1ysdy9dyw7tbdrhz5gek |
The (rejected_signals: 9) warning in logs is normal: populate_entry_trend keeps emitting Monday flags even while a trade is open, but adjust_trade_position does the actual buys.
The Freqtrade primitives that make this work
These four flags are the difference between v1 (1 trade ever, the rest rejected) and v2 (a real ladder of fills). All four are required:
Plus two callbacks:
custom_stake_amount— divides the user-configured stake bymax_dca_multiplierso the initial entry leaves room for the future weekly adds.adjust_trade_position— the calendar trigger. Returns(stake, tag)to add,Noneto do nothing.
Reference implementation
Config requirements
stake_amount is the post-division budget the user wants per buy times max_dca_multiplier. With stake_amount: 1000 and max_dca_multiplier: 27, each Monday buy is ~$37; total budget is ~$1000.
dry_run_wallet must be ≥ stake_amount (Freqtrade keeps a 1% reserve, so the strict gate is stake_amount ≤ dry_run_wallet × 0.99). Default dry_run_wallet is 1000; bump it up if you raise stake.
Common pitfalls
- No `position_adjustment_enable`. Without it, repeat Monday flags are silently rejected and you get one trade ever. The classic v1 mistake.
- No same-day guard in `adjust_trade_position`. Without the
filled[-1].order_filled_utc.date() == current_time.date()check, the strategy double-buys on the Monday the initial entry was placed. - Forgetting to scale `stake_amount`. Without
custom_stake_amountreturningproposed_stake / max_dca_multiplier, the first buy uses the full configured stake and the wallet runs out before week 5. - Using `populate_exit_trend` to "exit half". Doesn't work — Freqtrade only knows full exits via
populate_exit_trend. Partial exits go throughadjust_trade_positionreturning a negative stake. - Setting `stoploss` ≥ -0.5. A real DCA isn't supposed to stop out on a 50% drawdown. Use
-0.99so the stop never triggers, then exit manually if needed.
Variants
- Daily / monthly cadence: change
current_time.weekday() != 0tocurrent_time.day != 1(1st of month) or remove the guard entirely (every candle close). - Drawdown-aware DCA: add a check on
current_profit < -0.10to add EXTRA on top of the calendar — buy more when down 10%. Combine the calendar check withcurrent_profit < threshold. - Spot vs futures: works on both. Use
BTC/USDCfor spot (trading_mode: "spot"or omit) orBTC/USDC:USDCfor perp (trading_mode: "futures",margin_mode: "cross"). DCA is most idiomatic on spot.
Sources
- Freqtrade
adjust_trade_position— https://www.freqtrade.io/en/stable/strategy-callbacks/#adjust-trade-position - DigDeeperStrategy reference — https://github.com/freqtrade/freqtrade/issues/7052
- Internal audit —
docs/standard-strategies-audit.md, backtest01kqyz1ysdy9dyw7tbdrhz5gek
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dca-weekly/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 9
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/superior-trade/superior-skills/dca-weekly)