Try

if (Timemun() >= 151500) 
{
code
}

----- Original Message ----- 
From: "ymtrader1" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, December 19, 2006 3:18 PM
Subject: [amibroker] Bar time coding


> 
> I would like to get the current bar's intra-day time into a number
> format (not array or string) so that I can execute the following code:
> 
> 
> if(bartime>= 151500)/ bar time after 15:15 EST then execute code
> 
> {
>  sell = 1;
>  cover = 1;
> }
> 
> 
> I found the "Time_To_Num()" function that will take a string and
> convert to number but I can't find a way to get the current bar's time
> into a string format.  The Date() function returns a string, but the
> function doesn't mention the string format.
> 
> Thanks,
> 
> Joe
> 
> 
> 
> 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
> 
> 
> 

Reply via email to