[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

Ok, try this MS code:

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

{ http://www.metastocktools.com }

{ Variables }
alertPeriods:=5;
percentage:=5;
SMAperiods:=200;


{ SMA & bands }
SMA:=Mov(C,SMAperiods,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}
Alert(incursion,alertPeriods)

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


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




--- In equismetastock@xxxxxxxxxxxxxxx, "ceiga" <nooralipardhan@xxx> 
wrote:
>
> Thnxs for such a quick response
> this code gives all the security that ever came 5% close to thier 
> 200dma. i would like it to refine for today or lets say within last 
> week so my new query goes like all the stocks that came 5% close to
> thier 200dma within last 5 trading days. can u help me out once
> again Jose
> 
> regards
> 
>
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" 
> <josesilva22@> wrote:
>
>> 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@> 
> 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/