MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Relative Spread Strength by Ian Copsey

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.


Relative Spread Strength

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)


Name:
--William Golson
MetaStock Support Representative
Equis International (A Reuters Company)
801 265-9998, www.metastock.com
Source / From: TOP
http://www.traders.com  

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!