Overview
The execution order Parent → Grid → Final defines the structured sequence in which capital is deployed within a multi-layer DCA architecture.
Instead of placing all averaging orders randomly or at equal importance, MagicTradeBot organizes entries into three distinct layers:
1️⃣ Parent Order – Initial signal-based entry 2️⃣ Grid DCA – Micro-scaling layer during normal retracements 3️⃣ Final DCA – Large, volatility-gated exhaustion entry
Each layer has a specific purpose and risk profile. Together, they form a controlled capital deployment system designed to handle both typical pullbacks and extreme deviations.
1️⃣ Parent Order – Initial Position Entry
Purpose
The Parent Order opens the trade based on your primary signal or strategy condition.
Characteristics
- Small to moderate position size
- Signal-driven entry
- No averaging yet
- Sets the initial exposure baseline
The parent order does not assume the entry is perfect. It is the first layer in a structured scaling process.
Example:
- Entry at $100
- Parent size = 20% of total allocation
If price moves in favor, trade may close without any DCA activation.
2️⃣ Grid DCA – Micro-Scaling Layer
Purpose
Grid DCA manages normal retracements (typically 5–12%).
It builds exposure gradually if price moves against the parent position.
How It Triggers
- Price deviates by fixed increments (e.g., 1–2%)
- Orders are placed relative to the last grid level
- Spacing and timing rules apply (deviation_percent + interval_minutes)
Characteristics
- Multiple small orders
- Fixed sizing (no aggressive multiplier)
- Gradual exposure increase
- Improves average progressively
Example:
- Parent at $100
- Grid 1 at $99
- Grid 2 at $98
- Grid 3 at $97
Grid handles common pullbacks without committing heavy capital too early.
3️⃣ Final DCA – Exhaustion Capture Layer
Purpose
The Final DCA is designed to capture deep, high-probability exhaustion moves (e.g., 20%+ deviation).
It is not triggered immediately on deviation. It may require:
- Volatility cooldown
- Neutral momentum readings
- Reversal confirmation
- Peak validation rules
Characteristics
- Largest order size
- Volatility-gated
- Fires only after explosive movement stabilizes
- Designed to dramatically improve average
Example:
- Price drops 25% rapidly
- Volatility gate blocks immediate execution
- Market stabilizes (momentum < 1%)
- Final DCA fires near exhaustion zone
This protects against chasing crashes while preserving capital for high-quality entries.
Full Execution Flow Example
Assume:
- Parent: 20%
- Grid: 40% (spread across 10 orders)
- Final: 40%
Scenario:
- Entry at $100 → Parent executed
- Price drops to $95 → Several grid orders trigger
- Price stabilizes at $92 → More grid orders placed
- Price crashes to $80 rapidly → Final DCA enters observation
- Volatility cools → Final DCA executes
- Average entry significantly improved
- Small bounce triggers Take Profit
Each layer performs a different function:
- Parent = Signal participation
- Grid = Structural smoothing
- Final = Exhaustion capture
Why This Order Matters
Risk Control
Capital is not deployed all at once. Exposure grows in layers.
Capital Efficiency
Grid uses moderate capital for common retracements. Final reserves capital for rare deep moves.
Improved Recovery Probability
Average improves progressively before relying on final DCA.
Avoids Over-Aggressive Averaging
Final DCA waits for confirmation, preventing premature large exposure.
What Happens If Final DCA Never Fires?
If price:
- Retraces shallowly and recovers → Grid + Parent close trade
- Moves favorably immediately → Only Parent is used
- Never cools after explosive move → Final remains unused
This layered design ensures capital is used only when market structure justifies it.
What Happens If Max Loss Is Hit?
If price continues strongly against position:
- Parent + Grid build exposure
- Final may or may not fire depending on volatility rules
- If drawdown reaches max_loss_threshold → Trade exits
The system always respects predefined risk limits.
Summary
The execution order Parent → Grid → Final ensures:
- Structured capital deployment
- Smooth exposure growth
- Protection against explosive volatility
- Preservation of capital for deep exhaustion
- Adaptive behavior across market conditions
It transforms DCA from simple averaging into a layered position management architecture.