Overview
How It Works
- Grid Creation: Divides price range into evenly spaced levels
- Order Placement: Places entry orders at each level
- Fill Management: When a level fills, places take profit order
- Level Completion: Each level manages its own entry/exit cycle
- Risk Management: Overall position managed by triple barrier
Configuration
Parameters
Grid Boundaries
Sizing
Execution
Risk Management
Grid Level States
Each level tracks its own state independently:Example: Accumulation Grid
Buy ETH between 3500, taking profit at each level:Example: Range Trading Grid
Trade BTC in a range, closing each level for profit:Grid vs Position Executor
Think of Grid Executor as running multiple Position Executors simultaneously across a price range, with coordinated risk management.
Activation Bounds
Theactivation_bounds parameter keeps orders active only near the current price:
- Orders more than 2% from current price are cancelled
- As price moves, new orders are placed within bounds
- Reduces open order count and exchange rate limits
Position Handover
Whenkeep_position=True:
- Net inventory from all levels stays in account
- Added to Position Hold for agent management
- Useful for accumulation strategies
keep_position=False:
- All positions closed on termination
- Realized P&L from each level reported
- Clean exit with no leftover inventory

