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

[amibroker] function LastDateOfThisTicker("YHOO")



PureBytes Links

Trading Reference Links


Hi group,

I would like to write a function, which can calculate the lastdate of 
a selected Ticker.
It's neccressary for me to do a statistic about Market.

For example:

"
//ShownTicker = "YAHOO"; default. which is selected
//ItsANotShownTicker = what I want to prove. Any ticker. 
(GOOG,IXIC,DJI,QQQ)

_N( ShownTicker = Name() );

function LastDateOfThisTicker(ItsANotShownTicker) {
 SetForeign(ItsANotShownTicker);
 myLastDate = Date();
 return myLastDate;
}

ldGOOG = "GOOG: " + LastDateOfThisTicker("GOOG");
ldIXIC = "IXIC: " + LastDateOfThisTicker("IXIC");
ldDJI = "DJI: " + LastDateOfThisTicker("DJI");
ldQQQ = "QQQ: " + LastDateOfThisTicker("QQQ");
"
Could anybody help me?

BR, Zoli.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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/