mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 04:40:57 +00:00
Optimize mt5/MQL5/Experts/ExpertMAPSARSizeOptimized_Improved.mq5 by implementing 1-second caching for TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) and MQLInfoInteger(MQL_TRADE_ALLOWED) in the IsTradingAllowed function. These API calls are relatively expensive as they involve cross-process communication with the terminal core. Caching them reduces the overhead significantly during high-frequency price ticks, especially when the EA is processing every tick for trailing stops. Impact: Reduces terminal CPU overhead during high market volatility. Measurement: Verified via manual code review and standard repo validation scripts. |
||
|---|---|---|
| .. | ||
| MQL5 | ||