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

[EquisMetaStock Group] question about indicator



PureBytes Links

Trading Reference Links

I would like to know create an indicator that would plot me how many of the 
securities that belong to the S&P500 are above its 50days MA. Is this 
possible?

I know it would be possible to do that like this:
close_a:=Security("a",c);
mm_a:=mov(close_a,50,s);
v_a:=if(close_a>mm_a,1,if(close_a<mm_a,-1,0));

But this means that I would have to create 1500 lines of code (plus a last 
one that adds all v_as).  I don't even know if metastock would allow me to 
write 1500 lines so I was looking for an easy way out...

Thanks for your help
Nuno






------------------------ 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/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

<*> 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/