Thanks again. The dedatetime plugin is very handy. This still leaves the last hourly bar of the day out of the sum, but I'll keep looking at it and see if I can figure it out.
Thanks for your help. ges On 9/6/07, ed2000nl <[EMAIL PROTECTED]> wrote: > > > hi, > > just use: > > begvol = TimeNum() == 093000; > endvol = TimeNum() == 160000; > CountWhile = Flip(begvol,endvol); > Cumvol = IIf(CountWhile,Sum(V,BarsSince(begvol)),0); > > //Plot(Cumvol,"Cumvol",colorWhite,styleHistogram); > PlotOHLC( Cumvol, Cumvol, 0, 0, "Cumvol", colorWhite, styleCloud ); > > Or if you want to show this chart for stocks that are illiquid and > therefor might not have a datapoint at 093000 you might want to use > the dedatetime plugin. You will need to download this plugin from the > files section. If you use that the code will look like: > > begvol = deFlagFirstBarOfDay(093000); > endvol = deFlagLastBarOfDay(160000); > > CountWhile = Flip(begvol,endvol); > Cumvol = IIf(CountWhile,Sum(V,BarsSince(begvol)),0); > > //Plot(Cumvol,"Cumvol",colorWhite,styleHistogram); > PlotOHLC( Cumvol, Cumvol, 0, 0, "Cumvol", colorWhite, styleCloud ); > > >
