mql5/Profiles/Tester/ERMT_PME_2.1_M5.EURUSD.M5.20260105_20260302.000.ini

118 lines
8.9 KiB
INI
Raw Permalink Normal View History

The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
<EFBFBD><EFBFBD>;Expert Advisor single test: ERMT_PME_2.1_M5, EURUSD M5, every tick, 2026.01.05 - 2026.03.02
[Tester]
Expert=Advisors\ERMT_PMEx\ERMT_PME_2.1_M5.ex5
Symbol=EURUSD
Period=M5
Optimization=0
Model=0
FromDate=2026.01.05
ToDate=2026.03.02
ForwardMode=0
Deposit=1000
Currency=USD
ProfitInPips=1
Leverage=100
ExecutionMode=-1
OptimizationCriterion=0
Visual=0
[TesterInputs]
; === Management Control ===
InpInstanceID=PME2_Baseline
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpManageAllPositions=true||false||0||true||N
InpMagicFilter=0||0||1||10||N
InpDefaultMode=3||0||0||4||N
InpStartLevel=1||0||0||3||N
; === Entry Mode (Backtesting) ===
InpEnableEntries=true||false||0||true||N
InpEntryMagic=77777||77777||1||777770||N
InpEntryRiskPercent=1.0||1.0||0.100000||10.000000||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpEntryLots=0.0||0.0||0.000000||0.000000||N
InpStopLossPoints=300||300||100||1000||N
InpTakeProfitRR=1.5||3.0||0.300000||30.000000||N
InpMinBarsBetweenEntries=24||10||1||100||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
; === Risk Protection ===
InpMaxLossPerTrade=3.0||3.0||0.300000||30.000000||N
InpMaxDailyLoss=10.0||10.0||1.000000||100.000000||N
InpMaxDrawdown=25.0||25.0||2.500000||250.000000||N
InpMaxCorrelation=0.8||0.8||0.080000||8.000000||N
; === Emergency Protection ===
InpApplyEmergencyStops=false||false||0||true||N
InpEmergencySLMultiplier=7.0||2.5||0.250000||25.000000||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpEmergencyTPMultiplier=4.0||4.0||0.400000||40.000000||N
; === Stop Loss Management ===
InpDynamicStops=false||false||0||true||N
InpTightenOnProfit=false||false||0||true||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpTightenThreshold=50.0||50.0||5.000000||500.000000||N
InpProtectProfits=true||false||0||true||N
; === Breakeven Settings ===
InpBreakevenEnabled=true||false||0||true||N
InpBreakevenTrigger=150.0||30.0||3.000000||300.000000||N
InpBreakevenOffset=50.0||5.0||0.500000||50.000000||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpMultiLevelBE=false||false||0||true||N
; === Trailing Stop ===
InpTrailingMethod=0||0||0||8||N
InpTrailStart=50.0||50.0||5.000000||500.000000||N
InpTrailDistance=30.0||30.0||3.000000||300.000000||N
InpTrailStep=10.0||10.0||1.000000||100.000000||N
InpAdaptiveTrailing=true||false||0||true||N
; === Partial Close ===
InpPartialEnabled=true||false||0||true||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpPartialTrigger1=50.0||50.0||5.000000||500.000000||N
InpPartialPercent1=30.0||30.0||3.000000||300.000000||N
InpPartialTrigger2=100.0||100.0||10.000000||1000.000000||N
InpPartialPercent2=25.0||25.0||2.500000||250.000000||N
; === Exit Management ===
InpUseTechnicalExits=false||false||0||true||N
InpTimeBasedExits=false||false||0||true||N
InpMaxBarsInTrade=500||500||1||5000||N
InpReduceRiskOverTime=false||false||0||true||N
; === Time Filters ===
InpUseTimeFilter=false||false||0||true||N
InpStartHour=8||8||1||80||N
InpEndHour=20||20||1||200||N
InpFridayClose=true||false||0||true||N
InpFridayCloseHour=21||21||1||210||N
; === Display Settings ===
InpShowDashboard=true||false||0||true||N
InpDashboardX=20||20||1||200||N
InpDashboardY=50||50||1||500||N
InpUpdateFrequency=2||2||1||20||N
; === System Settings ===
InpLogLevel=3||0||0||5||N
InpSaveReports=true||false||0||true||N
InpEmailAlerts=false||false||0||true||N
InpPushAlerts=false||false||0||true||N
InpSoundAlerts=false||false||0||true||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
; === M5 Bar Counting Mode ===
InpEnableM5Mode=true||false||0||true||N
InpM5Partial1=35.0||35.0||3.500000||350.000000||N
InpM5Partial2=60.0||60.0||6.000000||600.000000||N
InpM5Partial3=100.0||100.0||10.000000||1000.000000||N
InpM5Partial4=150.0||150.0||15.000000||1500.000000||N
InpM5Phase1=60||60||1||600||N
InpM5Phase2=180||180||1||1800||N
InpM5MaxBars=300||300||1||3000||N
InpM5DisasterTrigger=100.0||100.0||100||1000.000000||N
InpM5DisasterDistance=150.0||150.0||100||1000||N
InpBarCountEntry=7||3||0||0||N
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
; === Graduated Stop-Loss (v2.1) ===
InpUseGraduatedStops=true||false||0||true||N
InpInitialStopATR=3.5||7||0.5||10||Y
InpPhase1StopATR=2.5||5||0.250000||7||Y
InpPhase2StopATR=2.0||3||0.25||5||Y
The M5 contrarian mode now respects global enable flags while preserving specialized delay logic. Changes Applied 1. ERMT_PME_2.1_M5.mq5 - InitializeM5BarCountingMode() config.breakeven_enabled = InpBreakevenEnabled (was: true hardcoded) config.partial_enabled = InpPartialEnabled (was: true hardcoded) config.trailing_method = InpTrailingMethod (was: TRAIL_DYNAMIC hardcoded) config.trail_distance = InpTrailDistance (was: 40 hardcoded) config.trail_step = InpTrailStep (was: 15 hardcoded) config.adaptive_trailing = InpAdaptiveTrailing (was: true hardcoded) 2. ERMT_PME_2.1_M5.mq5 - ConfigureContrarianMode() Same pattern: All hardcoded booleans replaced with input-driven values Preset now demonstrates best practices without overriding user choices 3. PositionManager_PME_Complete.mqh - Phase 1 Breakeven Added m_config.breakeven_enabled && check before executing BE Combined with existing delay logic: if(m_config.breakeven_enabled && be_allowed && ...) 4. PositionManager_PME_Complete.mqh - Phase 2 Maturity Phase 2 BE: Added m_config.breakeven_enabled && check Wrapped all partial closes in if(m_config.partial_enabled) { ... } block Prevents unconditional execution when features disabled Preserved M5-Specific Features ✓ Graduated stop-loss system (3.5→2.5→2.0 ATR) ✓ Delayed BE triggers (InpMinBarsBeforeBE, InpMinProfitBarsForBE) ✓ Delayed trailing (InpMinBarsBeforeTrail, InpTrailMinProfit) ✓ M5 partial thresholds (InpM5Partial1-4) ✓ Phase timings (60/180/300 bars) Testing Recommendations Verify Disabled Features: Verify Enabled + Delayed Features: Expected Backtest Report Alignment: Now tester reports will show enabled/disabled flags matching actual runtime behavior.
2026-03-03 12:57:29 +00:00
InpMatureStopATR=1.5||1.5||0.25||3||Y
; === Delayed Breakeven (v2.1) ===
InpUseDelayedBreakeven=true||false||0||true||N
InpMinBarsBeforeBE=20||20||1||200||N
InpMinProfitBarsForBE=5||5||1||50||N
InpRequireProfitStability=true||false||0||true||N
; === Delayed Trailing (v2.1) ===
InpUseDelayedTrailing=false||false||0||true||N
InpMinBarsBeforeTrail=40||40||1||400||N
InpTrailMinProfit=60.0||60.0||6.000000||600.000000||N
; === Reversal Speed Tracking (v2.1) ===
InpShowReversalMetrics=true||false||0||true||N
InpAdjustForReversalSpeed=true||false||0||true||N
InpFastReversalBars=12||12||1||120||N
InpSlowReversalBars=60||60||1||600||N