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
|
|
|
|
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.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 2/8/2008(UTC) Posts: 3
|
Excellent! Works as it should. Thank you, minnamor!
|
|
|
|
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??
|
|
|
|
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.