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

Notification

Icon
Error

Options
Go to last post Go to first unread
KTP2  
#1 Posted : Tuesday, May 11, 2010 2:24:59 PM(UTC)
KTP2

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/2/2007(UTC)
Posts: 367

Was thanked: 1 time(s) in 1 post(s)

David Sepiashvili’s article, “The Self-Adjusting RSI,” describes two methods of adjusting the width of the overbought and oversold bands for the RSI. Both of these methods have been incorporated into a single MetaStock indicator. This formula will prompt for the length of the RSI, the constants used to calculate the bands, and the method to calculate the bands.

To enter this indicator into MetaStock:

    <li>In the Tools menu, select Indicator Builder. <li>Click New to open the Indicator Editor for a new indicator. <li>Type the name of the formula. <li>Click in the larger window and type in the following formula.

    Name: Self-Adjusting RSI
    Formula:
    x:=Input("number of periods for RSI",1,2000,14);
    k1:=Input("standard deviation constant",0.1,5,1.8);
    c1:=Input("SMA constant",0.1,5,2);
    m1:=Input("method <1=SD/2=SMA>",1,2,1);
    top:=If(m1=1,
    50+(k1*Stdev(RSI(x),x)),
    50+(c1*Mov(Abs(RSI(x)-Mov(RSI(x),x,S)),x,S)));
    bottom:=If(m1=1,
    50-(k1*Stdev(RSI(x),x)),
    50-(c1*Mov(Abs(RSI(x)-Mov(RSI(x),x,S)),x,S)));
    RSI(x);
    top;
    bottom
    <li>Click Ok to close the Indicator Editor.

William Golson
Equis International

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.