Skip to main content
The Grid Executor is like a Position Executor with multiple levels. It places orders at evenly spaced price intervals between a start and end price, managing each level independently with take profit targets.

Overview

How It Works

  1. Grid Creation: Divides price range into evenly spaced levels
  2. Order Placement: Places entry orders at each level
  3. Fill Management: When a level fills, places take profit order
  4. Level Completion: Each level manages its own entry/exit cycle
  5. 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 30003000-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

The activation_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

When keep_position=True:
  • Net inventory from all levels stays in account
  • Added to Position Hold for agent management
  • Useful for accumulation strategies
When keep_position=False:
  • All positions closed on termination
  • Realized P&L from each level reported
  • Clean exit with no leftover inventory