CODING REQUEST:
The following pseudo code details an improved Automatic Trend line (TL) called (NewATL), the explanation is done with respect to a bullish TL tests for 'up' TL's, but obviously the indicator will annotate and alert up and down TL's, plus the corresponding parallel channel line. It's meant to be an improvement over the original custom indicator posted here: