LazyBear

Ehlers Cyber Cycle Indicator [LazyBear]

The Cyber Cycle Indicator, developed by John Ehlers , is used for isolating the cycle component of the market from its trend counterpart. Unlike other oscillators like RSI , Cyber Cycle Indicator's wave has a variable amplitude.

Use the osc/signal crossover for entry/exit points. You can enable highlighting the crossovers by using region fills (via options page). I have also added an option to color the bars based on this.

Actually I have lot of Ehlers indicators in my to-publish backlog, will try to prioritize them over the others in the pipeline. Lets have an Ehlers week for indicators :)

More info:
Cybernetic Analysis for Stocks and Futures

List of my public indicators: http://bit.ly/1LQaPK8
List of my app-store indicators: http://blog.tradingview.com/?p=970


오픈 소스 스크립트

진정한 TradingView의 정신에 따라, 이 스크립트의 작성자는 스크립트를 오픈소스로 게시했기에 거래자들이 이해하고 확인할 수 있습니다. 작가님께 건배! 스크립트를 무료로 사용할 수 있지만, 게시물에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
study("Ehlers Cyber Cycle Indicator [LazyBear]", shorttitle="ECCI_LB", overlay=false, precision=3)
src=input(hl2, title="Source") 
alpha=input(.07, title="Alpha")
smooth=(src+2*src[1]+2*src[2]+src[3])/6
cycle_=(1-.5*alpha)*(1-.5*alpha)*(smooth-2*smooth[1]+smooth[2])+2*(1-alpha)*nz(cycle_[1])-(1-alpha)*(1-alpha)*nz(cycle_[1])
cycle=(n<7)?(src-2*src[1]+src[2])/4:cycle_
t = cycle[1]
plot(0, title="ZeroLine", color=gray) 
fr=input(true, title="Fill Osc/Trigger region")
duml=plot(fr?(cycle>t?cycle:t):na, style=circles, linewidth=0, color=gray, title="Dummy")
cmil=plot(cycle, title="CyberCycle",color=blue)
tl=plot(t, title="Trigger",color=green)
fill(cmil, duml, color=red, transp=50, title="NegativeFill")
fill(tl, duml, color=lime, transp=50, title="PositiveFill")
ebc=input(false, title="Color bars?")
bc=ebc?(cycle>0? (cycle>t?lime:(cycle==t?gray:green)): (cycle<t?red:orange)):na
barcolor(bc)
List of my free indicators: http://bit.ly/1LQaPK8
List of my indicators at Appstore: http://blog.tradingview.com/?p=970

코멘트

LB, I enjoy your prolific coding efforts. I'm not a coding guy, but I also wondered about the final term in the CCI calculation. See 12/10/20 post. Instead of (1-alpha)*( 1-alpha)*nz(cycle_1), should the final term be (1-alpha)*( 1-alpha)*nz(cycle_2)? Reference J. Ehlers' Cybernetic Analysis for Stocks and Futures, 2004, pg 38, Figure 4.6.
응답
Just came across this indicator and did some further reading about the mechanics. In your code Line 11:
cycle_=(1-.5*alpha)*(1-.5*alpha)*(smooth-2*smooth+smooth)+2*(1-alpha)*nz(cycle_(1))-(1-alpha)*(1-alpha)*nz(cycle_(1))

Should the index be nz(cycle_(2) for the last nz(cycle_(1) in the end of the line?

From page 34 of Cybernetic Analysis for Stocks and Futures, the formula seemed using index (2) . This indicator is totally new to me so I might be wrong in terms of what I read giving limited information so far. Much appreciated for any insight you might have.
응답
New to all this and using your indicators. Just wanted to give you a big thanks for doing this and sharing. I really appreciate it as I'm sure a lot of others do to.
응답
How do you get the bars to be colored? I just have the indicator added
응답
LazyBear A-shot
Open the Options dialog (click on "Format" icon next to the indicator name.), select "Color bars?".
응답
Dude, I think most of my Favourites librbary contains your indicators XD.

Thank you as always.
응답
LazyBear Pansyfaust
YW :)
응답