Trend trading. Non lag moving average will change colour to yellow to signal a change in direction. If upward trend and slight reversal blue will change to yellow and kink up and then blue again. On down trend red changes to yellow and back to red.
Code attached
There is no code attached and no screenshot as is required when requesting a code conversion in the forums.
The search box is your friend and if you select average type 37 in this indicator then you will get a non lag moving average:
Average Filter Regression