I think the 500.0000 is the normalization lookback period - if it is it will repaint the last 500 bars constantly - that's maybe why the arrows and entry not in the same spot
It also must be using some kind of reverse smoothing to get the clamping effect
My indi below not exactly the same but similar is some way