The Kurtosis is a market sentiment indicator. Acting like an oscillator, it reflects the trend of the price.
The Kurtosis is constructed from three different parts. The Kurtosis, the Fast Kurtosis(FK), and the Fast/Slow Kurtosis(FSK).
It is the average of the difference of a fast moving average (period 3 by default) smoothed by a 66 periods exponential one. This result is again averaged by another 3 periods SMA (FSK one).
Parameters :
K = 3
FK = 66
FSK = 3
mm = exponentialaverage[K](close)
diff = mm-mm[1]
mmK = exponentialaverage[FK](diff)
Kurtosis = average[FSK](mmK)
RETURN Kurtosis as "Kurtosis oscillator"