That's called Trailing Stop. You will find one here: url
Sorry for late reply, only just saw this. To remove filled box, in inputs eg. FPZ2 etc. remove the F this is the code for a "Filled Box".
Description of the ZigZag parameter stepper Attached is an updated version of my ZigZag indicator. The most important change is the rewritten signaling. For this some of the input ...
first day @Blam s I am still going refine them,