TradingView
Johnman
٤ تموز يوليو ٢٠١٤ ٠٨:٢٩

CCI Crossover Alert 

S&P 500 index of US listed sharesFXCM

الوصف

This very simple indicator will give you a blue background where the CCI crossed from below -100 to above -100, and a red background where it crossed from above 100 to below 100.
التعليقات
sevejose
Is there a scanner or something were I can get alerted when CCI (62) crosses 0 in a certain timeframe? Or could it be built into a script ?
blackmagic30
Can you set an alert for this indicator to email
squattter
that's way too complicated for what you want to do.

Just create a standard alert on a default cci indicator. crossing down value 100, on bar close, and second alert will be crossing up -100
KevJWilly
Great indicator. Can you add alerts please?
ilkersuer
Thanks mate for your effort, I was looking for this!
Rise_of_Skywalker
How can I add SMA200 as a filter? No signal when prices below SMA200
OptionsMove
Thanks, how to add an alert that could pop up a message or beeps a sound?
blackmagic30
im trying to add alert to this CCI template i got form the website. i am getting errors. any help. i watn a alert every time it crosses the CCI. below or above the 100 or - 100

study("CCI Crossover Alert_V4", overlay=true)
length=input(20, "Length", integer)

current = cci(close[0], length)
previous = cci(close[1], length)

bgcolor(current < 100 and previous > 100 ? red : na)
bgcolor(current > -100 and previous < -100 ? blue : na)

alert1= bgcolor(current < 100 and previous > 100 ? 1 : 0
alert2= bgcolor(current > -100 and previous < -100 ? 1 : 0

//plot(100, style=area, transp=95, color=blue)
//plot(-100, style=area, transp=95, color=blue)
//plot(cci(close, length))

plot(alert1, title="bgcolor alert", style=line, linewidth=1, color=yellow)
plot(alert2, title="bgcolor alert", style=line, linewidth=1, color=yellow)
insulinSpike
hey thank you for posting this indicator, really helpful for me to learn coding and this is very simple yet useful! :) cheers!
ChartArt
Thank you!

One question: It seems to not fit with the same data given by the TradingView build-in CCI indicator - when crossing from below -100 to above -100. The built-in commodity channel indicator shows those crossings very noticeable earlier than your version of the CCI. Please compare them yourself.
المزيد