mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 16:39:14 +00:00
This commit corrects a subtle off-by-one error in the array boundary check for the Donchian channel lookback period. The original condition `if(donStart + donCount >= needBars)` would incorrectly cause an early exit if the required number of bars for the lookback precisely matched the number of available bars in the array. This prevented valid signals from being processed at the edge of the dataset. The condition has been changed to `if(donStart + donCount > needBars)`, which is the correct boundary check. This ensures the calculation proceeds when exactly enough data is available and only exits if there is insufficient data, improving the EA's robustness. This issue was identified during a code review for a separate performance optimization attempt. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| bolt.md | ||