MQL5-Google-Onedrive/mt5/MQL5
google-labs-jules[bot] c4bb738e3c Refactor: Eliminate recursive call in CalculateTP
What:
Replaced a recursive call in the `CalculateTP` function's fallback logic with the direct implementation of the `TP_RR` calculation.

Why:
The original code created a risk of a stack overflow and performance degradation due to a recursive call when indicator data couldn't be fetched.

Impact:
This change prevents a critical error and potential EA crash, ensuring stable operation. It also slightly improves performance by removing the overhead of a function call in the fallback path.

Measurement:
The improvement is verified by code inspection, confirming the removal of the recursive call. The EA will no longer be susceptible to crashing in the specific scenario where Donchian Channel data is unavailable.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-27 17:33:35 +00:00
..
Experts Refactor: Eliminate recursive call in CalculateTP 2026-01-27 17:33:35 +00:00
Indicators feat(mql5): cache MTF confirmation to reduce CPU load (#78) 2026-01-10 05:36:08 +07:00