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

Re: [amibroker] Time in String Format



PureBytes Links

Trading Reference Links

TJ,
 
may I ask an additional question?
 
if my string is:
 
"12/20/2005 3:30:00 PM"
 
how can I locate this DateTime string in the DateTime() array?  Is there a way to convert "12/20/2005 3:30:00 PM" into a format which can be compared with the DateTime() like:  tttt = IIF("12/20/2005 3:30:00 PM" == DateTime(),1,0);
 
thanks,
 
Ed
 
----- Original Message -----
Sent: Wednesday, December 14, 2005 4:15 PM
Subject: Re: [amibroker] Time in String Format

Hello,
 
Strings are FOR DISPLAY only.
========================
 
You should continue to use timenums and datenums in conditions because NUMBERS work with ARRAYS.
Buy/sell conditions are ARRAYS.
 
Strings represent one value only (not array) and as such are useless in buy/sell conditions.
 
Must-read:
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Tony Lei
Sent: Wednesday, December 14, 2005 3:23 PM
Subject: Re: [amibroker] Time in String Format

Hi,

How would I include this in my buy and sell conditions?

Let's say I use the following:

function TimeNumStr()
{
  return StrFormat("%02g:%02g:%02g", Hour(), Minute(), Second() );
}

Buy = TimeNum() >= MarketOpen AND VolumeCheck AND Cross ( MLR3, MA3 ) ;

Do I just replace Timenum() for TimeNumStr()?

thanks

tony

On 12/14/05, cstrader <cstrader232@xxxxxxxxxxxx> wrote:
Excellent!
----- Original Message -----
Sent: Wednesday, December 14, 2005 4:47 AM
Subject: Re: [amibroker] Time in String Format

Hello,
 
function TimeNumStr()
{
  return StrFormat("%02g:%02g:%02g", Hour(), Minute(), Second() );
}
 
(note that this returns single "currently selected" time)

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: cstrader
Sent: Wednesday, December 14, 2005 2:07 AM
Subject: [amibroker] Time in String Format

Is there a way to turn timenum() into a string.  e.g  09:30:00?
 
Thanks
----- Original Message -----
Sent: Tuesday, December 13, 2005 1:39 PM
Subject: Re: [amibroker] Re: EOD of day Futures quote source

On this page. it mentions Chicago sun times as a source for Datasharks downloader........

Perhaps this could be a source for us also

http://www.datasharks.biz/

Ed Hoopes <reefbreak_sd@xxxxxxxxx> wrote:
I have an account at InteractiveBrokers.com , they have some futures
contracts that are real time and free.  It works as well as my
previous subscription service eSignal.

Ed Hoopes



--- In amibroker@xxxxxxxxxxxxxxx, "axle_d" <axle_d@xxxx> wrote:
>
> Does anyone know of an EOD or delayed free futures download that I can
> use with AB.  Brite Futures appears not to be working any longer,
> Lycos/Quote.com seems to time out constantly.
>
> Any suggestions greatly appreciated in adva nce.
>








Dave MacKay



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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS






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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS