Commit graph

2 commits

Author SHA1 Message Date
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
google-labs-jules[bot]
ea261ed334 Merge feature branch, cleanup dependencies, and sanitize credentials
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-28 10:24:13 +00:00