code from linear regression used
with author consent
So this metod give us the high the middle and the low of the linear trend
you can use it with regular pivots or by its own in oreder to determine the high and the low
I advise to add linear regression to this indicator