Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 12/30/2005(UTC) Posts: 120
|
Does anyone have any suggestions on how to code MACD (12, 26, 9) in Metastock? The build-in function of MACD cannot input any parameters within ().
Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
It's in the MS User Manual and listed many, many times on this Forum.
wabbit [:D]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 9/23/2009(UTC) Posts: 51
|
MAS:= Input("SHORT AVERAGE",1, 50, 12); MAL:= Input("LONG AVERAGE",10,100, 26); SIG:= Input("SIGNAL",1,20,9);
MYMACD:= Mov(C,MAS,E) - Mov(C,MAL,E); SIGNAL:= Mov(MYMACD,SIG,E); ZEROLINE:= 0;
MYMACD; SIGNAL; ZEROLINE;
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 12/30/2005(UTC) Posts: 120
|
Thank everyone very much for suggestions
Eric
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 4/26/2011(UTC) Posts: 14 Location: india
|
try this
MACDV:=Mov(C,12,E)-Mov(C,26,E);
MACDV;
Mov(MACDV,9,E)
|
|
|
|
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.