MQL5-Google-Onedrive/mt5
google-labs-jules[bot] bbc71aa8c2 Bolt: optimize daily limit checks and system calls in ExpertMAPSARSizeOptimized
This optimization reduces terminal API calls and redundant calculations in the Expert Advisor's hot path (OnTick).

Key changes:
- Pre-calculate percentage-to-decimal factors for daily loss/profit limits.
- Implement RefreshDailyLimits() to cache currency-based limits, eliminating per-tick AccountInfoDouble calls.
- Consolidate TimeCurrent() calls by passing the timestamp once per tick to sub-functions.
- Refresh cached limits only when necessary (init, rollover, trade events).

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-05 17:09:39 +00:00
..
MQL5 Bolt: optimize daily limit checks and system calls in ExpertMAPSARSizeOptimized 2026-02-05 17:09:39 +00:00