LazyBear

Ehlers Instantaneous Trend [LazyBear]

One more to add to the Ehlers collection.

Ehlers Instantaneous Trendline , by John Ehlers , identifies the market trend by doing removing cycle component. I think, this simplicity is what makes it attractive :) To understand Ehlers's thought process behind this, refer to the PDF linked below.

There are atleast 6 variations of this ITrend. This version is from his early presentations.

Is this better than a simple HMA? May be, May be not. I will leave it to you to decide :)

I have added options to show this as a ribbon, and to color bars based on ITrend. Check out the options page.

More info:
- ITrend: http://www.mesasoftware.com/seminars/AfT...

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

從喜愛的腳本中移除 添加到喜愛的腳本
//
// @author LazyBear 
// 
// List of my public indicators: http://bit.ly/1LQaPK8 
// List of my app-store indicators: http://blog.tradingview.com/?p=970 
//
study(title="Ehlers Instantaneous Trend [LazyBear]", shorttitle="EIT_LB", overlay=true, precision=3)
src=input(hl2, title="Source")
a= input(0.07, title="Alpha", step=0.01) 
fr=input(false, title="Fill Trend Region")
ebc=input(false, title="Enable barcolors")
hr=input(false, title="Hide Ribbon")
it=(a-((a*a)/4.0))*src+0.5*a*a*src[1]-(a-0.75*a*a)*src[2]+2*(1-a )*nz(it[1], ((src+2*src[1]+src[2])/4.0))-(1-a )*(1-a )*nz(it[2], ((src+2*src[1]+src[2])/4.0))
lag=2.0*it-nz(it[2])
dl=plot(fr and (not hr)?(it>lag?lag:it):na, color=gray, style=circles, linewidth=0, title="Dummy")
itl=plot(hr?na:it, color=fr?gray:red, linewidth=1, title="Trend")
ll=plot(hr?na:lag, color=fr?gray:blue, linewidth=1, title="Trigger")
fill(dl, ll, green, title="UpTrend", transp=70)
fill(dl, itl, red, title="DownTrend", transp=70)
bc=not ebc?na:(it>lag?red:lime)
barcolor(bc)
Hello LB, one question for you with regards to this indicator. it looks that can be compiled only if the code is written under @version2 rules.
would you know how to update the following into @version4 ?
it=(a-((a*a)/4.0))*src+0.5*a*a*src-(a-0.75*a*a)*src+2*(1-a )*nz(it, ((src+2*src+src)/4.0))-(1-a )*(1-a )*nz(it, ((src+2*src+src)/4.0))
appreciated if you can help, and thanks for your continuos ideas production
MM
回覆
GRE666X marcomania
@marcomania, i think you give, 'it=@ a value of 0
It=0.0
it:=(a-((a*a)/4.0))*src+0.5*a*a*src-(a-0.75*a*a)*src+2*(1-a )*nz(it, ((src+2*src+src)/4.0))-(1-a )*(1-a )*nz(it, ((src+2*src+src)/4.0))
回覆
@GRE666X, thanks very much and sorry for the late reply. Cheers. MM
回覆
this indicator looks great.. thanks
i just looked at your list of indicators.. wow.. so many.. what is your favorite indicator of all?
回覆
@zzzsong, I use this one myself daily and been profiting nicely. better than any other MA script.
回覆
How do you get the lines filled in red or green color?
+4 回覆
Entity sjcwealth
@sjcwealth, Enable them on the indicator options (Cog wheel)
+1 回覆
@Entity, Thanks for your reply!
回覆
SECOND BEST .. After the RSI bands.. this is the one...great work..
回覆
For some reason when I add the indicator to the chart, the EMAs are not filled with the red and green trend indi colors...
+4 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 節目 如何運作 圖表功能 價格 網站規則 版主 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 幫助中心 推薦朋友 功能請求 部落格 & 新聞 推特
概述 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出