grid-trading-engine

Automate grid-based trading strategy design around a center price.

10|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mahmoud20138/Tradecraft --skill grid-trading-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grid-trading-engine
Source: https://github.com/mahmoud20138/Tradecraft/tree/main/plugins/tradecraft/skills/grid-trading-engine
Command: npx skills add https://github.com/mahmoud20138/Tradecraft --skill grid-trading-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Grid trading automates placing buy and sell orders at fixed intervals across a price range, enabling systematic capture of price oscillations with reduced manual intervention.

Core Features & Use Cases

  • Automated grid construction: builds a center-priced grid with configurable levels and range, and supports symmetric or adaptive spacing.
  • Adaptive sizing: ATR-based range adjustment to accommodate volatility regimes.
  • Risk-aware execution: offers monitoring for open orders, P&L, and exposure to help manage risk.

Quick Start

Configure a center price and grid parameters, then build the grid using those settings.

Frequently Asked Questions about grid-trading-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate grid trading strategies for range-bound markets?

Automating grid trading strategies involves generating predefined buy and sell levels around a center price to capture price oscillations. This skill builds a configurable grid and assesses risk, exposure, and potential P&L for range-bound or mildly trending markets.

What is ATR-based adaptive sizing in algorithmic grid trading?

ATR-based adaptive sizing in grid trading adjusts the range and spacing of orders according to current volatility regimes. This accommodates market fluctuations by dynamically modifying grid parameters instead of relying on fixed intervals.

How do I calculate risk exposure and P&L for a grid trading strategy?

Calculating risk exposure and P&L for a grid trading strategy requires monitoring open orders against generated price levels. This skill provides deterministic exposure calculations and P&L estimates under different parameterizations to help manage risk.

Can I build a symmetric grid with configurable levels around a center price?

Building a symmetric grid with configurable levels around a center price is fully supported. You can define the grid range and number of levels, and the system will construct the grid using either symmetric or adaptive spacing.

When should I not use a grid trading strategy?

Grid trading strategies should not be used in strongly trending markets where price breaks decisively out of the configured range. The approach is designed for range-bound or mildly trending markets to capture oscillations effectively.

What is the best way to manage risk in algorithmic grid trading?

Managing risk in algorithmic grid trading is best handled through adaptive sizing and continuous monitoring of exposure. This skill uses ATR to adjust to volatility regimes and provides P&L estimates to help you manage risk-aware execution.