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

Notification

Icon
Error

Options
Go to last post Go to first unread
dolphin123  
#1 Posted : Wednesday, January 25, 2012 7:35:31 AM(UTC)
dolphin123

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/25/2012(UTC)
Posts: 2

Hi all, new to metastock,

I have spent the whole afternoon trying to convert the following to metastock code without success. If anyone can help Id be greatly appreciated.

I want to convert the following rules to metastock:

-stochastic (%k t period: 39, slowing: 1, %d t period:1, method: simple) > 20
-stochastic (%k t period: 39, slowing: 1, %d t period:1, method: simple) < 50
-stochastic (%k t period: 39, slowing: 1, %d t period:1, method: simple) < 20 in the past 7 days
-On Balance Volume (OBV) higher than the 14 day moving average
-macd > 0

Thanks all
wabbit  
#2 Posted : Wednesday, January 25, 2012 8:09:33 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)
Seems like your afternoon would have been better spent searching the forum, reading the MS User Manual and doing the exercises in the free Equis Formula Primer.

http://forum.equis.com/forums/30031/ShowThread.aspx
jjstein  
#3 Posted : Wednesday, January 25, 2012 12:07:26 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Post the code you've come up with, so far.

dolphin123  
#4 Posted : Tuesday, January 31, 2012 8:32:48 AM(UTC)
dolphin123

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/25/2012(UTC)
Posts: 2

This is what I have so far

Stoch(39,1) > 20 AND
Stoch(39,1) < 50 AND
LLV((Stoch(39,1)),7) < 20 AND
MACD()>0

I can't get this

-On Balance Volume (OBV) higher than the 14 day moving average (ie)

Thanks again
wabbit  
#5 Posted : Tuesday, January 31, 2012 3:34:07 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)
Code:

stch:=Stoch(39,1);
obvl:=OBV(C);

stch > 20 AND
stch < 50 AND
LLV(stch,7) < 20 AND
MACD()>0 AND
obvl>mov(obvl,14,e);



wabbit [:D]

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.