Commit graph

1 commit

Author SHA1 Message Date
14165aac8c ERMT 7.1 (ERMT‑ML): add Entry‑Only mode, harden compilation on macOS/Wine, fix datatype order, and clean includes
feat(ERMT_7.1_ERMT-ML):

Add EntryOnlyMode and NoTPOnEntryOnly inputs
Disable internal exit management (breakeven/trailing/partials) when EntryOnlyMode is true
Skip external risk/default‑stop enforcement in EntryOnlyMode
Open orders without TP when configured and tag comment with “ERMT EntryOnly”
Use POSITION_COMMISSION for commission; add per‑symbol ATR helper with manual fallback
fix(datatypes): resolve struct ordering/duplication

Define TechnicalLevel before EntrySignal and MarketConditions
Move ManagedTrade below its dependencies
Remove duplicate TechnicalLevel definition
refactor(trade-manager): remove global dependency on g_MarketConditions

Pass MarketConditions to CheckTrailingStop and use in CalculateTrailingDistance
fix(dashboard): implement missing methods and correct types/includes

Implement Configure, SetReferences, Move, Minimize, Restore
Store GetTickCount() in ulong (m_last_update) instead of datetime
Fix includes to Datatypes_Optimised.mqh and SymbolManager.mqh
fix(risk-manager): add ValidateAndAdjustRisk compatibility wrapper

Updates trade.risk_percent from implied risk and logs if over max
chore(includes): unify include names/casing for Wine/macOS

Use Datatypes_Optimised.mqh consistently
Fix EA include to SymbolManager.mqh
Align includes in SymbolManager.mqh and Trade_Executor.mqh
reliability(entry system): keep ATR manual fallback path to avoid indicator handle failures under Wine/macOS

Notes:

EntryOnly mode preserves separation of concerns; ERMT_PME handles exits.
Changes are backwards‑compatible for non‑EntryOnly operation.
2025-10-28 23:35:47 +00:00