MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] c37a230283 feat(ea): optimize on-tick new bar check
This commit introduces a critical performance optimization to the OnTick() function in the main Expert Advisor.

Previously, the function called the expensive `CopyRates()` function on every incoming price tick, only to potentially discard the data if a new bar had not formed.

This change implements an "early exit" strategy. By using the lightweight `iTime()` function at the very beginning of `OnTick()`, the EA now immediately checks for a new bar and exits if one has not formed. This ensures that the resource-intensive data copying and subsequent trading logic only run once per bar, significantly reducing CPU load and improving the overall efficiency of the advisor.
2026-01-05 19:04:11 +00:00
..
Experts feat(ea): optimize on-tick new bar check 2026-01-05 19:04:11 +00:00
Indicators feat: Add SL/TP modes and risk management to EA 2025-12-26 08:17:39 +00:00