Refactors the `OnTick` execution path to eliminate redundant `CopyBuffer()` calls for indicator data.
Previously, `CalculateSL` and `CalculateTP` would each call `CopyBuffer()` independently, even though the same data was already available within the parent `OnTick` function.
This change hoists the data-fetching operations to the top of `OnTick`, performing them only once per tick. The resulting values are then passed down as function arguments, avoiding expensive and unnecessary data copying in a hot path.
This leads to a more efficient `OnTick` execution and reduces processing overhead.