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 );