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

[amibroker] Re: Help please ... How to code correlation of index to share


  • To: amibroker@xxxxxxxxxxxxxxx
  • Subject: [amibroker] Re: Help please ... How to code correlation of index to share
  • From: "nkis22" <nkishor@xxxxxxxxxx>
  • Date: Sun, 20 Apr 2003 08:55:56 -0700
  • In-reply-to: <002c01c30741$5fbce730$5000a8c0@Andy>

PureBytes Links

Trading Reference Links

ind1=foreign -- use foreign to get DJI
then use
corr(c, ind1 
check syntax specifics in help
this should  do it
nand




--- In amibroker@xxxxxxxxxxxxxxx, "Andrew Smith" <andy_kovacs@xxxx> 
wrote:
> Hi folks. 
> 
> Got stuck with AFL ...
> 
> Lets say I have several groups set up, and each group contains a 
bunch of shares, plus a corresponding index. For example:
> 
> Group    Shares                        Indice
> 1            30 Dow shares            ^DJI
> 2            100 Nasdaq shares      ^NDX
> 3            100 FTSE shares        ^FTSE
> 4            30 german shares        ^GDAXI
> 
> How can I set up an indicator that will plot the correlation of the 
current share to the indice associated with that shares group? For 
example:
> 
> corr=(c,close from index in current share's group);
> plot(corr,"correlation",colorblack,styleline);
> 
> Any sneaky way to code this without using 20 nested iif's? I have 
20 groups....
> 
> 
> Thanks,
> 
> Andy


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/