Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 2/4/2005(UTC) Posts: 8
|
Hello to all,
With a current exploration I am searching for those equities that trade above a particular moving average. With this exploration I am wanting to throw in an 'AND' function. The 'and' being that the moving average should be higher than it was 5 days ago. Any help with this would be greatly appreciated.
Also a similar situation, but different exploration. This time the low should be lower than the previous day's low. Thankyou.
Talarico
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Talarico
{ColA}
M:=Mov(C,10,S);
C>M AND M>Ref(M,-5);
{Filter}
colA;
or you could use just..
{Filter}
M:=Mov(C,10,S);
C>M AND M>Ref(M,-5);
If using exponential moving averages make sure you force the explorer to use at least 5 times as many periods as the longest EMA "periods" parameter.
Change the > sign to a < sign where appropriate for you second question. You failed to clearly specify all conditions and I'm not going to try and guess what's in your mind.
Roy
MetaStock Tips & Tools
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 2/4/2005(UTC) Posts: 8
|
Thank you Roy. Great help.
Cheers
|
|
|
|
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.