superior-trade/superior-skills/grid-trading
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 a profit-laddered position-adjustment strategy on Superior Trade — anything described as a grid bot, range fade, range harvest, ladder buy, scaling-in, pyramiding, or "buy more when it dips and sell partials when it rallies". Note this is a profit-driven ladder, not a true 20-rung order-book grid; explain that limitation when the user asks for true grid trading.
Install
npx vskill@latest install superior-trade/superior-skills/grid-tradingSKILL.md
Strategy: Grid · Range Fade (laddered)
When to use
A user asks for "grid trading", "grid bot", "range fade", "ladder buy", "scale into the dip", "pyramid into a position", "DCA on drawdown" (not on calendar — that's strategy-dca-weekly). Anything where the trigger to add is a price drawdown, and there are partial take-profits on the way up.
Important caveat — explain this upfront
Freqtrade is a one-trade-per-pair engine. A real 20-rung grid bot — placing 20 limit orders simultaneously on the order book and refilling each as it fills — is not possible without engine changes. What you can implement is a profit-laddered position adjustment:
- 1 initial entry at a trigger price
- Up to N additional entries, each at a deeper drawdown step (−1%, −2%, …)
- Partial take-profits at progressive profit steps (+1.5%, +3%, +4.5%, …)
- Hard exit on a band breakout
This is a working, profitable approximation of the spirit of grid trading. If the user explicitly wants 100s of small fills per day on a tight book, say so and recommend running a separate grid runtime alongside Freqtrade.
Backtest reference
| Window | ETH/USDC 15m, 2026-03-01 → 2026-05-01 (61 days) | |
|---|---|---|
| Trades | 4 | |
| Win rate | 100% | |
| Wallet PnL | +0.66% / +$65.58 | |
| Sharpe | 2.02 | |
| Profit per trade | $15-30 | |
| Avg holding | 14 days | |
| Max DD | 0% (intraday only) | |
| Backtest ID | 01kqyz25d0zrwwf5fzccjk44dk |
Order pattern per trade: 2 entries ("" initial + grid_buy_1) + 4 partial exits at grid_tp_* tags. Sparse — 4 trades over 61 days — because the 24h VWAP −1% trigger fires rarely on ETH. Tighten the trigger (e.g. vwap × 0.995) for more activity.
Reference implementation
Config requirements
dry_run_wallet ≥ stake_amount is enforced strictly. With 6 ladder rungs, leave headroom — dry_run_wallet ≥ stake_amount × 1.5 is comfortable.
Tunable parameters
| Knob | Effect | |
|---|---|---|
0.99 (entry trigger) | Tighter (0.995) → more entries, more chop. Looser (0.97) → rarer, deeper fades. | |
0.01 * n_entries (ladder spacing) | Tighter spacing → faster ladder fills, smaller gain per rung. Wider spacing → fewer rungs in chop. | |
max_entry_position_adjustment | More rungs → bigger position when fully laddered, more wallet exposure. | |
0.015 * (n_exits + 1) (TP step) | Tighter TPs → more partial closes, less per close. | |
1.06 (band breakout) | Tighter (1.04) → exit earlier on rallies, capture less. | |
trade.stake_amount / 4.0 (TP size) | Smaller divisor → bigger partial closes. / 2.0 halves the position per TP. |
Common pitfalls
- Naive single-rung implementation. Using
populate_entry_trendwithclose < vwap × 0.94andpopulate_exit_trendwithclose > vwap × 1.06produced 0 trades on the same window — ETH never reached the lower band. The laddered version captures the moves the band misses. - `stoploss` too shallow. With 5 ladder rungs at −1% spacing, a
−6%stop kills the trade before the deepest rung fills. Use−30%(or deeper) and rely on partial exits. - Letting `minimal_roi` close trades early. With the default
{"0": 0.02}, the trade exits at +2% before the partial-TP ladder ever runs. Set{"0": 100.0}to disable. - Forgetting `current_profit` is signed.
current_profit <= -0.01 * n_entriesreads "drawdown is at least n × 1%". Inverting the sign disables the ladder.
Variants
- Wider band:
0.97entry /1.10exit for trending pairs (BTC, SOL). - Asymmetric ladder: more buys than sells (
max_entry_position_adjustment = 8, only 2 partial TPs) for accumulation modes. - Volatility-scaled steps: replace fixed
0.01withatr_pct * 0.5to make ladder spacing follow regime.
When grid is the wrong tool
- Strong trends (the band breakout closes the trade after one cycle).
- Pairs that gap (Hyperliquid index pairs sometimes skip the trigger price entirely).
- Tight fee budgets — every ladder rung pays maker/taker fees twice (entry and partial exit). See
fees-optimizationsfor cost analysis.
Sources
- Freqtrade
adjust_trade_position— https://www.freqtrade.io/en/stable/strategy-callbacks/#adjust-trade-position - Internal audit —
docs/standard-strategies-audit.md, backtest01kqyz25d0zrwwf5fzccjk44dk
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/grid-trading/SKILL.md
Popularity
- 7-day trend score
- 0
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/grid-trading)