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

[EquisMetaStock Group] Re: How to get "compare to" like yahoo finance functionality in Metastock



PureBytes Links

Trading Reference Links

I don't really understand what you're asking for (I'm sure others will
get it right) but when I want to compare the curves of two or more
securities, I usually do the following:

s1:=security("sec1",c);
s2:=security("sec2",c);
myDate:=dayOfMonth()=02 and month()=01 and year()=2008;
s1st:=1000/valueWhen(1,myDate,s1)*s1;
s2st:=1000/valuewhen(1,myDate,s2)*s2;
s1st;s2st;

where what is really happening is a comparison with a thousand as
initial capital for each security.
In myDate you simply put the desired starting date.
In case you want a comparison for every security you open vs another
one 'standard', you simple change the s2 line to

s2:=c;

Now, in case you want to plot a curve showing the percentage
difference of the two curves, you may simply write:

100*(s2st/s1st-1)

Regards,

mc


--- In equismetastock@xxxxxxxxxxxxxxx, "nand_rathi" <nand_rathi@xxx>
wrote:
>
> Hello
> 
> Greetings.
> 
> Is it possible to have a "compare to" type of charting in Metastock
> allowing relative (%) between more than 2 securities? If so, how would
> I  do that?
> 
> As an example, I would like to plot the market index, sector index and
> couple of stocks for the sector.
> 
> regards
> 
> N
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

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