This program only works on intraday data because it starts over at the start of each day. In other words, the VWAP and Price are the same at the market open. Any prior day data is not included in the VWAP calculation. I don't believe VWAP was intended to be used for daily data.
On Wed, Oct 28, 2009 at 7:42 PM, Mike <[email protected]> wrote: > > > If I'm the Mike that you are asking; I'm sorry, but I have not done any > work with multiple timeframes, nor with intraday data. > > Someone else will have to jump in on this one. > > Mike > > --- In [email protected] <amibroker%40yahoogroups.com>, h15...@... > wrote: > > > > MIKE or TJ can u help me on my previous message? > > > > Tq b4 > > Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung > Teruuusss...! > > > > -----Original Message----- > > From: h15...@... > > Date: Wed, 28 Oct 2009 13:53:26 > > To: <[email protected] <amibroker%40yahoogroups.com>> > > Subject: URGENT NEED HELP > > > > Dear all > > > > Need ur help.. > > I want to plot INTRADAY VWAP (I got it from AFL library) into EOD chart > > > > This is the AFL code > > Bars_so_far_today=1+barssince(day() != ref(day(),-1)); > > Startbar = valuewhen(timenum() ==093000,barindex()); > > Timeframeset(in1minute); > > Todayvolume=(sum(v,Bars_so_far_today); > > Iif(barindex () >= startbar,vwap > =sum(c*v,Bars_so_far_today)/todayvolume,0); > > Plot(timeframeexpand(vwap,in1minute),"VWAP",colororange,stylethick); > > > > The result in intraday chart and daily chart were different, in daily > chart I got yesterday close as a result not as in intraday chart > > > > Can anyone help me? > > Tq b4 > > Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung > Teruuusss...! > > > > >
