forked from LengKundee/MQL5-Google-Onedrive
- 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> |
||
|---|---|---|
| .. | ||
| bolt.md | ||
| deploy.yml | ||