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

Notification

Icon
Error

Options
Go to last post Go to first unread
biandi  
#1 Posted : Tuesday, November 9, 2010 1:11:59 AM(UTC)
biandi

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/23/2007(UTC)
Posts: 25

if i have this signal

if (cross (c, mov (c, 50, s), +1, -1)

if I have the signal to +1 how do I filter the signal so that the next is only the -1 and does not reduce repeat the same signal?

henry1224  
#2 Posted : Tuesday, November 9, 2010 6:32:45 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
You only have 1 condition that Metastock is looking for

If(Cross(C,Mov(C,50,S),1,
If(Cross(Mov(C,50,S),C),-1,0));

this will plot +1 for buy signals and -1 for sell signals and 0 for all of the rest
biandi  
#3 Posted : Tuesday, November 9, 2010 8:01:40 AM(UTC)
biandi

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/23/2007(UTC)
Posts: 25

ok this is right, but if such occurs 4-5 times the first option I plots the semppre +1 I wish I Plotti only once after I Plotti +1 and the -1 once in a way that is always +1 and then -1 +1 -1 then
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.