forked from LengKundee/MQL5-Google-Onedrive
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> |
||
|---|---|---|
| .. | ||
| MQL5 | ||