MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] 85ea5cbd3b Bolt: Optimize OnTick by adding a new-bar check
💡 What: Added a new-bar check at the beginning of the `OnTick()` function using the lightweight `iTime()` function.

🎯 Why: The `OnTick()` function was executing expensive calculations (`CopyRates`, loops) on every single price tick, which is highly inefficient.

📊 Impact: This change reduces CPU load significantly by ensuring the main logic only runs once per bar, not on every tick. This is a critical performance improvement for any Expert Advisor.

🔬 Measurement: The improvement can be verified by observing the CPU usage of the MetaTrader 5 terminal when running this EA on a chart, especially during volatile market conditions. The difference will be substantial.
2026-01-03 17:03:02 +00:00
..
Experts Bolt: Optimize OnTick by adding a new-bar check 2026-01-03 17:03:02 +00:00
Indicators feat: Add SL/TP modes and risk management to EA 2025-12-26 08:17:39 +00:00