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

RE: [amibroker] how do I compare two or more symbol prices together



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of voyager_3k
Sent: Saturday, March 11, 2006 15:21
To: amibroker@xxxxxxxxxxxxxxx
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?

 

 

 

 

 

 

 

------------------------ 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:

    amibroker-unsubscribe@xxxxxxxxxxxxxxx

 

<*> Your use of Yahoo! Groups is subject to:

    http://docs.yahoo.com/info/terms/

 

 

 



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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS