PureBytes Links
Trading Reference Links
|
Thanks Graham, Now(5) <=> datetime
what is strange is the difference in AA with
Buy=Cross(MFI(3),50);
Filter=Buy;
AddColumn( DateTime(), "FormatDateTime", formatDateTime );
AddTextColumn( NumToStr(DateTime(),formatDateTime), "StrDateTime");
it must be the same but NOT, NumToStr(DateTime(),formatDateTime)
returns the same string as date(.
-> the last bar.
stephane
> I don't think it works with datenum, but does work with Now(5)
> WriteVal(Now(5),formatDateTime)
>
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
>
> -----Original Message-----
> From: Stephane Carrasset [mailto:s.carrasset@x...]
> Sent: Friday, December 17, 2004 6:34 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: datenum and NumToStr( DateNum(),
formatDateTime )
>
>
>
> Hello, and Thanks
> just tell me because I don't find the answer in the help file but
the
> format constant formatdatetime works ONLY with datetime and NOT
with
> datenum or Now functions
>
> stephane
>
>
> > Try this instead of datenum
> > ( DateTime(), formatDateTime )
> >
> > Cheers,
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> >
> > -----Original Message-----
> > From: Stephane Carrasset [mailto:s.carrasset@x...]
> > Sent: Friday, December 17, 2004 4:19 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] datenum and NumToStr( DateNum(),
> formatDateTime )
> >
> >
> >
> > Hello,
> > I don't understand Why in AA (I don't think it is a bug)
> >
> > Buy=Cross(MFI(3),50);
> > Filter=Buy;
> > AddColumn( DateNum(), "DateNum", 1.2 );
> > AddTextColumn(NumToStr( DateNum(),
formatDateTime ),"StrDatetime");
> >
> >
> > AddColumn( DateNum(), "DateNum", 1.2 ); returns CORRECT date in
> > numbers
> > BUT
> > AddTextColumn(NumToStr( DateNum(), formatDateTime )...
> > returns always 28/07/1973 ???????
> >
> > Stephane
> > evan if I have checked Regional and Language options 5 I use an
Eng
> > XP pro Version)
> >
> > Stephane
> >
> >
> >
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|