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

Notification

Icon
Error

Options
Go to last post Go to first unread
vinclanz  
#1 Posted : Thursday, September 15, 2005 9:54:17 PM(UTC)
vinclanz

Rank: Newbie

Groups: Registered, Registered Users
Joined: 9/15/2005(UTC)
Posts: 7

MetaStock allows only O,H, L or C when adding RSI as an indicator. These are all arbitrary and vary results dramatically. When RSI is included in my Filter, I assume it is based on Close. I would like to calculate RSI using a MidPoint. Is there anyone who could offer a possible solution of code to use in the formula?
Patrick  
#2 Posted : Thursday, September 15, 2005 9:56:36 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
New versions of Metastock allow you to choose a data array ... Another solution is to use the forum dll rsi function .... Another Solution is to create a custom formula for RSI such as the one in the formula collection ... http://forum.equis.com/v...cabbe0f60d96a28ac3a89350 Patrick :mrgreen:
vinclanz  
#3 Posted : Thursday, September 15, 2005 10:16:19 PM(UTC)
vinclanz

Rank: Newbie

Groups: Registered, Registered Users
Joined: 9/15/2005(UTC)
Posts: 7

Patrick, Many thanks for your quick response. Not really being a programmer, I will tackle the solution you suggested...but, will probably have to make a second request later. Also, I might mention that my current version is 9.0. Vince
StorkBite  
#4 Posted : Thursday, September 15, 2005 10:20:15 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)
Hey vinclanz- Welcome to the forum! Assuming that 'mid point' is similar to typical(), you might try this example: { Indicator } periods:=Input("Typical Price Periods",1,100,20); periods:=(2*periods)-1; method:=Typical(); 100 - 100/(1+ If(Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E)=0,1000000, Mov(If(method-Ref(method,-1)>0, method-Ref(method,-1), 0),periods,E) /Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E) )); note: you can replace 'typical()' with any valid data array { Explorer } Column A [RSI] RSI(Typical(),5); Column B [NEW RSI] periods:=5; periods:=(2*periods)-1; method:=Typical(); 100 - 100/(1+ If(Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E)=0,1000000, Mov(If(method-Ref(method,-1)>0, method-Ref(method,-1), 0),periods,E) /Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E) )); note: change the 'periods:=5;' line to reflect whatever RSI periods you are looking for
Patrick  
#5 Posted : Thursday, September 15, 2005 10:23:05 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
If you have 9.0 just create a new indicator with this syntax : Rsi(Data Array, Periods) For Example: RSI(Typical(),14) Patrick :mrgreen:
StorkBite  
#6 Posted : Thursday, September 15, 2005 10:31:41 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)
That's the trouble with you P... always thinking small! #-o
Patrick  
#7 Posted : Thursday, September 15, 2005 10:32:44 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
:lol: I have been told that quite many times :D Thanks G
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.