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

Notification

Icon
Error

Options
Go to last post Go to first unread
Brent  
#1 Posted : Thursday, May 30, 2013 1:01:23 PM(UTC)
Brent

Rank: Member

Groups: Registered, Registered Users
Joined: 10/22/2007(UTC)
Posts: 14

Why does this formula not work?

MACD()<0
AND
Stoch(5,3)>=70
AND
Cross(Mov(Stoch(5,3),3,S),Stoch(5,3))
OR
OBV()<0
AND
Stoch(5,3)>=70
AND
Cross(Mov(Stoch(5,3),3,S),Stoch(5,3))

It ignores the part after "or"

mstt  
#2 Posted : Thursday, May 30, 2013 2:17:10 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi Brent

It looks like the OBV() element is the culprit to me. On large parts of some charts I'm guessing that OBV() is greater than zero, thus forcing the second cluster of results FALSE. It easy to observe this on a chart by testing as shown below. The original expression plots highest, next just the first group, then the secong group, and finally OBV()<0.

Separating each plot by more than 1 makes it easy to differentiate two or more logical values visually - simple but very effective troubleshooting technique.

MACD()<0
AND
Stoch(5,3)>=70
AND
Cross(Mov(Stoch(5,3),3,S),Stoch(5,3))
OR
OBV()<0
AND
Stoch(5,3)>=70
AND
Cross(Mov(Stoch(5,3),3,S),Stoch(5,3));

(MACD()<0
AND
Stoch(5,3)>=70
AND
Cross(Mov(Stoch(5,3),3,S),Stoch(5,3)))-1.1;

(OBV()<0
AND
Stoch(5,3)>=70
AND
Cross(Mov(Stoch(5,3),3,S),Stoch(5,3)))-2.2;

(OBV()<0)-3.3;

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