MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] 084a30290a Bolt: optimize MQL5 performance and history statistics
- Replace expensive TimeToStruct/StructToTime calls with fast integer math for time extraction and day rollover.
- Consolidate history scanning and trade counting into a single robust pass in UpdateDailyStatistics().
- Use faster MQL5 property accessors (without ticket parameter) after selecting deals.
- Cache AccountInfoDouble results in CheckDailyLimits to avoid redundant terminal API calls.
- Pass TimeCurrent() from OnTick to sub-functions to avoid redundant system calls.

These changes significantly reduce the execution time of the OnTick hot path, especially when time filters or daily limits are enabled.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-03 17:09:40 +00:00
..
Experts Bolt: optimize MQL5 performance and history statistics 2026-02-03 17:09:40 +00:00
Indicators Bolt: optimize indicator OnCalculate performance (revised) 2026-01-31 10:52:36 +00:00