mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 14:00:57 +00:00
This optimization caches frequently accessed but static symbol properties (like point size, digits, and lot size constraints) in global variables during the Expert Advisor's `OnInit` function. The `OnTick` function and its helpers were repeatedly calling `SymbolInfoDouble()` and `SymbolInfoInteger()` on every price tick. These function calls add unnecessary overhead, as the values they retrieve do not change during the EA's operation. This change significantly reduces the number of function calls in the performance-critical `OnTick` path. By fetching the values once at initialization, the EA's execution per tick becomes faster and more efficient, reducing CPU load and potential for trade execution delays. |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||