MQL5-Google-Onedrive/mt5
google-labs-jules[bot] e62900a15a Refactors CalculateSL and CalculateTP to accept indicator values as arguments.
This change eliminates redundant `CopyBuffer` calls within the `OnTick` hot path by fetching the required indicator data once and passing it down the call stack. This improves performance by reducing unnecessary work on every tick.

Additionally, this refactoring fixes a latent infinite recursion bug in the `CalculateTP` function's fallback logic, making the code more robust.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-01-27 17:18:17 +00:00
..
MQL5 Refactors CalculateSL and CalculateTP to accept indicator values as arguments. 2026-01-27 17:18:17 +00:00