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

[EquisMetaStock Group] Re: stocks some %age close to 200dma



PureBytes Links

Trading Reference Links

> is 5% close to its 200 dma?

It all depends on your definition of "close" - how close?


Try this MS code:

---8<-------------------------
{ http://www.metastocktools.com }

{ Variables }
percentage:=5;
periods:=200;

{ SMA & bands }
SMA:=Mov(C,periods,S);
upper:=SMA*(1+percentage/100);
lower:=SMA*(1-percentage/100);

{ Price/SMAband incursions }
incursion:=C>lower AND C<upper;

{ Plot in own window or in exploration filter }
{SMA;upper;lower}
incursion

---8<-------------------------


jose -)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, "ceiga" <nooralipardhan@xxx> 
wrote:
>
> Dear all,
> anyone would whts the code for finding if any stock in the database
> is 5% close to its 200 dma?
> any help would be greatful
> regards






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