CHANGES:
- InitializeM5BarCountingMode(): Replace hardcoded boolean overrides with
input-driven values (InpBreakevenEnabled, InpPartialEnabled,
InpTrailingMethod, InpTrailDistance, InpTrailStep, InpAdaptiveTrailing)
- ConfigureContrarianMode(): Update preset to respect global inputs instead
of hardcoded values
- ApplyM5ContrarianManagement() - Phase 1: Add m_config.breakeven_enabled
check before executing BE
- ApplyM5ContrarianManagement() - Phase 2: Add m_config.breakeven_enabled
check and wrap partials in if(m_config.partial_enabled) block
- Remove undeclared config.use_technical_exits field reference
BEHAVIOR:
- M5 mode now respects global enable/disable flags set in EA inputs
- Delayed breakeven and trailing delays preserved (InpMinBarsBeforeBE,
InpMinBarsBeforeTrail remain M5-specific)
- Graduated stop-loss (3.5→2.5→2.0 ATR) and phase-based management unchanged
- Test reports now accurately reflect enabled/disabled features
FIXES:
- Configuration now matches tester report flags
- User can disable BE or partials in M5 mode via global inputs
- Prevents undefined behavior from conflicting hardcoded vs input values