mql5/Profiles/Charts/Default/chart01.chr
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

85 lines
No EOL
2.7 KiB
Text

<chart>
id=133312042753462150
symbol=EURUSD
description=Euro vs US Dollar
period_type=0
period_size=5
digits=5
tick_size=0.000000
position_time=1772135400
scale_fix=0
scale_fixed_min=1.154600
scale_fixed_max=1.183900
scale_fix11=0
scale_bar=0
scale_bar_val=1.000000
scale=1
mode=1
fore=0
grid=1
volume=1
scroll=1
shift=0
shift_size=18.742443
fixed_pos=0.000000
ticker=1
ohlc=0
one_click=0
one_click_btn=1
bidline=1
askline=0
lastline=0
days=0
descriptions=0
tradelines=1
tradehistory=1
window_left=44
window_top=44
window_right=979
window_bottom=435
window_type=1
floating=0
floating_left=0
floating_top=0
floating_right=0
floating_bottom=0
floating_type=1
floating_toolbar=1
floating_tbstate=
background_color=0
foreground_color=16777215
barup_color=65280
bardown_color=65280
bullcandle_color=0
bearcandle_color=16777215
chartline_color=65280
volumes_color=3329330
grid_color=10061943
bidline_color=10061943
askline_color=255
lastline_color=49152
stops_color=255
windows_total=1
<window>
height=100.000000
objects=0
<indicator>
name=Main
path=
apply=1
show_data=1
scale_inherit=0
scale_line=0
scale_line_percent=50
scale_line_value=0.000000
scale_fix_min=0
scale_fix_min_val=0.000000
scale_fix_max=0
scale_fix_max_val=0.000000
expertmode=0
fixed_height=-1
</indicator>
</window>
</chart>