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

Re: [amibroker] Ann: External WatchList for looping -- FreeWare and OpenSource !



PureBytes Links

Trading Reference Links


Friends,
 
A little 'guru' script to test the looping ===>
// Simple script to check the looping done thru the use of External WatchLists
#pragma nocache
"Script Starting";
fvMessageDF = fvSetNameSeperatorDF("c:\\holders.txt","|");
file = fvGetNameDF();
seperator = fvGetSeperatorDF();
th1 = xxTableCreate();
xxTableColumnAdd("Ticker" , 3 ,th1, 30 );
xxTableColumnAdd("Name" , 3 ,th1, 100 );
for ( i = 1, nextTicker = fvTickerNextDF(); // Initialization
nextTicker != ""; // Condition
i++, nextTicker = fvTickerNextDF()) // Increment
{
currName = fvNameCurrentDF(); // This fetches the current name
currTicker = fvTickerCurrentDF(); // This fetches the current ticker
xxTableDataAddStr(currTicker, (i-1), 0, th1);
xxTableDataAddStr(currName, (i-1), 1, th1);
}
xxTableExport("c:\\copied_holders.txt", "!", th1, fHdrline=1);
fvMessageDF = fvUnSetDF();
"Script Ending"; 
//#include "c:\\ami\\amisystems\\price_rsi_disha.afl";
//#include "c:\\ami\\amisystems\\overall_mcclellan_guru.afl";
//#include "c:\\ami\\amisystems\\stix_analysis_guru.afl";
////#include "c:\\ami\\amisystems\\mcclellan_analysis_guru.afl";
//#include "c:\\ami\\amisystems\\gangal_signals_guru1.afl";
 
The holders.txt file ===>
BHH|B2B Internet HoldersBBH|Biotech HoldersBDH|Broadband HoldersIAH|Internet Architecture HoldersHHH|Internet HoldersIIH|Internet Infrastructure HoldersMKH|Market 2000+ HoldersOIH|Oil Services HoldersPPH|Pharmaceutical HoldersRKH|Regional Bank HoldersRTH|Retail HoldersSMH|Semiconductor HoldersSWH|Software HoldersTTH|Telecom HoldersUTH|Utilities HoldersWMH|Wireless HoldersEKH|Europe 2001 Holders
Regards,
- Salil V Gangalsalil_gangal <salil_gangal@xxxxxxxxx> wrote:
Friends,I've coded the functionality that will allow the users to maintain the WatchLists as disk-files.  The looping can be achieved using the external WatchLists when used with 'for' loop available in AFL.The code is posted at the URL below ===>    http://groups.yahoo.com/group/amibroker-dll/message/845Regards,- Salil V GangalSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.