PureBytes Links
Trading Reference Links
|
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");
}
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.
|