Indicator: CCI coded OBV

24631 vizualizações
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.
Remover dos scripts favoritos Adicionar aos scripts favoritos
// @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)
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)
List of my free indicators:
List of my indicators at Appstore:


anyone know how to code this to create an alert when the obv(red/green line) crosses over or under the orange EMA? I can't seem to figure it out based on the coding. thanks in advance

Something is not working today with this indicator, on EURUSD at 5 mn chart, 16h20 (Brussels time) There is a huge drop down, unexpected. The regular OBV is not showing this picture.
RichardParker RichardParker

It occurs only with the default settings, (20, 13). So not for (21, 13) , (19, 13), etc....
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!
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
+5 Resposta

How can I use this indicator for Gold & DXY, it is only working on certain things like: USDCAD, BTCUSD?
+17 Resposta
Thanks for this. Just wondering when one would change the threshold value? What does the threshold value represent? Thank you.
+8 Resposta
Thank you Lazybear! I found a good explanation on how to use CCI to take trades so I thought I would share it.
+7 Resposta
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.


Confused in crypto land
+1 Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de Criptomoedas Calendário Econômico Como Funciona Recursos gráficos Preços Indique um Amigo Regras da Casa Central de Ajuda Soluções para Sites & Corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Blog & Notícias Twitter
Perfil Configurações de perfil Conta e cobrança Indique um Amigo Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar