Updates:
After some careful review, I noticed the previous version was actually reflecting OHLC/4 SMA values, rather than KAMA values. This version actually reflects KAMA values.
ATR sampling period is now linked to the sampling period parameter.
Bar colors are now included. The color scheme is based on the direction of the KAMA.