Warrior_EA/Trailing
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jason Binet Lafontaine a228d1bde7 feat(trade): implement trade safety checks per Article 2555 and resource limits
Add freeze-level checks, no-change modification skipping, entry price routing, and per-tick/memory budget monitoring. Override trade actions (Open, Close, Reverse, TrailingStop, TrailingOrder) to validate at the final gate before sending orders.
2026-07-26 23:08:32 -04:00
..
README.md feat: add percentage-based CPU load input for fallback tier 2026-07-14 18:04:48 -04:00
Trailing.mqh feat: restructure input enums with intelligent SL/TP and AI exit 2026-07-22 13:33:56 -04:00
TrailingATR.mqh feat(trade): implement trade safety checks per Article 2555 and resource limits 2026-07-26 23:08:32 -04:00
TrailingIntelligent.mqh feat: restructure input enums with intelligent SL/TP and AI exit 2026-07-22 13:33:56 -04:00

Trailing Subsystem (Trailing/)

Overview

The Trailing/ directory contains logic for trailing stop management in the Warrior EA. It supports ATR-based trailing or none (disabled). Each strategy is modular and configurable.

Key Components

Trailing.mqh

  • Aggregates all available trailing stop strategies.
  • Includes: ATR-based and None.
  • Entry point for trailing stop logic selection.

TrailingATR.mqh

  • Class: CTrailingATR
  • Purpose: Implements trailing stops based on the Average True Range (ATR) indicator.
  • Key Features:
    • Configurable ATR multiplier, periods, and shift.
    • Dynamically adjusts stop loss based on market volatility.
    • Inherits from CExpertTrailing for integration with the EA framework.

Integration Notes

  • Modular design allows for easy switching between trailing stop strategies.
  • ATR-based trailing is suitable for adaptive, volatility-aware risk management.
  • The None strategy is included via a standard MQL5 module.

Documented April 2026. For further details, see the main project documentation.