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

Re: [amibroker] AFL - TimeNum()



PureBytes Links

Trading Reference Links




Jayson,
 
I was testing on EOD... never occured to me 
 TimeNum() would not functionin EOD.
 
Thanks
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jayson 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, December 08, 2003 9:46 
  AM
  Subject: RE: [amibroker] AFL - 
  TimeNum()
  
  <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 
  size=1>("tradesignals.txt"<FONT 
  size=1>,"a"<FONT 
  size=1>);
  if (fh)
  {
  fputs(<FONT color=#0000ff 
  size=1>Name() + " 
  " + Date<FONT 
  size=1>() + " " + 
  TimeNum() + <FONT 
  color=#ff00ff size=1>" " 
  + WriteVal<FONT 
  size=1>(LastValue<FONT 
  size=1>(Close)) + "\n"<FONT 
  size=1>,fh);
  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. 
  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.