logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
oem7110  
#1 Posted : Wednesday, June 16, 2010 9:06:03 PM(UTC)
oem7110

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
wabbit  
#2 Posted : Wednesday, June 16, 2010 9:08:18 PM(UTC)
wabbit

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]

Alan R  
#3 Posted : Wednesday, June 23, 2010 1:55:25 PM(UTC)
Alan R

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;

oem7110  
#4 Posted : Wednesday, June 23, 2010 5:32:13 PM(UTC)
oem7110

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/30/2005(UTC)
Posts: 120

Thank everyone very much for suggestions Eric
naren.orbit  
#5 Posted : Tuesday, April 26, 2011 2:05:39 PM(UTC)
naren.orbit

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.