MQL5-Google-Onedrive/mt5
google-labs-jules[bot] a79fd39d89 Bolt: Implement 1-second caching for trading environment checks
In MQL5 'hot paths', environment API calls like TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)
and MQLInfoInteger(MQL_TRADE_ALLOWED) can be a significant bottleneck during high tick frequency.

This commit optimizes IsTradingAllowed in ExpertMAPSARSizeOptimized_Improved.mq5 by caching
these states for 1 second using a static datetime flag to control refresh frequency,
significantly reducing terminal API overhead during rapid price ticks.
2026-02-24 20:57:44 +00:00
..
MQL5 Bolt: Implement 1-second caching for trading environment checks 2026-02-24 20:57:44 +00:00