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

Notification

Icon
Error

Options
Go to last post Go to first unread
gojuice  
#1 Posted : Monday, December 15, 2008 12:13:45 PM(UTC)
gojuice

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/8/2008(UTC)
Posts: 3


Does anybody have the code for Ned Davis's Four Percent Model in MS format?

Thanks
minnamor  
#2 Posted : Tuesday, December 16, 2008 11:04:15 PM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

Probaby the same as Zweig's 4% model which shoul be as follows:

a:=If(PREV=1,If(CLOSE<HighestSince(1,PREV<>1,CLOSE)*.96,-1,PREV),If(PREV=-1,If(CLOSE>LowestSince(1,PREV<>-1,CLOSE)*1.04,+1,PREV),If(PREV=0,If(CLOSE>Lowest(CLOSE)*1.04,+1,If(CLOSE<Highest(CLOSE)*.96,-1,PREV)),PREV)));
D:=If(A=1,1,0);
LE:=D=1;
SE:=D=0;

regards.

gojuice  
#3 Posted : Tuesday, December 16, 2008 11:48:05 PM(UTC)
gojuice

Rank: Newbie

Groups: Registered, Registered Users
Joined: 2/8/2008(UTC)
Posts: 3

Excellent! Works as it should. Thank you, minnamor!
dataman  
#4 Posted : Monday, January 5, 2009 8:41:26 AM(UTC)
dataman

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/9/2007(UTC)
Posts: 16

Hi,

Ii copied the formula into making a new indicator but it comes up blank on the graph.

What am I doing wrong??

minnamor  
#5 Posted : Tuesday, January 6, 2009 10:22:47 AM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

Plot variable D in an inner window as a binary indicator, i.e. 1 = long; 0 = out of market (or short). There is no variable to plot on graph.
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.