$EPAC Calculation for %K
%K= 100[(C - L14) / H14 – L14)]
Where:
C = Latest Close
L14 = Lowest low for the last 14 periods.
H14 = Highest high for the same 14 periods
Calculation for %D
%D = simple moving average of %K (3 period simple moving average is the most common)