OPEN-SOURCE SCRIPT

Stochastic EMA, SMA, VWMA + Divergence

Updated
Every MetaTrader User knows the function to switch the stochastic calculation from simple to exponential.

So i took the original Stochastic code from TV and enhanced it for the SMA, EMA, and VWMA smoothing. If you are using a longer K Smoothing interval you will recognize a notable difference between SMA and EMA.

  • Standard Stochastic Calculation that is well kown
  • Option to switch smoothing calculation
  • Choice between Simple Moving Average, Exponential Moving Average, Volume Weighted Moving Average


If you have more wishes regarding the smoothing, just leave a comment i can add a lot more...

On my to-do list is also the divergence lines known from the "divergence indicator" (RSI).

I hope this helps to get better entries ;-)

Have fun!
Release Notes
If you are daytrader, you want to have an set lines for slow and fast stochastic. Added an switch to active a 2nd pair of lines for stochastic so you can scalp with slow and fast lines.

The embedded screenshot shows our preferred settings from MT4.
exponentialStochastic Oscillatorstochasticoscillatorstochastictrading

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Got a lot of feature requests to pay for additions. I will never ever charge any money or sell subscriptions for retailers.

If the idea is good, i will sit down and try to make it happen for free. You can buy me a coffee instead.
Also on:

Disclaimer