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 [email protected], Dennis Brown <[EMAIL PROTECTED]> 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 ? > > >
