Excuse me, the general algorithm like the sar indicator will calculate the next sar value based on the previous sar value. If I want to adjust a certain sar value to affect the calculation of the next sar value, how do I do it?
You need to write your own formula that re-implements given indicator if you want to change inner workings of any built-in indicator. Built-in indicators are native machine code and you can't inject your stuff in it.
What you can do is:
- change input data (either arrays that you pass to function as arguments and/or modify OHLC V arrays that could be implicitly used)
- change parameters of the functions (by passing them as arguments)
But you can not modify the internal algorithm. You can only reimplement your own version.