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
|
|
|
|
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)
|
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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.