Make sure the stock you are viewing does not have data holes. 

If you are viewing a stock that trades lightly, you will also not see volumes 
for the bars missing from the stock.
  ----- Original Message ----- 
  From: Ed Cottrell 
  To: 'AmiBroker Group' 
  Sent: Monday, March 24, 2008 11:13 AM
  Subject: [amibroker] Problems with Foreign()


  Hello all,

   

  I am using Foreign() to calculate STIX (an advance/decline stat). I have 
already used AddToComposite to count advances and declines over a certain group 
of stocks and store that info in the volume for ~AdvIss and ~DecIss.

   

  Here's my problem: if I plot one of those composites using Foreign("~AdvIss", 
"V"), the output depends on which stock I am viewing in my main chart. For some 
stocks, I get the actual volume number stored in ~AdvIss; for the rest, I get 
zero.

   

  What am I doing wrong here?

   

  Thanks,

  Ed

   

Reply via email to