CooperHoang

CCI Extreme and OBV Divergence

425
This is my second set of two indicators combined utilize Multi time frame analysis of 5 minutes and 15 minutes.

CCI:

Green = uptrending
Red = downtrending

Bright Green = overbought, look to go SHORT
Bright Red = oversold, look to go LONG


OBV:

this use to predict the market direction buy drawing trend line.

It is also very good indicator to sport Smart Money moment. When price move higher but OBV trend lower, smart money is taking profit and reversing their position, look to go Short to you spot this type of divergence.

Also else already not there is no holy grail indicator so I also use this set of indicator to improve the signal

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
study(title="Commodity Channel Index", shorttitle="CCI & OBV")
length = input(20, minval=1)
src = input(close, title="Source")
ma = sma(src, length)
cci = (src - ma) / (0.015 * dev(src, length))

length1 = input(60, minval=1)
ma1 = sma(src, length1)
cci1 = (src - ma1) / (0.015 * dev(src, length1))

length2 = input(240, minval=1)
ma2 = sma(src, length2)
cci2 = (src - ma2) / (0.015 * dev(src, length2))

bgUp  = (cci < 0 and cci1 < 0) ? red : na
bgDown =(cci > 0 and cci1 > 0) ? green : na

bgUp1  = (cci1 < -200 and cci < -200) ? red : na
bgDown1 = (cci1 > 200 and cci > 200) ? green : na

bgcolor (bgUp, transp=60)
bgcolor (bgDown, transp=60)
bgcolor (bgUp1, transp=0)
bgcolor (bgDown1, transp=0)

src1 = close
obv = cum(change(src1) > 0 ? volume : change(src1) < 0 ? -volume : 0*volume)
plot(obv, color=blue, title="OBV")