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

Notification

Icon
Error

Options
Go to last post Go to first unread
Hwyman  
#1 Posted : Monday, February 13, 2006 1:30:38 PM(UTC)
Hwyman

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/15/2005(UTC)
Posts: 6

If I have created an indicator called My_MA, how would I calculate the Relative Strength Index based on this indicator as opposed to the default RSI delivered with Metastock?
StorkBite  
#2 Posted : Monday, February 13, 2006 4:14:22 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Check out the 'P' variable. Use it as you would the normal price data, except drag this indicator on top of My_MA. More info can be found inthe User's Manual. Ex. RSI(P, 21)
mstt  
#3 Posted : Monday, February 13, 2006 6:56:39 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hwyman {RSI Indicator} N:=Input("Periods",2,99,10); A:=C; {target data array} B:=Ref(A,-1); U:=Wilders(If(A>B,A-B,0),N); D:=Wilders(If(A<B,B-A,0),N); 100-(100/(1+(U/D))); Roy MetaStock Tips & Tools
smg  
#4 Posted : Tuesday, February 14, 2006 3:28:26 AM(UTC)
smg

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 8/13/2005(UTC)
Posts: 90

Hwyman , For 20 Period RSI of your indicator, please try: RSI(Fml("My_MA"),20) Regards SMG PS: This syntax may not work in some earlier versions of Metastock.
Hwyman  
#5 Posted : Tuesday, February 14, 2006 3:38:45 PM(UTC)
Hwyman

Rank: Newbie

Groups: Registered, Registered Users
Joined: 11/15/2005(UTC)
Posts: 6

Thank you all. I should of looked at the formula first instead of the indicator so it was mostly confusion on my part. It is also helpful to see the complete RSI formula above which probably lets users apply their own smoothing
StorkBite  
#6 Posted : Tuesday, February 14, 2006 6:06:28 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Nice teamwork! \\:D/
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.