mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 06:30:56 +00:00
💡 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. |
||
|---|---|---|
| .. | ||
| SMC_TrendBreakout_MTF_EA.mq5 | ||