You need 2 additional lined of code. Look at the function list for the
format.

 

Daysloaded

Daysrequired 

 

Lionel

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of orrincsjr
Sent: Wednesday, March 22, 2006 12:21 AM
To: [email protected]
Subject: [quotes-plus] Problem with Scan using EMAs

 

I am attempting to detect a crossover when the 20 day EMA goes above 
the 50 day EMA.  Sometimes the results include a stock that fulfilled 
that requirement days and days ago.  Obviously, that is not a valid 
result.  The code I wrote is:

// The 20 day moving average has crossed over the 50 day moving 
average 

output="20_Over_50macross.lst";

if EMovAvg(0,20,cl) > EMovAvg(0,50,cl) and  // The 20 day MA is above 
the 50 day ma today

EMovAvg(-1,20,cl) < EMovAvg(-1,50,cl) and  // The 20 Day MA was below 
the 50 day ma yesterday

Close(0) >= 25 and  // At least a 25 dollar stock

AvgVol(0,-29) >= 250000  then  // The average volume is at least 
250,000 shares

      println symbol,",",description;

endif;






SPONSORED LINKS 


Investment
<http://groups.yahoo.com/gads?t=ms&k=Investment+management+software&w1=Inves
tment+management+software&w2=Real+estate+investment+software&w3=Investment+p
roperty+software&w4=Real+estate+investment+analysis+software&w5=Investment+s
oftware&w6=Investment+analysis+software&c=6&s=212&.sig=bgH6MLfPiHNaa_UHXsl1c
Q>  management software 

Real
<http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+software&w1=Inve
stment+management+software&w2=Real+estate+investment+software&w3=Investment+
property+software&w4=Real+estate+investment+analysis+software&w5=Investment+
software&w6=Investment+analysis+software&c=6&s=212&.sig=CleQ2OLrjJnMaemxQN8d
QA>  estate investment software 

Investment
<http://groups.yahoo.com/gads?t=ms&k=Investment+property+software&w1=Investm
ent+management+software&w2=Real+estate+investment+software&w3=Investment+pro
perty+software&w4=Real+estate+investment+analysis+software&w5=Investment+sof
tware&w6=Investment+analysis+software&c=6&s=212&.sig=tiornvQpCMb4OvES49zpyg>
property software 


Real
<http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+analysis+softwar
e&w1=Investment+management+software&w2=Real+estate+investment+software&w3=In
vestment+property+software&w4=Real+estate+investment+analysis+software&w5=In
vestment+software&w6=Investment+analysis+software&c=6&s=212&.sig=9sd5rfDzn1s
OXmDsDB0MUg>  estate investment analysis software 

Investment
<http://groups.yahoo.com/gads?t=ms&k=Investment+software&w1=Investment+manag
ement+software&w2=Real+estate+investment+software&w3=Investment+property+sof
tware&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=
Investment+analysis+software&c=6&s=212&.sig=gMdovVx-IHhVJs_3d6QMwA>
software 

Investment
<http://groups.yahoo.com/gads?t=ms&k=Investment+analysis+software&w1=Investm
ent+management+software&w2=Real+estate+investment+software&w3=Investment+pro
perty+software&w4=Real+estate+investment+analysis+software&w5=Investment+sof
tware&w6=Investment+analysis+software&c=6&s=212&.sig=cH5fFeKhH9ipj7uhiHW11A>
analysis software 

 

  _____  

YAHOO! GROUPS LINKS 

 

*        Visit your group "quotes-plus
<http://groups.yahoo.com/group/quotes-plus> " on the web.
  
*        To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  
*        Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 

 

  _____  



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

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



Reply via email to