mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 12:30:56 +00:00
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> |
||
|---|---|---|
| .. | ||
| ExpertMAPSARSizeOptimized_Improved.mq5 | ||
| SMC_TrendBreakout_MTF_EA.mq5 | ||