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

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
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")