| rsingh 51 posts
 msg #32300
 - Ignore rsingh
 | 6/8/2004 9:41:50 AM 
 Can someone tell me how to write this filter
 where MA(20) is falling but above MA(40) and MA(40) is rising
 on a daily basis?
 
 
 
 | 
| MikeB60046 43 posts
 msg #32301
 - Ignore MikeB60046
 | 6/8/2004 11:02:54 AM 
 try this. you can change the number of days rising and falling to suit your needs.
 
 MA(20) has been decreasing for the last 1 days and ma(20) is above ma(40) and ma(40) has been increasing for 1 days
 
 
 
 | 
| cegis 235 posts
 msg #32302
 - Ignore cegis
 | 6/8/2004 3:31:44 PM 
 If you want a general trend instead of a strictly increasing/decreasing value (ie, has increased/decreased over the period, but may have gone in the "other" direction at some point during the period), try using something like "10 day slope of MA(20) is less than 0" and "10 day slope of MA(40) is greater than 0".
 
 I believe the "Slope of" stuff is described in the Announcements forum (and perhaps elsewhere).
 
 HTH,
 
 C
 
 
 
 | 
| rsingh 51 posts
 msg #32304
 - Ignore rsingh
 | 6/9/2004 7:26:26 AM 
 Thanks for the info. Can this be applied to weekly charts as well? If so, how?
 
 
 
 | 
| txtrapper 548 posts
 msg #32305
 - Ignore txtrapper
 | 6/9/2004 7:57:15 AM 
 rsingh
 
 Try this;
 
 
 
 
 
 TxTrapper
 
 
 
 |