TradingView
sbtnc
١٩ أيار مايو ٢٠١٩ ٠٨:٢٠

Chaikin Oscillator 

Bitcoin / DollarBitfinex

الوصف

This script plots the original Chaikin Oscillator in addition of highlighting positive/negative pressure areas.

ملاحظات الأخبار

v2.0
  • Add a dynamic gradient coloring
  • Minor improvements
التعليقات
BavarianMan
//@version=3
//
// @mrSebastienC
// 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")
BavarianMan
//@version=3
//
// @mrSebastienC
// 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")
BavarianMan
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.
sbtnc
@shreyasimijo, Thanks for your comment. Indeed, it looks interesting. I'll check it !
BavarianMan
@mrSebastienC, thank you sir,
sir i am thinking a strategy , when you get time to discuss please message me.
المزيد