mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:10:57 +00:00
- 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> |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||