Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 5/29/2005(UTC) Posts: 3
|
In Telechart2005, you could set MCAD in the chart as follows:
MCAD(Short, Long, Period, Simple/Exp)
In Metastock formula, you can only set the function:
MCAD();
How can i use MCAD() in Metastock and be able to control the parameters:Short, Long, Period, Simple/Exp
Al
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Are we talking about the MACD Indicator?
If so then here we go;
the MACD is an acronym for Moving average convergence divergence indicator.
It takes 2 MA's and shows the difference between the 2 Ma's
Per1:=Input("fast MA",5,50,12);
Per2:=Input("slow MA",10,100,26);
Per3:=Input("Signal MA",5,50,9);
MA1:=Mov(C,Per1,E);
MA2:=Mov(C,Per2,E);
Ind:=MA1-MA2;
Signal:=Mov(Ind,Per3,E);
Histogram:=Ind-Signal;
Ind;
Signal;
Histogram;{Optional}
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.