cilipep/ai-agent-with-tslab/bybit-trailing-implementation
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Implement Bybit-style Trailing Up/Down for grid strategies: shifting the entire grid range when price breaks boundaries. Use when the user asks to add trailing functionality to a grid bot.
Install
npx vskill@latest install cilipep/ai-agent-with-tslab/bybit-trailing-implementationSKILL.md
Bybit Trailing Up/Down Implementation
When to use
- User asks to add trailing to a grid strategy
- User wants the grid to follow price movements
- User references Bybit's trailing functionality
How It Works
Trailing Up (Восходящий трейлинг)
When price reaches or crosses the upper boundary:
- Shift entire grid UP by one grid interval
- Cancel lowest buy order
- Place new sell order at previous upper boundary + interval
- Stop shifting if new upper > Trailing Up Stop price
Trailing Down (Нисходящий трейлинг)
When price reaches or crosses the lower boundary:
- Shift entire grid DOWN by one grid interval
- Cancel highest sell order
- Place new buy order at previous lower boundary - interval
- Stop shifting if new lower < Trailing Down Stop price
Implementation
Parameters
| Parameter | Description | Example | |
|---|---|---|---|
| trailing_up_stop | Upper limit for grid shift | $70,000 | |
| trailing_down_stop | Lower limit for grid shift | $50,000 | |
| trailing_enabled | Enable/disable trailing | True |
Long vs Short Mode
Neutral Mode
- Trailing Up: cancel lowest buy, place new sell above
- Trailing Down: cancel highest sell, place new buy below
Long Mode
- Trailing Up: shift range up, keep highest sell (close-only)
- Trailing Down: shift range down, add new buy below
Short Mode
- Trailing Up: shift range up, add new sell above
- Trailing Down: shift range down, keep lowest buy (close-only)
Impact on Results
| Without Trailing | With Trailing | |
|---|---|---|
| Grid static | Grid follows price | |
| Miss trends | Capture trend moves | |
| Lower DD | Similar DD | |
| Lower Sharpe | Higher Sharpe |
Key Rules
- One grid shift per boundary touch — not multiple
- Respect stop prices — don't shift beyond limits
- Close-only orders — some orders are for closing only, don't cancel them
- Dynamic sizing — if insufficient funds, cancel farthest orders
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mimocode/skills/bybit-trailing-implementation/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/cilipep/ai-agent-with-tslab/bybit-trailing-implementation)