PureBytes Links
Trading Reference Links
|
=============
MACD - Basic
=============
---8<-------------------------------
{ MACD & Histogram
http://www.metastocktools.com }
{ User inputs }
shortPds:=Input("shorter MACD periods",1,260,12);
longPds:=Input("longer MACD periods",2,2600,26);
triggerPds:=Input("MACD signal periods",1,260,9);
plot:=Input("plot: [1]MACD, [2]Histogram, [3]Signals",1,3,1);
{ MACD }
Mac:=Mov(C,shortPds,E)-Mov(C,longPds,E);
{ Signal }
Signal:=Mov(Mac,triggerPds,E);
{ Histogram }
Hist:=Mac-Signal;
{ Signals }
buy:=Cross(Mac,Signal);
sell:=Cross(Signal,Mac);
{ Plot in own window }
If(plot=1,Signal,0);
If(plot=1,Mac,If(plot=2,Hist,buy-sell))
---8<-------------------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "Sugiharto
Setyabudi" <sugiharto.wu@xxx> wrote:
>
> Hcour,
> macd indicator consist of 2 lines, the MACD line and the trigger line.
> The MACD line made by subtracting shorter period EMA with longer
> period EMA, by default EMA12 minus EMA26.
> The trigger line is an EMA to the MACD line, by default EMA9.
>
> In metastock standard macd indicator, ynu cannot change the EMA
> periods of MACD line. Only the trigger line period can be changed.
> If you really need to change the periods, you can try to build your
> own macd indicator.
>
> Hth,
> sugiharto
>
>
>
> On 5/3/07, hcour <hcour@xxx> wrote:
>
> Could someone tell me where to find the MS formula for what is
> normally referred to as the MACD indicator? Doesn't it have 3
> parameters? The one supplied w/MS only has one parameter.
>
> Thanks much,
> Harold
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/
|