| 
 PureBytes Links 
Trading Reference Links 
 | 
| 
 hi, 
  
you can just use sum: 
  
TC = SUM(Count,5); 
  
see help files, 
  
rgds, Ed 
  
  ----- Original Message -----  
  
  
  Sent: Saturday, February 19, 2005 10:35 
  AM 
  Subject: [amibroker] Help with Simple 
  Counter 
  
 
  I'm new at this and I would like simple code to count 
  the results of  an array for a variable number of bars back without using 
  the REF  function to add them all up.
  Example:
  TC = Count + 
  Ref(Count, -1) + Ref (Count,-2) + Ref (Count, -3) +  Ref 
  (Count,-4);
  Can anyone help me with the code to simply add up the 
  results of any  array for "N" number of bars back?
  Thank you for 
  your help.
  Mike
 
 
 
 
  Check AmiBroker web 
  page at: http://www.amibroker.com/
  Check 
  group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  
 
  
  
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 
  |   
 |