Here's some links: http://www.amibroker.org/userkb/2008/02/18/real-time-bar-period-timing-2/
http://www.amibroker.org/userkb/2007/12/28/real-time-bar-period-timing/ d On Mon, Dec 1, 2008 at 12:01 PM, dingo <[EMAIL PROTECTED]> wrote: > There's code in the UKB that will do this for you. > > d > > On Mon, Dec 1, 2008 at 11:29 AM, Pete <[EMAIL PROTECTED]> wrote: > >> This is great and will do the trick just fine. >> I was wondering if anyone had an idea on how to tweak this just a tad >> to get the seconds left to actually display in seconds instead of >> 100's of a minute. When counting down it goes from 2.00 to 1.99, >> 1.98... instead of 1.59, 1.59.... >> But thanks for the code. I really appreciate it! >> >> Pete :-) >> >> --- In [email protected], "ricko8294_98" <[EMAIL PROTECTED]> wrote: >> > >> > Will this help? I copied this from another post some time in the >> > past. Don't remember the author of it >> > >> > function secondsLeftOnBar_func() >> > { >> > Time = Now( 4 ); >> > Seconds = int( Time % 100 ); >> > Minutes = int( Time / 100 % 100 ); >> > Hours = int( Time / 10000 % 100 ); >> > SecondNum = int( Hours * 60 * 60 + Minutes * 60 + Seconds ); >> > TimeFrame = Interval(); >> > Newperiod = SecondNum % TimeFrame == 0; >> > SecsLeft = SecondNum - int( SecondNum / TimeFrame ) * TimeFrame; >> > SecsToGo = TimeFrame - SecsLeft; >> > return SecsToGo; >> > } >> > >> > Then, to add to the title bar add this line >> > >> > Title = Title + "\n\\c07 Time left in the bar " + WriteVal >> > (SecsToGo/60 ,2.2); >> > >> > >> > >> > >> > --- In [email protected], "Pete" <dryheat3@> wrote: >> > > >> > > Thanks for the tip. I checked the UKB and didn't find anything that >> > > does exactly what I'm looking for. What I would like is to see the >> > > current system time expressed in hh:mm:ss and I would like the >> > display >> > > to be active, meaning as seconds tick away the display would show >> > each >> > > second passing along. The purpose would be for intraday use so I can >> > > see as a bar is about to be completed and moved to the next bar. >> > > Thanks. >> > > >> > > Pete :-) >> > > >> > >> >> >> >> ------------------------------------ >> >> **** IMPORTANT **** >> This group is for the discussion between users only. >> This is *NOT* technical support channel. >> >> ********************* >> TO GET TECHNICAL 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 >> >> >> >> >
