SAR-adjusted extremes
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © tech24trader-ben-au

//@version=4
study(title="SAR-adjusted extremes",overlay=false)
mysar = sar(0.01,0.01,0.3)
highLine = abs(high - mysar)
lowLine = abs(low - mysar)

plot(highLine, 'High', color = #00ff00)
plot(lowLine, 'Low', color = #ff8800)