MQL5-Google-Onedrive/mt5
google-labs-jules[bot] 901d644465 Bolt: optimize EA execution flow and trade-state caching
This commit implements a cached trading state check and log throttling in `SMC_TrendBreakout_MTF_EA.mq5`.

- Added `IsTradingAllowed()` helper with 1-second caching for terminal API calls.
- Implemented log throttling to prevent journal flooding when AutoTrading is disabled.
- Refactored `OnTick()` to use the optimized check immediately after the new bar gatekeeper.

These changes reduce CPU overhead and log I/O, especially when the EA is running in a restricted state during high market volatility.
2026-02-13 17:48:54 +00:00
..
MQL5 Bolt: optimize EA execution flow and trade-state caching 2026-02-13 17:48:54 +00:00