PureBytes Links
Trading Reference Links
|
OK, this seems to do it:
begvol = deFlagFirstBarOfDay(); endvol = deFlagLastBarOfDay();
CountWhile = Flip(begvol,endvol); Cumvol = IIf(CountWhile,Sum(V,BarsSince(begvol)),Sum(V,BarsSince(begvol)));
//Plot(Cumvol,"Cumvol",colorWhite,styleHistogram); PlotOHLC( Cumvol, Cumvol, 0, 0, "Cumvol", colorWhite, styleCloud );
That ensures that the last bar gets summed in also.
On 9/6/07, ges x <ges8ges@xxxxxxxxx> wrote:
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 <
empottasch@xxxxxxxxx> 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 );
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|