의 미러
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 04:30:56 +00:00
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. |
||
|---|---|---|
| .. | ||
| ExpertMAPSARSizeOptimized_Improved.mq5 | ||
| SMC_TrendBreakout_MTF_EA.mq5 | ||