[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: need some help on RSI code



PureBytes Links

Trading Reference Links

AL,

Here you go!

Preston

Rapid RSI

TASC OCT 2006
METASTOCK: Relative Spread Strength 
Ian Copsey's article in this issue, "Relative Spread Strength," 
introduces two variations on the relative strength index (RSI). The 
formula for these indicators and the instructions for adding them to 
MetaStock follow. 
To enter these indicators into MetaStock: 
1. In the Tools menu, select "Indicator Builder." 
2. Click New to open the Indicator Editor for a new indicator. 
3. Type the name of the formula. 
4. Click in the larger window and type in the formula. 
5. Click OK to close the Indicator Editor. 
  
Name: Rapid RSI
Formula:
tp:= 14; { time periods in RSI calculation}
plot:= C;
change:= ROC(plot,1,$);
Z:=Sum(If(change>0,change,0),tp);
Y:=Sum(If(change<0,Abs(change),0),tp);
Ytemp:=If(y=0,0.00001,y);
RS:=Z/Ytemp;
100-(100/(1+RS))


Name: Relative Spread Strength
Formula:
matp1:=10; {short MA time periods}
matp2:=40; {long MA time periods}
RStp:= 5; { time periods in RSI}
RSsmoothtp:=5; { time periods in smoothing of RSI}
plot:= Mov(C,matp1,E)-Mov(C,matp2,E);
change:= ROC(plot,1,$);
Z:=Sum(If(change>0,change,0),RStp);
Y:=Sum(If(change<0,Abs(change),0),RStp);
Ytemp:=If(y=0,0.00001,y);
RS:=Z/Ytemp;
Mov(100-(100/(1+RS)),RSsmoothtp,S)
  
  
--William Golson 
MetaStock Support Representative 
Equis International (A Reuters Company) 
801 265-9998, www.metastock.com


--- In equismetastock@xxxxxxxxxxxxxxx, Al Dina <zebra7860@xxx> wrote:
>
> Hello,
>    
>   I am attaching an interesting article on a twist to the RSI.  It 
is called the "Rapid RSI" and I know that there are some very good 
programmers here.
>    
>   Basically, the document illustrates how the RSI can be tweaked to 
be more sensitive.
>    
>   Can anybody convert this code to Metastock language, please?
>    
>   I would truly appreciate it.
>    
>   Al
> 
>        
> ---------------------------------
> Looking for the perfect gift? Give the gift of Flickr!
> 
> [Non-text portions of this message have been removed]
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/