sbtnc

Chaikin Oscillator

This script plots the original Chaikin Oscillator in addition of highlighting positive/negative pressure areas.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
I have private indicators too!

Get access to them via: https://www.patreon.com/sbtnc

Comments

//@version=3
//
// @sbtnc
// 2019-5-19
study(title="Chaikin Oscillator", shorttitle="Chaikin Osc")

//------------------------------ Inputs ------------------------------

fast = input(3, minval=1, title="Fast Length")
slow = input(10, minval=1, title="Slow Length")
EMA = input(55, minval=1, title="EMA of The Period")

//------------------------------ Colors ------------------------------

color_negative = #ff4e3e
color_positive = #3fbe53
color_neutral = #656565

//------------------------------- Logic ------------------------------

// orignal logic
osc = ema(accdist, fast) - ema(accdist, slow)
emaosc = ema(osc,EMA)

positive = osc > emaosc

//------------------------- Plotting & styling ------------------------

transp_area = 65
transp_osc = 20
transp_zero = 100

color = positive ? color_positive : color_negative

zero = plot(emaosc, color=color_neutral, transp=transp_zero, title="zero")
chaikinOsc = plot(osc, color=color_neutral, transp=transp_osc, title="Chaikin Oscillator")

fill(zero, chaikinOsc, color=color, transp=transp_area, title="area")
Reply
//@version=3
//
// @sbtnc
// 2019-5-19
study(title="Chaikin Oscillator", shorttitle="Chaikin Osc")

//------------------------------ Inputs ------------------------------

fast = input(3, minval=1, title="Fast Length")
slow = input(10, minval=1, title="Slow Length")
EMA = input(55, minval=1, title="EMA of The Period")

//------------------------------ Colors ------------------------------

color_negative = #ff4e3e
color_positive = #3fbe53
color_neutral = #656565

//------------------------------- Logic ------------------------------

// orignal logic
osc = ema(accdist, fast) - ema(accdist, slow)
emaosc = ema(osc,EMA)

positive = osc > emaosc

//------------------------- Plotting & styling ------------------------

transp_area = 65
transp_osc = 20
transp_zero = 100

color = positive ? color_positive : color_negative

zero = plot(0, color=color_neutral, transp=transp_zero, title="zero")
chaikinOsc = plot(osc, color=color_neutral, transp=transp_osc, title="Chaikin Oscillator")

fill(zero, chaikinOsc, color=color, transp=transp_area, title="area")
Reply
Sir, if you use ema of X period of the osc value and choose the crossover,cross below over it then I think it will be effective.
Thank you sir for your hard work.
If you add some buy and sell entry with this then it will very easy to check the strategy.
Reply
sbtnc BavarianMan
@BavarianMan, Thanks for your comment. Indeed, it looks interesting. I'll check it !
Reply
@sbtnc, thank you sir,
sir i am thinking a strategy , when you get time to discuss please message me.
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter