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

[amibroker] Re: pls help: using AddToComposite in for-statement



PureBytes Links

Trading Reference Links




<FONT face=Arial 
color=#0000ff size=2>Try the numtostr function.
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>Something along the lines of:   <FONT 
face="Courier New" color=#000000 size=3>"Ticker" + 
NumToStr(n)

  
  
  From: treliff [mailto:treliff@xxxxxxxxx] 
  Sent: Monday, April 12, 2004 11:10 PMTo: 
  amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] pls help: using 
  AddToComposite in for-statement
  Are there Expert Users that can advise me on the 
  (im)possibility of using AddToComposite in a for-statement, such that with 
  each loop a new artificial ticker symbol is created, essentially something 
  like:for (n=1;n<=20;n++){ 
  AddToComposite(f(n),"Ticker+"n"","O"); }with f some function, such 
  that Ticker1 holds the result of f(1) in the Open field, Ticker2 the 
  result of f(2) etc.I've been shooting blindly a while now trying 
  things like "Ticker"+"n""Ticker"+netc.but I keep 
  getting an error message, I can't get AddToComposite's ticker field to 
  recognize "n" as the loop variable.  Is this 
  (im)possible?Appreciate your advice.  
  -treliffSend 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 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.