- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
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: |