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

RE: [amibroker] Re: Multiple numeric variables



PureBytes Links

Trading Reference Links




There 
are many list-related examples, most of them use StrExtract( List, n ) and lists 
of ticker symbols retrieved from watchlists. There are no arrays in AmiBroker 
that can contain strings however you can use string-lists and StrExtract 
functions to simulate string-arrays. Have a look at afl functions that 
start with Str....
<FONT face=Arial color=#0000ff 
size=2> 
Below 
is an example to read the Tickers from Watch list #0 and reformat the list. Your 
Interpretation Window (View->Interpretation) is a great debugging output 
window to see the result of this code. 
<FONT face=Arial color=#0000ff 
size=2> 
_N(list = 
GetCategorySymbols( categoryWatchlist, 0));
 
<FONT face=Arial 
size=2>NewList="";for( n=0; (Ticker=StrExtract( List, n))!= ""; 
n++)     {     if( n%10 == 
0 ) NewList= NewList+ "\n";     NewList= NewList+ Ticker 
+ "; ";     }
 
"Old List: 
"+List;"";"New List: "+NewList;
best 
regards,
<FONT face=Arial color=#0000ff 
size=2>herman

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Michael.S.G. 
  [mailto:OzFalcon@xxxxxxxxxx]Sent: Saturday, May 08, 2004 12:55 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  String listsFellow ABer's  Im having trouble 
  locating code I remember seeing somewhere that worked with string lists, 
  Can someone point me in the right 
  direction.      
  Thanks,      
  Michael.Send BUG REPORTS to 
  bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.