forked from animatedread/Warrior_EA
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Verified dead by grep across all first-party sources (references/, Scripts/, research/ excluded): EraCount, HiddenLayersCount, LstmHiddenSize, ConvFilterCount, HistoryBars and MinTrainYear setters, PendingBatchSamples, getPrevOutIndex, BaseCurrency, QuoteCurrency, CurrencyCount, IsLoaded, LastFiredDirection, DBConfidence, SpecIndex, and the conv Step/WindowOut shape accessors. Every backing member stays - each is still read internally and several are pinned by the positional .cfg layout - so this removes surface, not behaviour. Two comments were asserting the opposite of the code and are now true: the "No setter: the taper's endpoints are derived" note was directly above three setters, and the conv shape block claimed EnforceTopologyContract reads all three accessors when CNet::FirstConvWindow only ever calls Window(). CTrailingATR::CheckTrailingStopLong/Short were byte-identical but for Bid vs Ask and the isLong flag; both now delegate to one CheckTrailingStop body. Deliberately NOT removed: the fractal-target branch (TrainTargetFractal, IsFractalTarget and their label machinery). It reads as dead because the TrainingTarget input was withdrawn, but Warrior_EA.mq5:836 documents it as a parked option with a three-line restore path - that is a product call, not a refactor. Not compiled - MetaEditor compile pending. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
| .. | ||
| README.md | ||
| Trailing.mqh | ||
| TrailingATR.mqh | ||
| TrailingIntelligent.mqh | ||
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
CExpertTrailingfor 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.