kocurekc

Pine Script, KDJ Indicator, Free

AMEX:SPY   SPDR S&P 500
This indicator was originally noted in the tradingview help forums. Noted from "Google's Finance Site," but they use a modified (using EMA instead of traditional SMA ) slow stochastic with the %J equation (%J =3 * D – 2 * K ). I can't find any references to the origins of the %J equation, but it is noted in several other online sites.
https://getsatisfaction.com/tradingview/topics/pine_script_for_kdj_indicator

So, I've taken the indicator and made some options, upgrades and published it for free!. The basic foundation of the code is still the %J equation. I've included an option to use either the EMA (default) and the SMA (more traditional slow stochastic ). You can also adjust the lookback period, %D smoothing, and I've included the option to smooth the %J. This last option slows the indicator down a little, but really cuts out the choppiness of the %J crossings.

Get the source here: http://pastebin.com/CVrVn9F6

Installation video by @ChrisMoody here : http://vimeopro.com/user14689865/tradingviewcom-how-to-videos
Google Finance seems to use a Slow Stochastic, with Wilder version of Exponential Weighted Moving Average, with D period of 3, and %J=3 * D – 2 * K
For ThinkorSwim users, 1) Copy StochasticSlow study 2) edit new study, adding line a end of code, Jsto = 3 * SlowD - 2 * SlowK;
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
中国
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out