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

Notification

Icon
Error

Options
Go to last post Go to first unread
minnamor  
#1 Posted : Saturday, January 20, 2007 1:06:09 AM(UTC)
minnamor

Rank: Advanced Member

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

In TASC September 1988 the above article included an indicator and a system. The Metastock code for the indicator was given in Traders' Tips but the system was provided in Tradestation / Supercharts code. Both can be found at this link www.traders.com/Documentation/Feedbk_docs/Archive/0998/TradersTips9809/Tips9809.html

I have tried to translate the system code in MS as follows:

F:=10;
LookBack:=10;

Resistance:=ValueWhen(1,Cross(Mov(C,LookBack,S),C),HHV(H,LookBack)); Support:=ValueWhen(1,Cross(C,Mov(C,LookBack,S)),LLV(L,LookBack));
Rr:=Resistance / (1+(F/100));
Ss:=Support * (1+(F/100));
sma:=Mov(C,LookBack,S);

LE:= (Cross(C,sma) AND C<Rr) OR Cross(C,Rr) ;
SE:= (Cross(sma,C) AND C>Ss) OR Cross(Ss,C) ;
LX:= 0;
SX:= 0;

Would appreciate if somebody could check the above. Thanks.

Maurizio

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.