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>