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

Notification

Icon
Error

Options
Go to last post Go to first unread
Samuel  
#1 Posted : Sunday, May 14, 2006 9:29:18 AM(UTC)
Samuel

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/14/2006(UTC)
Posts: 2

I have found this in a book. It shows bullish sign. I would like to paste it as indicator formula. Can anyone be kind enough to convert this into formula. MACD>9-unit Moving Average of MACD and Yesterday MACD < Yesterday's 9-unit Moving Average of MACD and 20-unit Momentum Index>Neutral Line Thanks a lot.
StorkBite  
#2 Posted : Sunday, May 14, 2006 9:56:56 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hi Samual- Welcome to the forum! What about something like this? [code:1:fa48ddf34d]ma1:=Input("short moving average",1,100,12.3); ma2:=Input("long moving average ",1,200,25.7); ma3:=Input("signal moving average",1,200,9); pds:=Input("momentum periods",2,50,20); Ema1:=C*2/(ma1+1)+PREV*(1-2/(ma1+1)); Ema2:=C*2/(ma2+1)+PREV*(1-2/(ma2+1)); a:=Ema1-Ema2; b:=Mov(a,ma3,E); if(a>b AND ref(a,-1)<ref(b,-1) AND CMO(C,pds)>0,1,0);[/code:1:fa48ddf34d] ** Precision MACD code by Jose 8)
wabbit  
#3 Posted : Sunday, May 14, 2006 10:02:47 AM(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)
Samuel. You really should at least attempt scripting this yourself. Use the MS Users Manual and the free Equis Formula Primer to guide you along. If your code does not achieve your aim, then post it here so we can take a look and help you repair what needs repairing. There are a lot of people here who are willing to assist you to write your code, but if you want these people to do all the work for you, then please seek the services of a professional programmer. I will point you in the right direction for the first part of your code, but then you should at least attempt to finish it yourself.
Samuel wrote:
MACD>9-unit Moving Average of MACD and Yesterday MACD < Yesterday's 9-unit Moving Average of MACD and 20-unit Momentum Index>Neutral Line
x:=MACD()>Mov(MACD(),9,E); x AND Ref(x=0,-1); {this is one of many ways to do this bit} all that is left for you to do is to lookup the Mo() function and add that in in the right place. If you get stuck, post your attempt at the code here and someone will assist. wabbit :D [edit] g_, you beat me by only a couple of minutes!! Give a man a fish... teach a man to fish...
hayseed  
#4 Posted : Sunday, May 14, 2006 4:35:49 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey samual...... the MACD>9-unit Moving Average of MACD and Yesterday MACD < Yesterday's 9-unit Moving Average of MACD part is almost a macd() cross or , Cross(MACD(),Mov(MACD(),9,E)) , ..... for the second component you mentioned Momentum Index>Neutral Line ..... do you mean momentum as in mo() and by neutral line are you refering to 100...... if so perhaps, Cross(MACD(),Mov(MACD(),9,E)) AND Mo(20)>100 might work......h
Samuel  
#5 Posted : Monday, May 15, 2006 10:13:06 AM(UTC)
Samuel

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/14/2006(UTC)
Posts: 2

Thanks to all of you for your help. I really appreciate it. Thanks again.
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.