PureBytes Links
Trading Reference Links
|
Hello again,
You can determine the number of stocks and name of last stock in a watchlist
with a small loop. You can then use that information to synchonize actions
with the end of the Exploration. For example:
WatchListNum = Param("WatchList Number",0,0,63,1);
TickerList = GetCategorySymbols( categoryWatchlist, WatchListNum);
for( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ );
Title = "\nNumber of ticker is watchlist = "+ NumToStr(i,1.0)+"\nLast Ticker
= "+ StrExtract( TickerList, i-1 ) ;
best regards,
herman
-----Original Message-----
From: rekorbima [mailto:amibroker@xxxxxxxxxxxxx]
Sent: Tuesday, October 05, 2004 6:20 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: static variables/arrays...ATC?
Tomasz:
Regarding this discussion on static variables, is there a way to
execute code only upon the end of the last iteration through Explore?
I can imagine doing it by first running code to count the total
amount of stocks, saving it to a composite, and then running the
desired exploration which would use that count to inform a call to
status().
But I would much prefer to only run one set of code. Is there an
automatic way for Explore to know that it's reached the last
iteration?
Thanks.
-Paul
> Herman,
>
> Do not forget that using OSAKA plugin you can SAVE/LOAD
> tables TO/FROM files.
> This effectivelly gives you presistency you need.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
----------------------------------------------------------------------------
--
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
b.. To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ 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/
|