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

RE: [amibroker] Trouble Yahoo Updates



PureBytes Links

Trading Reference Links

Yuki,

Once you have ~Comp created, select ~Comp as current stock (so you 
don't really need to use Foreign), and then run something like -

totalCount = (O > 0 AND C > 0) * (O + C);
AddToComposite(totalCount, "~Combined", "X");

Jitu

--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> Hi Jitu,
> 
> Thursday, January 22, 2004, 12:14:17 AM, you wrote:
> 
> j> Yuki, 
> 
> j> Calculate Buy and Short counts individually first, like you're 
doing
> j> now. You can add it to the same composite's O and C fields. Then 
run
> j> another scan on that newly created composite (by selecting as 
Current
> j> Stock), check its O and C values, and if both are > 0, then add 
the
> j> total count (or true) to yet another composite. That composite 
should
> j> then have what you need...
> 
> This seems like a great way to go about it.  Unfortunately, I can't
> make the last statement work:
> 
> IIf(Foreign("~Comp", "O") > O AND Foreign("~Comp", "C") > 0,
> AddToComposite(Foreign("~Comp", "O") AND Foreign("~Comp", "C")),
> "~both", "V");
> 
> Having already created ~Comp and making sure O and C are populated
> there.
> 
> Yuki


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:
 http://docs.yahoo.com/info/terms/