LazyBear

Indicator: CCI coded OBV

17282 views
5302
17282 26
OBV is colored green if CCI > threshold, red if CCI < threshold.

Both "threshold" and "CCI Length" can be customized using the options page.

Indicator also displays a 13EMA (length can be changed) over OBV.
Remove from Favorite Scripts Add to Favorite Scripts
// 
// @author LazyBear
// 
study("CCI coded OBV", shorttitle="CCIOBV_LB")
src = close
length = input(20, minval=1, title="CCI Length")
threshold=input(0, title="CCI threshold for OBV coding")
lengthema=input(13, title="EMA length")
obv(src) => 
    cum(change(src) > 0 ? volume : change(src) < 0 ? -volume : 0*volume)
    
o=obv(src)
c=cci(src, length)
plot(o, color=c>=threshold?green:red, title="OBV_CCI coded", linewidth=2)
plot(ema(o,lengthema), color=orange, linewidth=2)
Great job. Thanks for this and for all that you share. I tweak, customize and combine some but this one is perfect straight up. Thanks again and keep smiling!
Reply
Hey i want to ask how you can set an alert on this one when it turns from green to red and from red to green? Thanks for help
Reply
Hi

How can I use this indicator for Gold & DXY, it is only working on certain things like: USDCAD, BTCUSD?
+10 Reply
Thanks for this. Just wondering when one would change the threshold value? What does the threshold value represent? Thank you.
+7 Reply
Thank you Lazybear! I found a good explanation on how to use CCI to take trades so I thought I would share it. https://youtu.be/IJ9I_5M6SUM
+7 Reply
AshVecciho ChristopherJuliano
@ChristopherJuliano, I watched it and it goes from -200 0 +200

I don't get the increments used on this indicator though. As shown above 120k to 180k? How do you use that as a gauge for anything with no "0" in the center for a point of reference? I'm looking at it on my chart and it goes from 0 to 2 mil.

Thanks,

Confused in crypto land
+1 Reply
Amazing indicator, genius. I started demo trading 3 months ago and have lost 5k all in all so doing pretty poorly

This indicator is a game changer allied to a few others yes but this is key. Have suddenly become consistently profitable

I doff my hat to you lazy bear
+5 Reply
Does this indicator only work with BTCUSD?

I can't seem to get it working with any other data :/
Reply
LazyBear Sora0102
OBV needs volume. May be you tried it on FX? If problem still persists, can you post a chart? Thx.
+1 Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
HE עברית
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Get Help Ideas Published Followers Following Private Messages Chat Sign Out