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

Re: [amibroker] function LastDateOfThisTicker("YHOO")



PureBytes Links

Trading Reference Links

I tried to do this as well recently and i believe the current ticker
sets the total X axis for bars and dates. Thus it will return only the
last date of the current ticker, or maybe a previous on if the foreign
ticker ends at earlier date.


On Fri, 10 Dec 2004 08:47:09 -0000, zoli_j <novizoli@xxxxxxxxxxx> wrote:
> 
> 
> 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.
> 
> 
> 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
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


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