找回密码
 注册
搜索
楼主: NumberRules

[操作技巧] intraday VWAP.

[复制链接]
发表于 2009-2-15 11:23 PM | 显示全部楼层


回复 鲜花 鸡蛋

使用道具 举报

发表于 2009-2-15 11:56 PM | 显示全部楼层
本帖最后由 90ufo 于 2009-2-16 00:00 编辑

Brian Shannon sometimes mention 2-day VWAP, when he looks at 2-day price action.   
Do you find VWAP better than MA?  
I found the support/resistance that Brian Shannon mentioned usually match the support / resistance of 5min*50ema.  (didn't do thorough research, so I am not sure)
  
I've been using 5min*50ema.   My impression is more people use MA (EMA or SMA) than VWAP to identify support / resistance.    These potential support/ resistance levels are like a self-fulfilled prophecy, the more people follow, the more likely it will become true, so follow the one that most people use is better.
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-2-16 11:22 PM | 显示全部楼层
能不能把你的AmiBroker代码贴一下。谢谢!
CoolMax 发表于 2009-2-15 22:53


算法很简单, investorpedia有介绍,“VWAP is calculated by adding up the dollars traded for every transaction (price multiplied by number of shares traded) and then dividing by the total shares traded for the day.”

其中一种比较popular的coding 如下,用close price结算,

_SECTION_BEGIN("Intraday VWAP");

Intraday_Bars = 1 + BarsSince( Day() != Ref(Day(), -1));
StartBar = ValueWhen(TimeNum() == 093000, BarIndex());

IIf (BarIndex() >= StartBar,
VWAP = Sum (C * V, intraday_bars  ) / Sum(V,Intraday_Bars),0);

Plot (VWAP,"VWAP",colorWhite);

_SECTION_END();

当然也可以用(H+L)/2来算,就是如何取平均值的问题,差不离几。
回复 鲜花 鸡蛋

使用道具 举报

 楼主| 发表于 2009-2-16 11:28 PM | 显示全部楼层
Brian Shannon sometimes mention 2-day VWAP, when he looks at 2-day price action.   
Do you find VWAP better than MA?  
I found the support/resistance that Brian Shannon mentioned usually match the s ...
90ufo 发表于 2009-2-15 23:56


no arguement,我觉得2day vwap没啥用,因为有gap。

你应该用你觉得舒服的trending system。
回复 鲜花 鸡蛋

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|www.hutong9.net

GMT-5, 2024-4-28 05:34 PM , Processed in 0.034908 second(s), 13 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表