Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
In MetaStock Help it clearly states that Metastock does not allow the time periods in the MACD to be changed, therefore it uses the default - that is the difference between 12ema (fast), 26ema (slow) and 9ema(signal line of the difference). Also it only allows the lines or histogram to be plotted instead of both.
Can somebody please assist in coding the MACD indicator or direct me to the forum pages where the above has already been coded. Basically I would want to change the values and experiment with other values as used by traders like Alexander Elder and Tom Bierovic.
Any help will be appreciated.
Perty
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/18/2007(UTC) Posts: 99 Location: sydney australia
|
elsewhere in the MS manual they give you the actual formula for a standard Macd:
mov(close,12,E)-mov(close,26,E) and likewise the 'trigger':- mov(macd(),9,E)
why wouldn't you be able to change the time periods? best way to experiment is to use these basic formulas on a chart, then right-click on the line you want to change, click properties & do whatever you like with the parameters. you can always change it back again. for instance, I've changed the trigger to ...5,S.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
Thank you Amory for your reply.
I am very new to formula programming or any programming (though I am familar with Technical Analysis) and hence it would be extremely helpful if you could write the formula for MACD as explained so that I can copy and paste it in the Formula builder.
Thank you.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/18/2007(UTC) Posts: 99 Location: sydney australia
|
hello Perty, I'm not much good at writing code (fiction yes, but that wouldn't be of help with T/A) so therefore I can't advise you much further. that line:
mov(close,12,E)-mov(close,26,E)
is supposed to be the basic MacD. you might find variations in the MS manual. see how you go.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
Open the Indicator Builder Click New Give it a name Enter the following into the formula field:
mov1:=Input("value for 1st MOV",1,500,12); mov2:=Input("value for 2nd MOV",1,500,26); signal:=Input("value for signal line",1,500,9); Mov(C,mov1,E)-Mov(C,mov2,E); Mov(Mov(C,mov1,E)-Mov(C,mov2,E),signal,E)
Click OK
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 8/1/2007(UTC) Posts: 17
Thanks: 7 times
|
Thank you Pyradius.
Can you please also share the formula for the MACD Histogram.
Alexander Elder uses this indicator a lot (MACD lines and Histogram), further this indicator is also very popular with the free TA websites .....but somehow this is not available in Metastock ...which is state of the art TA software.
Your assistance is appreciated.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 11/25/2007(UTC) Posts: 1
|
To: PyradiusDear Pyradius. May you tell me how to program fomular of Beta. I want to use this fomular in explorer to find out shares bases on Beta. I saw that there is fomular of Beta in metastock soft ware. But it is not same to fomular I studied. Beta=cov(i,m)/var(m) where: cov(i,m) is covariance between specifice stock's return and Market' return var(m) is variance of Market' return. [censored]Tran, from Viet Nam
|
|
|
|
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.