LazyBear

Ehlers Simple Cycle Indicator [LazyBear]

One of the early cycle indicators from John Ehlers.

Ehlers suggests using this with ITrend (see linked PDF below). Osc/signal crosses identify entry/exit points.

Options page has the usual set of configurable params.

More info:
- Simple Cycle Indicator: www.mesasoftware.com...nars/AfTAMay2003.pdf

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


List of my free indicators: bit.ly/1LQaPK8
List of my indicators at Appstore: blog.tradingview.com/?p=970
开源脚本

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

免责声明

这些信息和出版物并不意味着也不构成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  Simple Cycle Indicator [LazyBear]", shorttitle="ESCI_LB")
src=input(hl2, title="Source") 
alpha=input(.07, title="Alpha")
Smooth = (src + 2*src[1] + 2*src[2] + src[3])/6.0
cycle_ = (1 - .5*alpha)*(1 - .5*alpha)*(Smooth - 2*Smooth[1] + Smooth[2])+ 2*(1 - alpha)*cycle[1] - (1 - alpha)*(1 - alpha)*cycle[2]
cycle = iff(n<7, (src - 2*src[1] + src[2]) / 4.0, 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="SimpleCycleIndicator",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)