LazyBear

Z distance from VWAP [LazyBear]

This calculates normal distance of price from VWAP . This is a mean reverting idea (something like ZScore), but using both "volume" and "close".

Useful for finding OB/OS areas and potential turning points.

Complete list of my indicators:
從常用腳本中移除 新增至常用腳本
//
// @author LazyBear 
// List of all my indicators: https://www.tradingview.com/v/4IneGo8h/
//
study("Z distance from VWAP [LazyBear]", shorttitle="ZVWAP_LB")
length=input(20)

calc_zvwap(pds) =>
	mean = sum(volume*close,pds)/sum(volume,pds)
	vwapsd = sqrt(sma(pow(close-mean, 2), pds) )
	(close-mean)/vwapsd

plot(0)
upperTop=input(2.5)
upperBottom=input(2.0)
lowerTop=input(-2.5)
lowerBottom=input(-2.0)

plot(1, style=3, color=gray), plot(-1, style=3, color=gray)
ul1=plot(upperTop, "OB High")
ul2=plot(upperBottom, "OB Low")
fill(ul1,ul2, color=red)
ll1=plot(lowerTop, "OS High")
ll2=plot(lowerBottom, "OS Low")
fill(ll1,ll2, color=green)
plot(calc_zvwap(length),title="ZVWAP",color=maroon, linewidth=2)

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

評論

This seems really interesting/powerful used in conjunction with MACD/Derivative Oscillator as well as your WT_LB indicator. Could you talk a bit here about how you use it? It seems in backtesting that it gives a good leading indicator of possible MACD crosses.

(am newb, thanks much)
+7 回覆
How do I add this to thinkorswim? Copy/paste isn't working. Thanks!
+4 回覆
t_todua Special_Grant
@Special_Grant, it needs ThinkOrSwim programmer.
回覆
What does PDS define?
回覆
It doesnt seem to work for currencies and indexes... any idea ?
回覆
stuehmer AhhBoii
@AhhBoii, they don't have volume. Look at futures instead
回覆
Is there a way to create a search parameter for Thinkorswim using this indicator?
回覆
t_todua john.main.982
@john.main.982, you need thinkoswim programmer.
回覆
Great !...The big boys come in when price deviates 4% from VWAP ....fyi ;)
回覆
LazyBear TASAVANT
Nice..thanks for the info :)
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出