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

Re: [amibroker] Bar time coding



PureBytes Links

Trading Reference Links

Try

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

----- Original Message ----- 
From: "ymtrader1" <ymtrader1@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
> 
> 
> 

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 12/20/2006 3:54 PM