0
0
Fourche 1
miroir de https://github.com/A6-9V/MQL5-Google-Onedrive.git synchronisé 2026-04-11 04:30:56 +00:00
MQL5-Google-Onedrive/mt5/MQL5/Experts
google-labs-jules[bot] fd9514b9bd Bolt: Optimize Donchian Channel price lookup
💡 What: Replaced `iHigh()` and `iLow()` function calls with direct array access within the `OnTick()` function for retrieving Donchian Channel price levels.

🎯 Why: The `OnTick()` function is a performance-critical hot path that executes on every price update. The original code made redundant function calls to `iHigh()` and `iLow()` to retrieve price data that was already loaded into the local `rates` array.

📊 Impact: This change reduces unnecessary function call overhead in a high-frequency loop. While a micro-optimization, it leads to a small but meaningful improvement in execution speed and reduces processing time for each tick.

🔬 Measurement: Performance can be verified by profiling the `OnTick()` function's execution time in the MetaTrader 5 Strategy Tester before and after the change. A decrease in the average execution time per tick would confirm the improvement.
2025-12-30 10:33:03 +00:00
..
SMC_TrendBreakout_MTF_EA.mq5 Bolt: Optimize Donchian Channel price lookup 2025-12-30 10:33:03 +00:00