mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 04:40:57 +00:00
This commit optimizes the MQL5 Expert Advisor by caching static symbol properties (like point size, digits, and lot information) in global variables during the `OnInit` function. This change avoids repeated, unnecessary calls to `SymbolInfo...` functions within the performance-critical `OnTick` function and its helper methods. By fetching this data only once at startup, the EA's per-tick execution becomes more efficient, reducing computational overhead. The `SymbolInfoDouble` calls for Ask and Bid have also been replaced with the faster, pre-defined global variables `Ask` and `Bid`. |
||
|---|---|---|
| .. | ||
| Experts | ||
| Indicators | ||