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

Notification

Icon
Error

Options
Go to last post Go to first unread
niubee  
#1 Posted : Friday, March 29, 2013 8:30:35 PM(UTC)
niubee

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/30/2013(UTC)
Posts: 5

How do i perform the calculation of number of positive negative days formula for scanning ?

Anyone can help ?

I know Metastock doesn't have loopback. Using metastock 8.01.
niubee  
#2 Posted : Friday, March 29, 2013 8:31:27 PM(UTC)
niubee

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/30/2013(UTC)
Posts: 5

Over a period of 260 days.
DimC  
#3 Posted : Saturday, March 30, 2013 2:13:18 AM(UTC)
DimC

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/20/2010(UTC)
Posts: 24

Please specify what is for you Positive and what Negative Day .... Ex. could be : case 1. Open lower than Close of same day for Positive .... and case 2. Close of today Higher than Close of yesterday ....
Regards
Dimitri
niubee  
#4 Posted : Saturday, March 30, 2013 7:54:02 AM(UTC)
niubee

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/30/2013(UTC)
Posts: 5

Positive Day = Today Close is Higher than Yesterday Close.

Negative Day = Today Close is Lower than Yesterday Close.

Case 2

Appreciate the help. Thanks...
niubee  
#5 Posted : Saturday, March 30, 2013 7:55:09 AM(UTC)
niubee

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/30/2013(UTC)
Posts: 5

I need it as a Explorer scanning of stocks.
DimC  
#6 Posted : Saturday, March 30, 2013 8:29:22 AM(UTC)
DimC

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/20/2010(UTC)
Posts: 24

niubee wrote:
Positive Day = Today Close is Higher than Yesterday Close.

Negative Day = Today Close is Lower than Yesterday Close.

Case 2

Appreciate the help. Thanks...

So according your assumption, we have:
posday:=C>Ref(C,-1); negday:=C<Ref(C,-1);

You can also express it, in this way also:
posday:=C-Ref(C,-1)>0; negday:=C-Ref(C,-1)<0;

Hope it helps, Regards
Dimitri
niubee  
#7 Posted : Saturday, March 30, 2013 8:41:27 AM(UTC)
niubee

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/30/2013(UTC)
Posts: 5

how do i make it scan for the last 260 days period ?
DimC  
#8 Posted : Saturday, March 30, 2013 9:59:01 AM(UTC)
DimC

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/20/2010(UTC)
Posts: 24

So according your assumption, we have:
posday:=C>Ref(C,-1); negday:=C<Ref(C,-1);

You can also express it, in this way also:
posday:=C-Ref(C,-1)>0; negday:=C-Ref(C,-1)<0;

Now if you want to count how many times are true for the last 260 periods ....
Sum(posday,260); Sum(negday,260);

Rgds - Dimitri
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.