iStochastic and the stochastic indicator

 
I've had trouble getting the values agreeing between the stochastic function and the indicator itself displayed on charts (using exponential averaging, "Close" data point). Anyone familiar with the difference between the calculations and if they can be reconciled?
 
What does the stochastic have to do with EMA?
 
WHRoeder:
What does the stochastic have to do with EMA?
There us an option in the stochastic to use exponential averaging. I used it.
Reason: