Trade Governor
- 유틸리티
-
Kevin Johannes Witt
MQL5 / MetaTrader 5 developer. I build Expert Advisors and custom indicators from clear specifications, and I fix, debug and optimize existing MT5/MQL5 code.
What I focus on:
- Clean, modular, well-commented MQL5 - each concern in its own class/function. - 버전: 1.1
Trade Governor enforces trading discipline on manual trades or trades opened by another EA. It does not open trades and makes no market prediction - it is a pure risk-governor layer that protects your account with three rules.
Rules it enforces:
- Trading-session window: positions held outside your allowed server-time window are closed (for example, keep only the Asian session).
- Max trades per day: positions beyond your daily limit are closed (newest first); the counter resets each broker day.
- Daily draw-down guard: when the day's realised plus floating loss reaches your limit, all governed positions are closed and new ones are closed on sight until the next day.
A magic-number filter lets you govern all trades, one specific EA, or only manual trades. All limits are external inputs, so you can adapt the tool to your own rules.
Works on any symbol and timeframe. Compiled with 0 errors and 0 warnings. No DLL calls, no time or account limitations.
