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?
|
|
|
|
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)
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
|
|
|
|
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.