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

[amibroker] Re: datenum and NumToStr( DateNum(), formatDateTime )



PureBytes Links

Trading Reference Links


That's right 
in an exploration

Filter=Cross(MFI(3),50);
AddColumn(DateNum(), "DateNum",1.0,colorRed);
// returns date number of Buy day
AddTextColumn(NumToStr(DateNum
(),1.0,False), "StrDateNum",1.0,colorBlue); 
// returns date number in string of LAST DAY

The string of datenum returns always the last day of barindex()
despite the fact that datenum returns the day of Filter.

C'est domage !!

Stephane



> What a coincidence.  I spent over an hour this morning trying to 
> display the day of the week (Mon, Tue...) in a text column.  Best I 
> could do was get it to display the day of the last bar.  Did some 
> searching and found that apparently Amibroker can only display the 
> last bar info in a text column because it does not support arrays 
of 
> strings.  See Tomasz's post: 
> http://finance.groups.yahoo.com/group/amibroker/message/12387
> 
> The post was from March, 2002.  My search failed to find any update 
> to this.  Feel free to correct me because I'd like to be able to do 
> this myself.
> 
> Wayne





------------------------ 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/