forked from LengKundee/MQL5-Google-Onedrive
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. |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||