[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Display Current Time on Chart



PureBytes Links

Trading Reference Links

Here's some links:
 
 
 
d

On Mon, Dec 1, 2008 at 12:01 PM, dingo <waledingo@xxxxxxxxx> wrote:
There's code in the UKB that will do this for you.
 
d

On Mon, Dec 1, 2008 at 11:29 AM, Pete <dryheat3@xxxxxxx> 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 amibroker@xxxxxxxxxxxxxxx, "ricko8294_98" <ricko@xxx> 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 amibroker@xxxxxxxxxxxxxxx, "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

<*> 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/



__._,_.___

**** 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

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___