logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
GameTime  
#1 Posted : Monday, May 30, 2011 5:12:30 AM(UTC)
GameTime

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
You have been a member since:: 1/22/2011(UTC)
Posts: 34

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi Guys,

I need some help find a more efficient way to code the following formula. I'm very new to Metastock, so this is pretty botch and I'm sure it will make a few pros eyes hurt when they see this. For that i apologize.

I basically would like an exploration to scan for stocks that are trading above a 34 Day Exponential Moving Average for no less than 10 days.

Here is what i have came up with LOL.

C>Mov(C,34,E)
AND
C>(Ref(Mov(C,34,E),-10))
AND
C>(Ref(Mov(C,34,E),-9))
AND
C>(Ref(Mov(C,34,E),-8))
AND
C>(Ref(Mov(C,34,E),-7))
AND
C>(Ref(Mov(C,34,E),-6))
AND
C>(Ref(Mov(C,34,E),-5))
AND
C>(Ref(Mov(C,34,E),-4))
AND
C>(Ref(Mov(C,34,E),-3))
AND
C>(Ref(Mov(C,34,E),-2))
AND
C>(Ref(Mov(C,34,E),-1))
jjstein  
#2 Posted : Monday, May 30, 2011 8:48:43 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Or, you could use: Sum(C>mov(C,34,E),10)>=10

GameTime  
#3 Posted : Tuesday, May 31, 2011 7:43:13 AM(UTC)
GameTime

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
You have been a member since:: 1/22/2011(UTC)
Posts: 34

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
thanks again Johnathan!!
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.