- Introduced a lightweight new bar check using iTime() as an early-exit gatekeeper.
- Deferred IsTradingAllowed() and other expensive API calls after the new bar check.
- Relocated UpdateDailyStatistics() from the per-tick path to only run on new bars or when a trade event occurs (OnTrade).
- Removed redundant CopyRates-based bar checks.
- Significantly reduced terminal API overhead and history scanning during high-tick-rate periods.
Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>