| 
 PureBytes Links 
Trading Reference Links 
 | 
Advv =  IIf(C>Ref(C,-1),V,0);
Decv =  IIf(C<Ref(C,-1),V,0);
AddToComposite( Advv, 
"~AdvV", 
"x",1); 
AddToComposite ( DecV, 
"~DecV", 
"x",1);
Buy= 0; 
  ----- Original Message -----  
  
  
  Sent: Tuesday, April 19, 2005 9:17 
  PM 
  Subject: Re: [amibroker] Add to Composite 
  Question 
  
  I was trying to use a simple value to sum up the positive 
  and negative volume of a watchlist using the following 
  code.
  UpVol=Close>Ref(Close,-1)*Volume; DnVol=Close<Ref(Close,-1)*Volume;
  I 
  thought if the value was true the 1*Volume would return the volume and I could 
  sum that in ATC but I am obviously not doing this right. 
  Can someone 
  point me in the right direction.
  Thanks,
  Duke Jones, 
  CMT
 
 
  Please note that this group is for discussion 
  between users only.
  To get support from AmiBroker please send an e-mail 
  directly to  SUPPORT {at} amibroker.com
  For other support material 
  please check also: http://www.amibroker.com/support.html
 
 
  
  
    
  No virus found in this incoming message. Checked by AVG 
  Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 
  4/16/2005
  
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
 
 
Yahoo! Groups Links 
 |  
 No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 4/16/2005
 
 |