Warrior_EA/System
Repository files (latest commit first)
Nome del file Ultimo messaggio di commit Ultima data di commit
AnimateDread 75d7362161 feat(warrior): the vol-gated dip-buy book, ported into Warrior_EA
Warrior's defaults are now the validated book: DIP_ZSCORE alone, long only, H4,
risk 0.25%, one chart per index with a shared Magic.

- System/BarCache.mqh: whole-history closed bars, Wilder ATR, GK sigma and the
  expanding vol percentile (no 1024-bar stdlib ceiling)
- System/AccountGuard.mqh: open-risk cap, kill switch, cross-chart lock and
  Friday flat, shared through terminal globals by Magic
- CWarriorExpert: guard on every tick; a transient open failure retries the bar
- CWarriorSignal::SetupStop: the dip owns its 3 x Wilder ATR stop from the bid
- SignalDipBuy: no entry vote while holding (a still-dipping time exit never
  closed, and Processing re-entered on the exit bar); no entry on a stop bar
- WarriorMoney sizes on equity; WARRIOR_RISK allows fractional risk
- TradeLog + research/compare_ea.py: trade-for-trade check vs WarriorDipZ -
  SP500/US30/DAX40 identical to the cent, NAS100 96.9% (stale-quote timer fills)
- research/nn_cross_index.py: pre-registered cross-index NN meta-label - FAIL
  (AUC 0.564, CI [0.498, 0.630]); DipMetaCut stays off

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 21:14:53 -04:00
..
AccountGuard.mqh feat(warrior): the vol-gated dip-buy book, ported into Warrior_EA 2026-09-23 21:14:53 -04:00
AltDataFeed.mqh Refactor Warrior EA: Integrate custom signal modules, enhance voting mechanism, and improve management features 2026-09-13 14:32:40 -04:00
BarCache.mqh feat(warrior): the vol-gated dip-buy book, ported into Warrior_EA 2026-09-23 21:14:53 -04:00
DipMeta.mqh Refactor Warrior EA: Integrate custom signal modules, enhance voting mechanism, and improve management features 2026-09-13 14:32:40 -04:00
ManagementNet.mqh Refactor Warrior EA: Integrate custom signal modules, enhance voting mechanism, and improve management features 2026-09-13 14:32:40 -04:00
PrintVerbose.mqh refactor(logs): two verbosity levels, and a throttle that works in the tester 2026-09-07 15:44:31 -04:00
README.md refactor(ai): extract Layer.mqh and deduplicate AI config 2026-08-01 11:27:28 -04:00
TradeChecks.mqh Refactor Warrior EA: Integrate custom signal modules, enhance voting mechanism, and improve management features 2026-09-13 14:32:40 -04:00
TradeLog.mqh feat(warrior): the vol-gated dip-buy book, ported into Warrior_EA 2026-09-23 21:14:53 -04:00
WarriorNet.mqh Refactor Warrior EA: Integrate custom signal modules, enhance voting mechanism, and improve management features 2026-09-13 14:32:40 -04:00

System Subsystem (System/)

Overview

The System/ directory contains utility and infrastructure code for the Warrior EA. These modules provide essential services such as new bar detection, conditional logging, crash-safe file writes and trade validation, supporting robust and maintainable EA operation.

Key Components

NewBar.mqh

  • Function: NewBar()
  • Purpose: Detects the arrival of a new bar (candle) on the chart.
  • Logic: Compares the current bar's time with the last seen bar time. Returns true if a new bar is detected.
  • Integration: Used for event-driven logic, e.g., only executing logic once per bar.

PrintVerbose.mqh

  • Function: PrintVerbose(string message)
  • Purpose: Conditional logging based on a VerboseMode flag. Prints messages only if verbose mode is enabled.
  • Integration: Useful for debugging and development without cluttering logs in production.

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