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 #

MACD of Relative Strength
The MACD of relative strength indicator can easily be recreated in MetaStock 6.5 or higher.
In MetaStock, select "Indicator Builder" from the Tools menu. In the Indicator Builder, click "new" and enter the following formula:

MACD of Relative Strength

Q:=Input("Relative Strength Time Periods",3,100,14);
z:=Wilders(If(ROC(C,1,$)>0,ROC(C,1,$),0),LastValue(Q));
y:=Wilders(If(ROC(C,1,$)<0,Abs(ROC(C,1,$)),0),LastValue(Q));
ZY:=Z/Y;
RS:=100-(100/(1+ZY));
RSMACD:=Mov(RS,12,E)-Mov(RS,25,E);
Signal:=Mov(RSMACD,9,E);
RSMACD;
Signal

 

Next, click OK and close out of the Indicator Builder. Open a chart and plot the new formula by dragging it from the Indicator QuickList or by clicking "indicators" from the Insert menu.
Both the Macd line and the signal line will be plotted.

If you prefer to view the RS Macd line in a histogram style, in MetaStock7.0, select the RS Macd line and use the Style toolbar to change it to the histogram style. In MetaStock 6.5, plot the following formula:

 


MACD of Relative Strength Histogram

Q:=Input("Relative Strength Time Periods",3,100,14);
z:=Wilders(If(ROC(C,1,$)>0,ROC(C,1,$),0),LastValue(Q));
y:=Wilders(If(ROC(C,1,$)<0,Abs(ROC(C,1,$)),0),LastValue(Q));
ZY:=Z/Y;
RS:=100-(100/(1+ZY));
RSMACD:=Mov(RS,12,E)-Mov(RS,25,E);
RSMACD;

 

Next, select the RS MACD line and use the Style toolbar to change itto the histogram style.
To plot the signal line, drag "moving average" from the Indicator QuickList and drop it on top of the RS MACD line.

When the moving average is placed on top of the RS MACD line, the RSMACD line will change color and the status bar will say "Calc moving average using MACD of relative strength" to signifythat the RS MACD will be used to calculatethe moving average. Select "9" for the time period and "exponential" for the method, then click OK.

-- Cheryl Elton, Equis International
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!