Terry appreciate your comments. It is exactly what I was looking for. Many thanks. AP --- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > QQQQ = Foreign("QQQQ","Close"); > > myDivergence = sign(C - Ref(C,-1)) != sign(QQQQ - Ref(QQQQ,-1)); > > > > Buy = Sell = Short = Cover = 0; > > //Change as you wish, but above allows Explore to run with no rules > > > > Filter = 1; > > AddColumn(myDivergence,"Divergence from QQQQ",1.0); > > //The above will be 1 for any ticker diverging between itself and the > QQQQ. > > -- > > Terry > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of voyager_3k > Sent: Saturday, March 11, 2006 15:21 > To: [email protected] > Subject: [amibroker] how do I compare two or more symbol prices together > > > > In an explore, I want to see a divergence against another symbol. > > > > For example if my symbol (say AAPL) was down for the day, but QQQQ was > > up I want to show a divergence in an exploration. > > > > Is this possible to do? > > > > > > > > > > > > > > > > > > > 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 > > > > http://groups.yahoo.com/group/amibroker/ > > > > [EMAIL PROTECTED] > > > > http://docs.yahoo.com/info/terms/ >
------------------------ Yahoo! Groups Sponsor --------------------~--> Try Online Currency Trading with GFT. Free 50K Demo. Trade 24 Hours. Commission-Free. http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM --------------------------------------------------------------------~-> 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
