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

RE: [amibroker] AFL - TimeNum()



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Ara,
I put 
your code into commentary and it worked fine on esignal data..... silly question 
but are you using interday data? Do you see the time on your 
chart?
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Ara Kaloustian 
[mailto:ara1@xxxxxxxxxx]Sent: Monday, December 08, 2003 12:37 
PMTo: Ami-MainSubject: [amibroker] AFL - 
TimeNum()

Has anyone experience problems with 
TimeNum()?
I use it extensively in other programs, without 
problems, but for some reason get zero values in this one!
Thanks, Ara
// Test File Handling<FONT color=#ff00ff 
size=1>
" date<FONT 
color=#ff00ff size=1> " + <FONT color=#0000ff 
size=1>WriteVal(<FONT face="Courier New" 
color=#0000ff size=1>DateNum());<FONT 
color=#ff00ff size=1>
" time " + <FONT color=#0000ff 
size=1>WriteVal(<FONT color=#0000ff 
size=1>TimeNum());   // <== Problem with this 
line. Value is 0 (zero)
fh = fopen(<FONT 
color=#ff00ff size=1>"tradesignals.txt",<FONT 
color=#ff00ff size=1>"a");<FONT color=#800000 
size=1>
if (fh)
{
fputs(Name<FONT 
size=1>() + " " + 
Date() + <FONT 
color=#ff00ff size=1>" " + <FONT color=#0000ff 
size=1>TimeNum() + " 
" 
+ WriteVal(<FONT 
color=#0000ff size=1>LastValue(Close)) + <FONT 
color=#ff00ff size=1>"\n",fh);<FONT color=#0000ff 
size=1>
fclose(fh);
printf("file opened 
OK"); 
}
else
{
printf("Error opening 
file"); 
} Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.