PureBytes Links
Trading Reference Links
|
I found the 'Now' function and it accomplishes what I wanted for
RealTime, but there doesn't seem to be a method for doing this during
Bar Replay.
SomeTime = Now(4);
IntervalMin = 30;
SomeTimeMod500 = SomeTime % (IntervalMin * 100);
MinOffset = int(SomeTimeMod500 / 100 );
SecOffset = SomeTimeMod500 - (MinOffset*100);
BarOffsetSec = MinOffset * 60 + SecOffset;
BarPercentComplete = BarOffsetSec / (IntervalMin*60);
ProjectedVol = LastValue(V) / BarPercentComplete;
--- In amibroker@xxxxxxxxxxxxxxx, Dennis Brown <see3d@xxx> wrote:
>
> Just use the current time minutes. 15 minutes is half way through a
> 30 minute period.
>
> Dennis
>
> On Sep 25, 2007, at 10:26 AM, Mike wrote:
>
> > Quotetracker has the ability to show projected (i.e. estimated final)
> > volume for a bar through throughout the bar. I've been trying to
> > determine how to implement an equivalent in AmiBroker, but I can't
> > find how one would implement this in AFL. Basically, a one would need
> > to determine the % of the current bar which is complete (e.g. 8 mins
> > of a 30 minute bar would be 8/30ths) and use the current volume to
> > project a final volume.
> >
> > Does anyone know of a way to get the percentage completion of the
> > current bar ? Or how one might otherwise accomplish the equivalent QT
> > function in AB ?
> >
>
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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|