MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] d7159bd6fd feat(perf): Cache symbol properties to speed up OnTick
💡 What: This change caches static symbol properties (like point size, digits, tick value, etc.) in global variables during the EA's `OnInit` phase.

🎯 Why: The Expert Advisor was repeatedly calling `SymbolInfo...()` functions within the performance-critical `OnTick` execution path. These calls are relatively slow and the values they retrieve do not change during the EA's lifetime, making the repeated calls a source of unnecessary overhead.

📊 Impact: This optimization significantly improves performance by eliminating dozens of redundant function calls on every tick or trading decision. This results in a faster, more efficient `OnTick` cycle, allowing the EA to react more quickly to market changes.

🔬 Measurement: The improvement is verified by code inspection. The `SymbolInfo...` calls have been refactored out of the functions called by `OnTick` (like `CalculateLots`, `CalculateSL`, etc.) and are now performed only once at initialization. The existing test suite passes, confirming no change in logical behavior.
2026-01-25 11:01:59 +00:00
..
Experts feat(perf): Cache symbol properties to speed up OnTick 2026-01-25 11:01:59 +00:00
Indicators feat(mql5): cache MTF confirmation to reduce CPU load (#78) 2026-01-10 05:36:08 +07:00