mql5/Files/Testing PME2.1/Contrarian_M5_Optimised.ini
darashikoh a8611dc48d fix: resolve M5 parameter conflicts and align config with user inputs
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
2026-03-04 16:04:16 +00:00

89 lines
No EOL
2.2 KiB
INI

{\rtf1\ansi\ansicpg1252\cocoartf2868
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
\f0\fs24 \cf0 InpInstanceID=PME2_Baseline\
InpManageAllPositions=true\
InpMagicFilter=0\
InpDefaultMode=3\
InpStartLevel=1\
InpEnableEntries=true\
InpEntryMagic=77777\
InpEntryRiskPercent=1.0\
InpEntryLots=0.0\
InpStopLossPoints=300\
InpTakeProfitRR=1.5\
InpMinBarsBetweenEntries=24\
InpMaxLossPerTrade=3.0\
InpMaxDailyLoss=10.0\
InpMaxDrawdown=25.0\
InpMaxCorrelation=0.8\
InpApplyEmergencyStops=false\
InpEmergencySLMultiplier=7.0\
InpEmergencyTPMultiplier=4.0\
InpDynamicStops=false\
InpTightenOnProfit=false\
InpTightenThreshold=50.0\
InpProtectProfits=true\
InpBreakevenEnabled=true\
InpBreakevenTrigger=150.0\
InpBreakevenOffset=50.0\
InpMultiLevelBE=false\
InpTrailingMethod=0\
InpTrailStart=50.0\
InpTrailDistance=30.0\
InpTrailStep=10.0\
InpAdaptiveTrailing=true\
InpPartialEnabled=true\
InpPartialTrigger1=50.0\
InpPartialPercent1=30.0\
InpPartialTrigger2=100.0\
InpPartialPercent2=25.0\
InpUseTechnicalExits=false\
InpTimeBasedExits=false\
InpMaxBarsInTrade=500\
InpReduceRiskOverTime=false\
InpUseTimeFilter=false\
InpStartHour=8\
InpEndHour=20\
InpFridayClose=true\
InpFridayCloseHour=21\
InpShowDashboard=true\
InpDashboardX=20\
InpDashboardY=50\
InpUpdateFrequency=2\
InpLogLevel=3\
InpSaveReports=true\
InpEmailAlerts=false\
InpPushAlerts=false\
InpSoundAlerts=false\
InpEnableM5Mode=true\
InpM5Partial1=35.0\
InpM5Partial2=60.0\
InpM5Partial3=100.0\
InpM5Partial4=150.0\
InpM5Phase1=60\
InpM5Phase2=180\
InpM5MaxBars=300\
InpM5DisasterTrigger=100.0\
InpM5DisasterDistance=150.0\
InpBarCountEntry=7\
InpUseGraduatedStops=true\
InpInitialStopATR=3.5\
InpPhase1StopATR=2.5\
InpPhase2StopATR=2.0\
InpMatureStopATR=1.5\
InpUseDelayedBreakeven=true\
InpMinBarsBeforeBE=20\
InpMinProfitBarsForBE=5\
InpRequireProfitStability=true\
InpUseDelayedTrailing=false\
InpMinBarsBeforeTrail=40\
InpTrailMinProfit=60.0\
InpShowReversalMetrics=true\
InpAdjustForReversalSpeed=true\
InpFastReversalBars=12\
InpSlowReversalBars=60}